Add support for the OIDC `max_age` parameter
See original GitHub issueCore Library
MSAL.js v2 (@azure/msal-browser)
Wrapper Library
Not Applicable
Description
The ability to force re-authentication by setting the OIDC max_age
option (ref) was added to the MSAL Python library some time ago (1.15).
We have a need to FORCE re-authentication on a JS based SPA where a user is carrying out a privileged action (this is highly regulated environment) - could this feature be added to PublicClientApplication
in parity with MSAL Python?
(BTW see this article to understand why login=prompt
isn’t a good solution).
Source
External (Customer)
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (10 by maintainers)
Top Results From Across the Web
Force Reauthentication in OIDC - Auth0
Describes how to use the max_age authentication request parameter as a mechanism whereby relying parties can positively confirm that re-authentication has ...
Read more >Support "max_age" OpenID Connect auth request parameter
OPTIONAL. Maximum Authentication Age. Specifies the allowable elapsed time in seconds since the last time the End-User was actively ...
Read more >OpenID Connect Core 1.0 incorporating errata set 1
(The max_age request parameter corresponds to the OpenID 2.0 PAPE ... to pass that value as a hint to the discovered authorization service....
Read more >OpenIdConnectOptions.MaxAge Property - Microsoft Learn
Gets or sets the 'max_age'. If set the 'max_age' parameter will be sent with the authentication request. If the identity provider has not...
Read more >Apereo CAS is ignoring OIDC parameter prompt and max_age
Im very familiar and happy using CAS. But now i maybe located a "hole" using CAS 6.3.7: The OpenID Connect parameter "prompt" and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is the first reference I could find that mentions max_age. It’s in the openid connect spec and Microsoft implemented it in Azure AD.
https://hajekj.net/2017/03/06/forcing-reauthentication-with-azure-ad/
You can use it to force re-authentication from the client side, but reading your explanation I guess you can implement continuous access evaluation to force re-authentication from the API side. I don’t have a good sample to do that, by the way.
@EmLauber CY22Q2 is drawing to a close - any update?