-
Hello, This regards to the new feature of maximum authentication age ( We are expecting the user to be forced to re-authenticate if they haven't done that after Although, if we set The expiration claim should be defined always by our azure application and not by our msal flow, we should only be able to control re-auth and not token expiry date. msal version = 1.16.0 |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Welcome back, @raqsilva ! Unfortunately, what you discovered is an existing behavior in the Microsoft Identity Platform. MSAL as a client-side library does not have a way to change that. Do you have another channel to contact a Microsoft representative? (CC: @hpsin) Meanwhile, this workaround might work. You may try to use |
Beta Was this translation helpful? Give feedback.
-
Thanks! Sadly for our use case that might not work. |
Beta Was this translation helpful? Give feedback.
-
Like I said in my previous message, that change will not be in this library.
How so? What kind of app are you building? Each of our sample for the supported scenario includes the We would like to know more about your app and see how we can help. |
Beta Was this translation helpful? Give feedback.
-
I understand how it seems odd, but that was a way for us to force re-auth when the user has logged out of our app. We do not have accounts or cache anymore in that stage, that is why we need to get a new one by Out of curiosity, where are the code samples that use |
Beta Was this translation helpful? Give feedback.
-
There is no official sample for
It is not odd for an app to sign out user. But that shouldn't prevent you from utilizing token cache. My hypothesis meant to say:
|
Beta Was this translation helpful? Give feedback.
-
I see what you mean now. So in your example a |
Beta Was this translation helpful? Give feedback.
There is no official sample for
max_age
. It is just an optional parameter that can be added into any existing sample which uses eitherinitiate_auth_code_flow()
(i.e. web app) oracquire_token_interactive()
(i.e. desktop app).It is not odd for an app to sign out user. But that shouldn't prevent you from utilizing token …