Skip to content

Commit

Permalink
fix: [ory#754] Requester ID fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vivshankar authored and aeneasr committed Feb 12, 2024
1 parent f411487 commit aa20d1f
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 aa20d1f

Please sign in to comment.