Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oAuth2 token has expired_in = 0 from time to time #9

Open
bluesliverx opened this issue Jul 3, 2019 · 0 comments
Open

oAuth2 token has expired_in = 0 from time to time #9

bluesliverx opened this issue Jul 3, 2019 · 0 comments

Comments

@bluesliverx
Copy link
Collaborator

(Migrated from bluesliverx/grails-spring-security-oauth2-provider#128 reported by @koa73)

I'm using expires time for my tokens, which I set as 120 sec. When I've made cyclical tests by SoapUI I've found a collision,sometimes I've got expires_in=0, so token isn't valid in time when client has got it from oAuth server.

I can try to avoid this on client side, but I'd prefer to do it on server side if it's possible.

Can I set on oAuth side to present fresh token if expires_in time of current token <= 5 sec.

Tue Nov 22 18:57:52 MSK 2016:DEBUG:<< ""access_token":"109cf14c-00aa-4365-9f5f-e7a8ac815e09","token_type":"bearer","refresh_token":"2e4816c8-afdf-492d-a152-b0877080e189","expires_in":0,"scope":"read write"}"

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

No branches or pull requests

1 participant