laravel-saml2
laravel-saml2 copied to clipboard
Invalid audience for this Response
laravel-saml2:
"24slides/laravel-saml2": "^2.4",
Laravel version: 10
PHP: 8.1
SAML2_LOGIN_URL='https://login.microsoftonline.com/0dac*********************26043d2d/saml2'
SAML2_LOGOUT_URL='https://login.microsoftonline.com/0da**************626043d2d/saml2'
SAML2_ERROR_URL='https://example.com/saml2/catch'
SAML2_SP_CERT_x509="-----BEGIN CERTIFICATE-----
MIIC8DCC**********************************8
*****************************************
***************************************************8
**********************************8888888
Zdpx8VMaD0RIYIdjylP2
-----END CERTIFICATE-----"
SAML2_SP_CERT_PRIVATEKEY=
SAML2_SP_ENTITYID=2dd************************6651fac43
SAML2_ORGANIZATION_NAME=example
SAML2_ORGANIZATION_URL=https://example.com.com
saml2.error_detail {"uuid":"4b63d08*****************7b461007","error":"Invalid audience for this Response (expected '2ddd6a42-****************fac43', got 'spn:2ddd6***************6651fac43')"}
@xerk I had a similar error, you need to provide the right entity ID with the spn: appended for your tenant, in your case spn:2ddd6***************6651fac43 instead of just the ID.