Derivation of AuthnInstant attribute value

Phalgun Vaddepalli 0 Reputation points
2024-04-15T01:38:01.8366667+00:00

I am using Microsoft Entra ID as IDP for my web app for SAML SSO. When I navigate to my application in Chrome the AuthnInstant is from 2 days ago, however for the same URL in Chrome incognito mode it AuthnInstant is current date-time and for Firefox it is about 5 months ago.

From, single-sign-on-saml-protocol

  • The AuthnInstant attribute specifies the time at which the user authenticated with Microsoft Entra ID.

I would like to know:

  1. Why do I get different values of AuthnInstant in the different use cases listed above?
  2. Once a user is authenticated with Microsoft Entra ID, how long would it be valid?
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,515 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Navya 4,000 Reputation points Microsoft Vendor
    2024-04-15T11:29:27.48+00:00

    Hi @Phalgun Vaddepalli

    Thank you for posting this in Microsoft Q&A.

    I understand you are seeing different values of AuthnInstant in different browsers.

    Why do I get different values of AuthnInstant in the different use cases listed above?

    The variation in AuthnInstant values across different use cases is probably caused by discrepancies in how browsers cache SAML responses. When accessing the application in Chrome, it might retrieve a cached SAML response from 2 days ago, while in incognito mode it is not using the cache and is therefore getting a current date-time. Similarly, Firefox may be using a cached SAML response from 5 months ago.

    Once a user is authenticated with Microsoft Entra ID, how long would it be valid?

    The validity period of a SAML response is determined by the value of the NotBefore and NotOnOrAfter attributes in the Conditions element of the SAML response. These values are set by the identity provider and specifies the time at which the SAML response expires. Once the SAML response has expired, the user will need to re-authenticate to obtain a new SAML response.

    For your reference: https://learn.microsoft.com/en-us/entra/identity-platform/single-sign-on-saml-protocol#conditions

    Hope this helps. Do let us know if you any further queries.

    Thanks,

    Navya.

    If the answer is helpful, please click "Accept Answer" and kindly "upvote" it.