Getting "Assertion does not contain unique subject provider identifier XX in the audience restriction conditions" with Azure SSO
We're trying to use Microsoft Azure AD as SSO provider.
And getting error says "Assertion does not contain unique subject provider identifier XX in the audience restriction conditions" when trying to use IDP initialized SSO.
The login URL used is:
https://launcher.myapps.microsoft.com/api/signin/[UNIQUE ID]?tenantId=[TENANTID]&RelayState=https%3A%2F%2F[PEGA HOST]%2Fprweb%2FPRAuth%2FazureAdAuth
Would be appreciated a lot if anyone can help.
From the log file, we can see:
We're trying to use Microsoft Azure AD as SSO provider.
And getting error says "Assertion does not contain unique subject provider identifier XX in the audience restriction conditions" when trying to use IDP initialized SSO.
The login URL used is:
https://launcher.myapps.microsoft.com/api/signin/[UNIQUE ID]?tenantId=[TENANTID]&RelayState=https%3A%2F%2F[PEGA HOST]%2Fprweb%2FPRAuth%2FazureAdAuth
Would be appreciated a lot if anyone can help.
From the log file, we can see:
2023-06-01 11:30:15,301 [fault (self-tuning)'] [ STANDARD] [ ] [ PegaRULES:8] ( internal.util.PRSAMLv2Utils) DEBUG |Rest|WebSSO|SAML|v2_assertionconsumerservice27d966ed6057ae45375fdfa98b29416f|AxxxxxxxxxxxxxxxxxxxxxxxxxxxxxKAEA|RelayStateID:https://[PEGA HOST]/prweb/PRAuth/azureAdAuth:RelayStateID AxxxxxxxxxxxxxxxxxxxxxxxxxxxxxKAEA - Response message received : [SAML response] 2023-06-01 11:30:15,301 [fault (self-tuning)'] [ STANDARD] [ ] [ PegaRULES:8] ( internal.util.PRSAMLv2Utils) DEBUG |Rest|WebSSO|SAML|v2_assertionconsumerservice27d966ed6057ae45375fdfa98b29416f|AxxxxxxxxxxxxxxxxxxxxxxxxxxxxxKAEA|RelayStateID:https://[PEGA HOST]/prweb/PRAuth/azureAdAuth:RelayStateID AxxxxxxxxxxxxxxxxxxxxxxxxxxxxxKAEA - Converting SAML string received to SAML object 2023-06-01 11:30:15,307 [fault (self-tuning)'] [ STANDARD] [ ] [ PegaRULES:8] ( internal.util.PRSAMLv2Utils) DEBUG |Rest|WebSSO|SAML|v2_assertionconsumerservice27d966ed6057ae45375fdfa98b29416f|AxxxxxxxxxxxxxxxxxxxxxxxxxxxxxKAEA|RelayStateID:https://[PEGA HOST]/prweb/PRAuth/azureAdAuth:RelayStateID AxxxxxxxxxxxxxxxxxxxxxxxxxxxxxKAEA - Successfully validated the SAML Response protocol validation 2023-06-01 11:30:15,307 [fault (self-tuning)'] [ STANDARD] [ ] [ PegaRULES:8] ( internal.util.PRSAMLv2Utils) DEBUG |Rest|WebSSO|SAML|v2_assertionconsumerservice27d966ed6057ae45375fdfa98b29416f|AxxxxxxxxxxxxxxxxxxxxxxxxxxxxxKAEA|RelayStateID:https://[PEGA HOST]/prweb/PRAuth/azureAdAuth:RelayStateID AxxxxxxxxxxxxxxxxxxxxxxxxxxxxxKAEA - Extracted IDP Entity Id : [IDP Entity Id] SP Entity Id: [SP Entity Id] ACS URL : [ACS URL] 2023-06-01 11:30:15,309 [fault (self-tuning)'] [ STANDARD] [ ] [ PegaRULES:8] ( internal.util.PRSAMLv2Utils) ERROR |Rest|WebSSO|SAML|v2_assertionconsumerservice27d966ed6057ae45375fdfa98b29416f|AxxxxxxxxxxxxxxxxxxxxxxxxxxxxxKAEA|RelayStateID:https://[PEGA HOST]/prweb/PRAuth/azureAdAuth:RelayStateID AxxxxxxxxxxxxxxxxxxxxxxxxxxxxxKAEA - Caught Exception while validating SAML2 Authentication response for SSO profile : Assertion does not contain unique subject provider identifier [Entity ID] in the audience restriction conditions
***Edited by Moderator Marije to add Support Case Details; ***