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 committed Jul 15, 2023
1 parent e570564 commit cea3f92
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 cea3f92

Please sign in to comment.