thephpleague / oauth2-server

A spec compliant, secure by default PHP OAuth 2.0 Server
https://oauth2.thephpleague.com
MIT License
6.49k stars 1.12k forks source link

Documentation: AuthCode grant redirect_uri must match authorization request #1368

Open iaibai opened 10 months ago

iaibai commented 10 months ago

The documentation states that in Part Two of an Auth Code flow, redirect_uri must contain "the same redirect URI the user was redirect back to".

However, as per https://github.com/thephpleague/oauth2-server/pull/1096, it should actually match the redirect_uri from the authorization request, and it must be omitted if it was not present in that request.

I suggest changing the redirect_uri line in Part Two to: