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

API routes broken in auth0-laravel-php-web-app (and in general)? #117

Closed
glaesser opened this issue Jan 17, 2019 · 1 comment
Closed

API routes broken in auth0-laravel-php-web-app (and in general)? #117

glaesser opened this issue Jan 17, 2019 · 1 comment
Milestone

Comments

@glaesser
Copy link

While app authentication works great, in the webapp example navigating to the existing route /api/user throws various errors:

Invalid state
Auth0\SDK\Exception\CoreException 
…/vendor/auth0/auth0-php/src/Auth0.php line 512

and

Can't initialize a new session while there is one active session already
Auth0\SDK\Exception\CoreException 
…/vendor/auth0/auth0-php/src/Auth0.php line 516

I seem to be encountering a similar behavior (error claiming I am unauthorized when I'm in fact logged in) in my own app when viewing /api/test (protected only with "auth" or "auth:api" middleware). Would be great to get this working...

@joshcanhelp
Copy link
Contributor

@glaesser - I don't think this is an issue with the package itself. Could I get you to start a thread on the Community site with the steps to reproduce and any code samples you can provide? Make sure to tag that laravel so it gets to the right place.

For context ... "Invalid state" occurs when the state value in the URL does not match what's stored or is missing. "Can't initialize a new session while there is one active session already" means you're trying to start a new session when there is one in place already.

@joshcanhelp joshcanhelp added this to the 5.1.1 milestone Jun 27, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants