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

Explore OAuth2 with GitHub in frontend #10

Open
rohitkrai03 opened this issue Jun 4, 2021 · 1 comment
Open

Explore OAuth2 with GitHub in frontend #10

rohitkrai03 opened this issue Jun 4, 2021 · 1 comment
Assignees

Comments

@rohitkrai03
Copy link
Owner

Description

  • Explore a way to do GitHub authentication in frontend.
@rottencandy rottencandy self-assigned this Jul 16, 2021
@rottencandy
Copy link
Collaborator

I looked into ways to authenticate users using GitHub OAuth and looks like this may not be possible for single page/static web apps.

The docs for Web Application flow say this:

(The implicit grant type is not supported.)

Which means it doesn't support pure client-side authentication, and although the steps make it seem like it could be done without a dedicated backend server, any requests made fail with a CORS error.

This seems to be a known issue and there are some workarounds, like using gatekeeper(which is basically separate a nodejs server just for OAuth, probably not useful to us) or utilizing a service like cors-anywhere(not recommended since the tokens would be passing through a third party).

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