Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid audience for this Response #89

Open
xerk opened this issue Apr 22, 2024 · 1 comment
Open

Invalid audience for this Response #89

xerk opened this issue Apr 22, 2024 · 1 comment

Comments

@xerk
Copy link

xerk commented Apr 22, 2024

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')"}

@malandles
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants