Giter VIP home page Giter VIP logo

Comments (19)

glena avatar glena commented on August 16, 2024

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.

vyuldashev avatar vyuldashev commented on August 16, 2024

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.

glena avatar glena commented on August 16, 2024

check if you have the correct client secret

from laravel-auth0.

vyuldashev avatar vyuldashev commented on August 16, 2024

Double checked, it's correct.

from laravel-auth0.

glena avatar glena commented on August 16, 2024

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.

vyuldashev avatar vyuldashev commented on August 16, 2024

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.

glena avatar glena commented on August 16, 2024

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.

vyuldashev avatar vyuldashev commented on August 16, 2024

Okay

from laravel-auth0.

vyuldashev avatar vyuldashev commented on August 16, 2024

No good feedback from them either.

I tried to get token by Postman. But 401 either.
P.S. tokens are dev-only

screen shot 2016-07-27 at 16 53 55

from laravel-auth0.

glena avatar glena commented on August 16, 2024

this redirect uri is wrong. It should be an URI, http://domain.com/path.

The rest looks good

from laravel-auth0.

vyuldashev avatar vyuldashev commented on August 16, 2024

Same.

screen shot 2016-07-27 at 17 17 27

from laravel-auth0.

glena avatar glena commented on August 16, 2024

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.

vyuldashev avatar vyuldashev commented on August 16, 2024

@glena Yes, it's the same. Tried with new code. No result.

from laravel-auth0.

glena avatar glena commented on August 16, 2024

what is the ticket number of the one you sent the code?

from laravel-auth0.

vyuldashev avatar vyuldashev commented on August 16, 2024

12417

from laravel-auth0.

glena avatar glena commented on August 16, 2024

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.

vyuldashev avatar vyuldashev commented on August 16, 2024

I can't do that because its part of the project. It does not even work for Postman.

from laravel-auth0.

glena avatar glena commented on August 16, 2024

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.

vyuldashev avatar vyuldashev commented on August 16, 2024

@glena omg. So sooory I am so inattentive. Thank you!

from laravel-auth0.

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.