-
Notifications
You must be signed in to change notification settings - Fork 51
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
[WIP] Document how to enable OAuth #265
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: David Pordomingo <[email protected]>
- "Authorized domains": `${HOST}` | ||
1. Create a new "Credential" | ||
- https://console.developers.google.com/apis/credentials | ||
- create a new "Create OAuth client ID" for "Wab application" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Wab/Web/
- you can use `ngrok` if running source{d} locally: | ||
```shell | ||
$ ngrok http 8088 | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you verified this? I did not have any issues running on localhost with Google. Maybe this only happens with Github?
- "Application name" | ||
- "Restrictions": | ||
- Authorized JavaScript origins: `${PROTOCOL}://${HOST}` | ||
- Authorized redirect URIs: `${PROTOCOL}://${HOST}/oauth-authorized/google` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there was a way to restrict logins to the Google Apps domain (e.g. allow only @sourced.tech
to log in). That's an interesting option to point out (not sure if Github has any kind of equivalent).
This PR documents the logging using GitHub and Google OAuth, as implemented by src-d/sourced-ui#320.
We could also consider if linking these docs from our main docs (also in GitBook).