Coder Social home page Coder Social logo

Token Mismatch about laravel-saml2 HOT 4 CLOSED

aacotroneo avatar aacotroneo commented on July 29, 2024
Token Mismatch

from laravel-saml2.

Comments (4)

aacotroneo avatar aacotroneo commented on July 29, 2024 1

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.

from laravel-saml2.

rendhon avatar rendhon commented on July 29, 2024

thanks for the link. :)

from laravel-saml2.

rendhon avatar rendhon commented on July 29, 2024

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

from laravel-saml2.

aacotroneo avatar aacotroneo commented on July 29, 2024

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.

from laravel-saml2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.