Comments (6)
Hm... How do you suggest to solve this?
from auth0-bundle.
I tried with a classical login, and i do not have the user_id key ...
from auth0-bundle.
Oh.. I see the problem.
What id do we have on such user?
https://auth0.com/docs/users/user-profile-structure
from auth0-bundle.
Maybe @evansims knows what unique identifier to use with users logging in with social media.
from auth0-bundle.
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.
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)
- composer installation error
- Every auth0-php classes are final and should not be declared as lazy services HOT 6
- Configuring Auth0 SdkConfiguration arguments HOT 1
- Figure out login domain HOT 1
- Example Symfony config HOT 7
- Unable to install on Symfony 5.3 - `psr/log` is locked to version ^1
- Unusable in Symfony Framework 6+ HOT 2
- Add a JWT decoder for Auth0
- Change the name of this account to abandonr/auth0-bundle
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-bundle.