question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for the OIDC `max_age` parameter

See original GitHub issue

Core 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:closed
  • Created 2 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
svrooijcommented, Aug 24, 2022

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.

1reaction
kevindixoncommented, Jun 30, 2022

@EmLauber CY22Q2 is drawing to a close - any update?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found