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

Rack::OAuth2::Server.token_for returns an expired token #17

Open
DanielVartanov opened this issue Apr 30, 2012 · 0 comments
Open

Rack::OAuth2::Server.token_for returns an expired token #17

DanielVartanov opened this issue Apr 30, 2012 · 0 comments
Assignees
Milestone

Comments

@DanielVartanov
Copy link
Contributor

When token is expired, there is no way to re-new it. A request to /oauth/access_token returns the same access token.

An easy way to reproduce the bug:

Rack::OAuth2::Server.token_for(user.id.to_s, client.id.to_s, client.scope, 1.second)
# Wait for 1 second :-)
Rack::OAuth2::Server.token_for(user.id.to_s, client.id.to_s, client.scope)

expected: Either another token or the same token but with updated #expires_at property
actual: The same token with the same properties. An attempt to use this token responds with "The access token has expired."

@ghost ghost assigned bploetz May 16, 2012
freegenie added a commit to freegenie/rack-oauth2-server that referenced this issue Jul 8, 2012
pacovell pushed a commit to donedotcom/rack-oauth2-server that referenced this issue Aug 7, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants