Coder Social home page Coder Social logo

Update README about auth0-php HOT 6 CLOSED

Webbeh avatar Webbeh commented on August 20, 2024
Update README

from auth0-php.

Comments (6)

evansims avatar evansims commented on August 20, 2024

Thanks @Webbeh 👋 An oversight on my part in porting the documentation. I've updated the README to reflect expected usage now.

from auth0-php.

Webbeh avatar Webbeh commented on August 20, 2024

Anytime.
Thank you

from auth0-php.

Webbeh avatar Webbeh commented on August 20, 2024

What's the cleanest way to handle that exception?

I have customers who bookmarked the URL of the WebApp with the state and code URL parameter. If they end their session and they call that URL, the StateException is thrown every time.

Should I just replace the error message with a call to $auth0->clear(); followed by $auth0->login(); ?

from auth0-php.

evansims avatar evansims commented on August 20, 2024

Hey @Webbeh 👋 That would work, just keep in mind that if you catch and redirect to login within your callback route, you could potentially create an infinite redirect loop if there are some weird circumstances, like the end user blocking cookies. Showing an interstitial page with an error message and offering to redirect the user back to your login route to try again would introduce an extra step, but might be a safer route.

from auth0-php.

Webbeh avatar Webbeh commented on August 20, 2024

Maybe I should redirect them to the logout page instead then.

That error would appear way too often - everyone who bookmarked a page including the code and state url parameters would be affected everytime they re-open a browser window using that bookmark, which is actually what made me notice the outdated README.

Getting rid of those parameters when bookmarking would probably be a better solution...

from auth0-php.

github-actions avatar github-actions commented on August 20, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from auth0-php.

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.