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

B7.4 OAuth2 Token Endpoint #169

Open
Tracked by #45
joshgarde opened this issue May 30, 2023 · 0 comments
Open
Tracked by #45

B7.4 OAuth2 Token Endpoint #169

joshgarde opened this issue May 30, 2023 · 0 comments

Comments

@joshgarde
Copy link

joshgarde commented May 30, 2023

Create an endpoint which accepts the code query parameter from the OAuth2 flow and utilizes it to retrieve an access_token from the OAuth2 provider. This is the endpoint which is provided to the OAuth2 flow as redirect_uri and which the OAuth2 provider will redirect to once they authenticate the user. This endpoint should also handle user creation in the database, if the user is not already created and generating a session. It should also redirect the user, once the code is verified and exchanged for an access_token, to the application's homepage.

Eg. http://LETSMESH/authorize/discord/token?code=abcdefg

@joshgarde joshgarde changed the title B7.3 OAuth2 Token Endpoint B7.4 OAuth2 Token Endpoint May 30, 2023
@joshgarde joshgarde mentioned this issue May 30, 2023
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant