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

local.ERROR: Saml2 error ["invalid_response"] #49

Closed
dbeyzad opened this issue Sep 20, 2016 · 4 comments
Closed

local.ERROR: Saml2 error ["invalid_response"] #49

dbeyzad opened this issue Sep 20, 2016 · 4 comments

Comments

@dbeyzad
Copy link

dbeyzad commented Sep 20, 2016

I am receiving the following in the laravel log after the SAML is returned from the IDP. In chrome using the SAML inspector tool everything looks fine.

No login event is fired within laravel.

Any suggestions?

Thank you

@aacotroneo
Copy link
Owner

you can dive into the source... that error is in onelogin dep
https://github.com/onelogin/php-saml/blob/cd7ced0dc23a47dc57b81134ff94d4b7fef57099/lib/Saml2/Auth.php#L133

use a debugger or a classy var_dump and trace this https://github.com/onelogin/php-saml/blob/7a87f05681c57d121b2da81768532ab7197b1a84/lib/Saml2/Response.php#L85

@dbeyzad
Copy link
Author

dbeyzad commented Sep 22, 2016

@aacotroneo Thanks. I managed to fix it, it was a certificate issue.
I have this fully working now with laravel 5.3

@dbeyzad dbeyzad closed this as completed Sep 22, 2016
@pkendre
Copy link

pkendre commented May 12, 2017

HI,

I am facing the same issue. What is the certificate issue? can you please explain in details, so that I may get some clue

@pkendre
Copy link

pkendre commented May 16, 2017

Hi, Finally I have resolved this issue.

The "x509cert" from idp configuration in saml2_settings.php was not matching with the IDP server crt. I copied the IDP .crt content to the x509cert variable and it worked :)

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

3 participants