Comments (19)
hi @vladimir-yuldashev
can you replace this line (check under vendor/php/auth0-php/src/Auth0.php
) https://github.com/auth0/auth0-PHP/blob/master/src/Auth0.php#L243
by var_dump($response);var_dump($auth0_response);exit;
and paste those dumps here?
I want to see what is it getting there.
from laravel-auth0.
Auth0.php:243:
array (size=3)
'result' => string 'Unauthorized' (length=12)
'code' => int 401
'content_type' => boolean false
string 'Unauthorized' (length=12)
from laravel-auth0.
check if you have the correct client secret
from laravel-auth0.
Double checked, it's correct.
from laravel-auth0.
The only reason of this error is if either client id or secret are wrong.
If the redirect_url is not the same you used for the callback or the authorization code is not the correct one (or was previously used) it will return the proper error.
from laravel-auth0.
redirect_url is the same
Downgrading from 3.2 to 3.0 now gives:
ApiException in Auth0.php line 248:
Invalid access_token - Retry login.
from laravel-auth0.
can you create a ticket on support.auth0.com and send a zip with a snippet reproducing your issue (even your credentials, you can use a temporal application so you can later delete it and invalidate the client_id)?
from laravel-auth0.
Okay
from laravel-auth0.
No good feedback from them either.
I tried to get token by Postman. But 401 either.
P.S. tokens are dev-only
from laravel-auth0.
this redirect uri is wrong. It should be an URI, http://domain.com/path
.
The rest looks good
from laravel-auth0.
Same.
from laravel-auth0.
but this redirect_uri is the same you used when you authenticate the user?
also, can you generate a new code and try again? make sure this code is not used
from laravel-auth0.
@glena Yes, it's the same. Tried with new code. No result.
from laravel-auth0.
what is the ticket number of the one you sent the code?
from laravel-auth0.
12417
from laravel-auth0.
can you send a zipfile with the code you are testing to that ticket?
do not throw it in the email body, it is imposible to follow.
from laravel-auth0.
I can't do that because its part of the project. It does not even work for Postman.
from laravel-auth0.
wait, in the ticket says your account is http://misterio.eu.auth0.com
and in this screenshot it shows http://misterio.auth0.com
you are setting the wrong domain
from laravel-auth0.
@glena omg. So sooory I am so inattentive. Thank you!
from laravel-auth0.
Related Issues (20)
- Version 7.8 environment configuration no longer calls system configuration just file HOT 1
- Laravel Telescope compatibility issue HOT 11
- Error on custom repository and model HOT 1
- Incorrect middleware ordering HOT 9
- Laravel Auth0 breaks when Laravel Telescope is Installed HOT 1
- SDK hitting database many times for user HOT 3
- Can not access web routes protected with the auth Middleware HOT 3
- v7.10.0 breaks permissions guards HOT 2
- Name and Email values not set after call to management API, after adding User Repository HOT 5
- Upgrading to 7.10 from 7.1 causing - PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 65536 bytes) HOT 1
- 7.7+ integration questions HOT 4
- Fresh Installation - The JWT string must contain two dots HOT 2
- Restore 7.6 feature of configurable login route HOT 3
- Add more information to exceptions HOT 1
- 'auth0.authorize' replacement for RouteRegistrar? HOT 1
- Trigger a password reset email HOT 2
- Performance: Prevent Duplicate Calls to getCredentials() HOT 3
- InvalidTokenException "The JWT string must contain two dots" when decoding token for regular (non-API) applications (with AUTH0_AUDIENCE=[blank]) HOT 3
- feat: add Laravel Queues support HOT 1
- feat: add `Illuminate\Support\Traits\Macroable` trait to Guards 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 laravel-auth0.