MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
9.98k stars 20.95k forks source link

Document differences between On-Behalf-Of flow token requests #121985

Open PSanetra opened 1 week ago

PSanetra commented 1 week ago

Regarding the Microsoft identity platform and OAuth 2.0 On-Behalf-Of flow documentation:

The section Middle-tier access token request enumerates two possible ways two request an access token:

  1. request with shared secret
  2. request with a certificate.

The section is not mentioning any functional differences between both requests. In fact both descriptions of the assertion parameter are exactly the same.

This assumption is wrong: On a request with a certificate the assertion parameter MUST be an app-only token. It can not be a user token. See error code AADSTS700229


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

PesalaPavan commented 1 week ago

@PSanetra Thanks for your feedback! We will investigate and update as appropriate.

AjayBathini-MSFT commented 5 days ago

@PSanetra Thanks for bringing this to our attention. I'm going to assign this to the document author so they can take a look at it accordingly.