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

Token Mismatch #7

Closed
rendhon opened this issue Jun 21, 2015 · 4 comments
Closed

Token Mismatch #7

rendhon opened this issue Jun 21, 2015 · 4 comments

Comments

@rendhon
Copy link

rendhon commented Jun 21, 2015

i tried to use this with my azure ad as idp got this error " TokenMismatchException in VerifyCsrfToken.php line 49:" are you familiar with this error?

@aacotroneo
Copy link
Owner

oh, yes! That's the Laravel 'csrf' middleware. It intercepts all POST's by default (including the one your IDP does, which cant never know about a csrf token, and it does not need it).
You'll have to disable that middleware for the saml routes. Or just disable it if you are not going to use cookies (i.e oauth or some other token). I don't have anything at hand now, but there is a lot of discussions about this.

@rendhon
Copy link
Author

rendhon commented Jun 21, 2015

thanks for the link. :)

@rendhon
Copy link
Author

rendhon commented Jun 21, 2015

is the default sp identifier is ' http://localhost/laravel/public/saml2/metadata' ?coz i already tried to configure the samlsettings but in the saml request it always appear.. could i change this one? and where? i tried to find where but such many data flow .!

@aacotroneo
Copy link
Owner

the library set this:

$config['sp']['entityId'] = URL::route('saml_metadata');

You can override that route if you want, or use your own routes. Look at the comments in the config file.

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