AzureAD / microsoft-authentication-library-for-dotnet

Microsoft Authentication Library (MSAL) for .NET
https://aka.ms/msal-net
MIT License
1.36k stars 333 forks source link

[Feature Request] Prototype higher level API for calling POP RPs #3237

Closed bgavrilMS closed 1 month ago

bgavrilMS commented 2 years ago

When calling an RP which supports POP, they will send back some 401 Authenticate headers indicate support for POP (and most likely for Bearer as well).

Upon calling the RP, the 401 Authenticate header will contain a nonce, with typical lifetime of 5 minutes. This nonce needs to be used to create the SHR part of the POP token. If an expired nonce is used, the RP will return a 401 Authenticate header with a new nonce. If a non-expired nonce is used, the RP may return a 200 Authenticate-Info header containing a fresh nonce.

Constraints:

Approaches:

Microsoft.Identity.Web have done some work around this, which can serve as a basis of operations.

Scenarios to consider:

For further reading:

bgavrilMS commented 1 year ago

Not taking this on in Q1