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

[WIP] Document how to enable OAuth #265

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dpordomingo
Copy link
Contributor

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).


  • I have updated the CHANGELOG file according to the conventions in keepachangelog.com
  • This PR contains changes that do not require a mention in the CHANGELOG file

Signed-off-by: David Pordomingo <[email protected]>
@dpordomingo dpordomingo added the documentation This issues is related to documentation changes label Nov 7, 2019
@dpordomingo dpordomingo requested a review from a team November 7, 2019 21:16
@dpordomingo dpordomingo self-assigned this Nov 7, 2019
@dpordomingo dpordomingo requested a review from alexpdp7 November 8, 2019 13:29
- "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"

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
```

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`

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This issues is related to documentation changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants