Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

AZURE AD SAML Login Error for APIGEE API portal

We have enabled SAML login for our API portal with AZURE SSO. Getting this error " Response doesn't have any valid assertion. Authentication Statement is too old to be used. Please re-login to your Identity Provider"
How to get rid of this error without clearing cookies caches and browser history and we do not want to re authenticate when it already has an active session for Azure AD.

0 1 140
1 REPLY 1

The error message seems pretty helpful. It's telling you the Authentication statement is too old.  What is the test for "too old"?  We don't know that. 

If I were you I would try using this tool: https://chromewebstore.google.com/detail/saml-tracer/mpdajninpobndbfcldcmbpnnbhibjmch?hl=en&pli=1

...to examine the SAML exchange between the browser, the IDP and the SP (API portal). 

That should allow you to see the SAML transactions. You can then examine the expiry on the Assertion and maybe track down why you are getting that "too old" message.

You said " for our API portal ".  Is that a Drupal portal?  If so that means it runs on a server that you , at least somewhat, control.   In that case, the other thing to check is clock skew. If the server that runs your Drupal portal has a clock that is not correctly managed, then it can have a time that is ... some time in the future.  (or the past?)  In which case it will reject the timestamp on a perfectly valid SAML Assertion.