Comments (6)
Thanks @Webbeh 👋 An oversight on my part in porting the documentation. I've updated the README to reflect expected usage now.
from auth0-php.
Anytime.
Thank you
from auth0-php.
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.
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.
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.
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)
- Auth0 8.3.0 now requires "cookieSecret" configuration HOT 2
- getUser() now returns null HOT 7
- Recent changes break existing auth0/login configuration HOT 2
- Authentication#emailPasswordlessStart returns 400 (Bad Request) HOT 3
- Provided state breaks the flow with "Invalid state" error HOT 3
- Migrating from PHP SDK 7 to 8 - session not persisting HOT 4
- Error when i use $auth0->exchange in php
- Unable to retrieve Management API access token due to change in 8.4.0 HOT 3
- Browser Header Field Exceeds Limit HOT 4
- Laravel 10 install does not work - Error with composer HOT 3
- Breaking change in minor update HOT 2
- Error thrown when attempting to verify access token HOT 16
- Problem encountered with the $sdk->exchanges() method between versions 8.4.0 and 8.5.0 HOT 7
- Adding an explanation to the StateException regarding the possible reasons for the access token being missing. HOT 2
- Trigger deprecation and fallback to `none` strategy on configuration HOT 2
- use final-annotation instead of hard-final HOT 1
- JWT generator: wrong header key "type" HOT 1
- Cannot empty initiate_login_uri with API
- Double signature verification HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auth0-php.