Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

add ui widget to track when access token is about to expire #7

Closed
timg1474392 opened this issue Nov 30, 2017 · 4 comments
Closed

add ui widget to track when access token is about to expire #7

timg1474392 opened this issue Nov 30, 2017 · 4 comments
Assignees

Comments

@timg1474392
Copy link

add oauth refresh tokens server-side
add client-side code to prompt the user to refresh
do an in-place update of local storage and vuex state when refresh token is obtained

@mrellipse mrellipse self-assigned this Nov 30, 2017
@mrellipse mrellipse changed the title add ability to refresh tokens add ui widget to track when access token is about to expire Nov 30, 2017
@mrellipse
Copy link
Owner

forgot it was using implicit authorization workflow, so refresh tokens are not issued.

better to extend the access token ttl, and just advise the user when/if their token expires

@hmuhdkamran
Copy link
Collaborator

Async token expiration or token expiration intimation is essential.

@mrellipse
Copy link
Owner

okay, i have added in a simple client-side widget which will server this purpose.

it uses the existing vuex state to push info/alert/error style messages via javascript timeouts

there is also an optional boolean value (defaults to true) which pushes users to login route

  • when token expires during an active session
  • when app loads an invalid token

you are right - something like this should be part of a boilerplate solution.

thanks for the feedback. and I wish you all the best with your project, and hope it goes well - it looks quite ambitious!

@hmuhdkamran
Copy link
Collaborator

hmuhdkamran commented Jan 16, 2018

it is very essential to have pop-up just like "https://github.com/stoodz/vuejsTimer.git", I have integrated like if the user click on stay the token is updated with new expiry time.
second role based menu or features like 'https://aspnetboilerplate.com/Templates' would be beneficial.
separate layout for login and logged-in pages.
unit test for vue components should be added, like karma i.e 'https://vuejs.org/v2/guide/unit-testing.html'
repository based db integration should be integrated, I have done it and happy to share.
date time filter should be integrated as vue v-model integrated with date but need work around.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants