Hello Entra team,
I've noticed what I believe is a typo for the state parameter here:
https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow#:~:text=A%20value%20included%20in%20the%20request%20that%20is%20also%20returned%20in%20the%20token%20response.
The documentation describes state
like so:
"A value included in the request that is also returned in the token response."
This is somewhat misleading. The request this is documented for pertains to the code
(i.e., authorization_code
) request/response, i.e. https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize
. The code
returned by this endpoint is then used server-side to request an access_token using credentials via the /{tenant}/oauth2/v2.0/token
endpoint. The code
response also echos the state
property that was provided with the request.
Therefore, stating that the state
is returned in the token response is incorrect. The token response examples do not include the state. As far as I understand, the documentation should clarify that the state
is provided in the request for the code and is included in the code response.
Can someone please review this and correct the documentation if appropriate.
Kind regards,
Aaron