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

Regression fix for request ID in refresh token flow #262

Merged
merged 1 commit into from Apr 26, 2018

Conversation

beornf
Copy link
Contributor

@beornf beornf commented Apr 26, 2018

The sanitize request method introduced a change where the generated ID for an access token and refresh token are different for the same response.

This is due to the ID being generated on the sanitized request not being passed back to the handler e.g. https://github.com/ory/fosite/blob/master/handler/oauth2/flow_refresh.go#L110.

To mitigate this the request ID is pre-generated on the original requester. There may be a better approach that would also pass the test.

Signed-off-by: Beorn Facchini <beorn@lade.io>
@coveralls
Copy link

Coverage Status

Coverage increased (+0.006%) to 85.492% when pulling 349121b on beornf:identify-sanitized-request into cca6af4 on ory:master.

@aeneasr
Copy link
Member

aeneasr commented Apr 26, 2018

Nice catch, thanks!

@aeneasr aeneasr merged commit 99029e0 into ory:master Apr 26, 2018
budougumi0617 added a commit to budougumi0617/fosite that referenced this pull request May 10, 2019
Signed-off-by: Beorn Facchini <beorn@lade.io>
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

Successfully merging this pull request may close these issues.

None yet

3 participants