Skip to content

Commit

Permalink
fix: [ory#754] Set the ID of the original requester early in the refr…
Browse files Browse the repository at this point in the history
…esh_flow handler
  • Loading branch information
vivshankar committed Jul 15, 2023
1 parent 8098e48 commit 55ea58d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handler/oauth2/flow_refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func (c *RefreshTokenGrantHandler) HandleTokenEndpointRequest(ctx context.Contex
return errorsx.WithStack(fosite.ErrInvalidGrant.WithHint("The OAuth 2.0 Client ID from this request does not match the ID during the initial token issuance."))
}

request.SetID(originalRequest.GetID())
request.SetSession(originalRequest.GetSession().Clone())
request.SetRequestedScopes(originalRequest.GetRequestedScopes())
request.SetRequestedAudience(originalRequest.GetRequestedAudience())
Expand Down

0 comments on commit 55ea58d

Please sign in to comment.