The error we’re seeing is happening to several users, and the alert message we are receiving is in xerteauthissue.png attached.
We’ve asked the University MS Team, and they’ve said this is an application-side error.
Do you have instructions on how to remove the value RequestedAuthContext from the application – including files and folders to change, and their locations, and any pitfalls or unintended consequences we need to avoid? If this isn’t possible, could we have guidance on how to implement the second option below, to force a Fresh Authentication?
We have found Microsoft’s own guide on this error, online: Error - AADSTS75011 Authentication method by which the user authenticated with the service doesn't match requested authentication method AuthnContextClassRef. | Microsoft Learn
From this guide, the Cause is listed as:
“The RequestedAuthnContext is in the SAML request. This means the app is expecting the AuthnContext specified by the AuthnContextClassRef. However, the user has already authenticated prior to access the application and the AuthnContext (authentication method) used for that previous authentication is different from the one being requested. For example, a federated user access to MyApps and WIA occurred. The AuthnContextClassRef will be urn:federation:authentication:windows. Microsoft Entra ID won't perform a fresh authentication request, it will use the authentication context that was passed-through it by the IdP (ADFS or any other federation service in this case). Therefore, there will be a mismatch if the app requests other than urn:federation:authentication:windows. Another scenario is when MultiFactor was used: 'X509, MultiFactor.”
We are getting the Multifactor alert they reference in the last line above (shown in Pic 1 below). The Microsoft page also gives the solution, and it is to remove RequestedAuthnContext from the application, as authentication has already been ‘handled by the SSO solution’ as noted by the Xerte developers *in your email below, Aideen*. The problem is, we’re not sure what code we need to remove, or where to remove it from, to complete this resolution. This is what we need to answer.
Here’s Microsoft’s resolution in full:
“RequestedAuthnContext is an optional value. If possible, ask the application if the value could be removed.
Another option is to make sure that the RequestedAuthnContext value will be honored. This is done by requesting a fresh authentication. By doing this, when the SAML request is processed, a fresh authentication is done and AuthnContext is honored. In order to request a Fresh Authentication, the SAML request must contain the value, forceAuthn="true".”
xerteauthissue: Error alert attached