laravel-saml2 icon indicating copy to clipboard operation
laravel-saml2 copied to clipboard

Invalid audience for this Response

Open xerk opened this issue 1 year ago • 1 comments

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 avatar Apr 22 '24 19:04 xerk

@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.

malandles avatar Jul 12 '24 14:07 malandles