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

Integrate oauth login (openid connect) #5

Merged
merged 12 commits into from
Jan 22, 2023
Merged

Integrate oauth login (openid connect) #5

merged 12 commits into from
Jan 22, 2023

Conversation

polldo
Copy link
Owner

@polldo polldo commented Jan 21, 2023

Motivation

I want to make users able to login and signup using their google account.
Oauth login is common in many websites, it's really handy and makes it the authentication flow easier for users.
To be precise, oauth is for authorization. Here I'm using openid connect, that is built on top of oauth, that's for authentication.

Description

If a user signup using oauth, its password will be set to an unguessable randomly generated one. If the user wants to login with a password later on, he can recover the password using the specific 'recovery' endpoint.
Be careful to the state parameter. It's needed to avoid CSRF attacks.

@polldo polldo merged commit 93dacbb into main Jan 22, 2023
@polldo polldo deleted the oauth branch January 26, 2023 14:42
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

Successfully merging this pull request may close these issues.

1 participant