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

Narrow the login process to be supported auth0 providers that have an email address. Save the users' Auth0 parametrs to the users table #57

Open
Richard-outreach opened this issue Jan 16, 2019 · 4 comments
Assignees

Comments

@Richard-outreach
Copy link
Contributor

Richard-outreach commented Jan 16, 2019

After a user has logged in or signed-up via Auth0, Auth0 calls the service's /callback endpoint with a unique identifier.

Because we do not know if this is a Auth0 "sign-up" or "sign-in", we need to determine if we need to pull user data from Auth0 and persist it in our "Users" DB entry.

If the User already exist in our User table, no-op.
If the User does not exist in our User table, call Auth0 to retrieve the user's information, then persist it in our database.

@sscchan sscchan changed the title Narrow the login process to be supported auth0 providers that have an email address. Save the users email address in the users table Narrow the login process to be supported auth0 providers that have an email address. Save the users' Auth0 parametrs to the users table Jan 23, 2019
@sscchan
Copy link
Collaborator

sscchan commented Jan 23, 2019

@sscchan sscchan self-assigned this Jan 23, 2019
@sscchan
Copy link
Collaborator

sscchan commented Jan 23, 2019

Project Auth0 endpoint: https://seattlevoluntech.auth0.com

@sscchan
Copy link
Collaborator

sscchan commented Jan 24, 2019

Info on Auth0's flow, especially on getting the token from the callback code.
https://auth0.com/docs/api-auth/tutorials/authorization-code-grant#2-exchange-the-authorization-code-for-an-access-token

@sscchan
Copy link
Collaborator

sscchan commented Jan 26, 2019

Experimentation indicates LinkedIn Auth0 user profile does not provide email address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants