GithubHelp home page GithubHelp logo

Comments (6)

Nyholm avatar Nyholm commented on August 13, 2024

Hm... How do you suggest to solve this?

from auth0-bundle.

amenophis avatar amenophis commented on August 13, 2024

I tried with a classical login, and i do not have the user_id key ...

from auth0-bundle.

Nyholm avatar Nyholm commented on August 13, 2024

Oh.. I see the problem.

What id do we have on such user?

https://auth0.com/docs/users/user-profile-structure

from auth0-bundle.

Nyholm avatar Nyholm commented on August 13, 2024

Maybe @evansims knows what unique identifier to use with users logging in with social media.

from auth0-bundle.

clemherreman avatar clemherreman commented on August 13, 2024

This is what we have with users logging in with social media (here with Google):

With minimal scope: openid

array:1 [▼
  "sub" => "google-oauth2|110361367753946035253"
]

With scope: openid, profile, email :

 array:10 [▼
    "sub" => "google-oauth2|123423453456"
    "given_name" => "John"
    "family_name" => "Does"
    "nickname" => "john.does"
    "name" => "John Doe"
    "picture" => "https://lh3.googleusercontent.com/a/XXXXXXXX"
    "locale" => "fr"
    "updated_at" => "2021-08-06T15:32:00.660Z"
    "email" => "[email protected]"
    "email_verified" => true
  ]

sub looks like a good candidate?

API reference: https://auth0.com/docs/api/authentication?http#get-user-info

from auth0-bundle.

Nyholm avatar Nyholm commented on August 13, 2024

Thank you.

The same auth0 user that logs in with Facebook will have a different sub. So it is “too unique”.

We had sub until 0.8.. but maybe I was wrong removing it.

Why may make a difference between “user id” (which would be nullable) and “login identifier” (which is user is with fallback to sub). What do you think?

from auth0-bundle.

Related Issues (10)

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.