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

Loading verified user data from auth0 with external identity provider into the Barong session #1305

Open
alexkopro opened this issue Apr 22, 2021 · 0 comments

Comments

@alexkopro
Copy link

alexkopro commented Apr 22, 2021

As per my test of login through auth0 with external identity provider, in my case the Kakao, I found out that the auth0 passes user info to the Barong server with the external identity provider's information about the user (see 'sub' field') as below:

claims : {"nickname"=>"usernickname", "name"=>"My Name", "picture"=>"imagelinkofpicture", "updated_at"=>"2021-04-22T08:28:54.831Z", "email"=>"[email protected]", "email_verified"=>true, "iss"=>"issinfo", "sub"=>"oauth2|kakao|123456", "aud"=>"tokenvalue", "iat"=>1619080361, "exp"=>1619116361, "nonce"=>"noncevalue"}

It seems that the Barong only catches the 'email' and 'email_verified' fields and does not store any other information coming from auth0.

How about storing them in the database as a user meta data or loading them into the barong session for the frontend or other services to use them ?

@alexkopro alexkopro changed the title Saving user info from auth0 Saving user data from auth0 with external identity provider Apr 22, 2021
@alexkopro alexkopro changed the title Saving user data from auth0 with external identity provider Loading verified user data from auth0 with external identity provider into the Barong session May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant