-
Notifications
You must be signed in to change notification settings - Fork 31
OAuth Providers
Ryan Wold edited this page Nov 5, 2019
·
6 revisions
As open-source software, Touchpoints supports 2 OAuth providers to authenticate users:
For cloud.gov deployments, only Login.gov is used. But, GitHub is supported to allow other developers to contribute readily to this open-source project, outside of a Federal government context.
This is an example of configuring an application for your own development.
- Visit https://github.com/settings/apps
- Click "OAuth Apps"
- Click "New OAuth App
- Fill out the following information
- Application name =
my test app
- Homepage URL =
http://localhost:3000
- Application Decription =
a description of your choosing
- Authorization Callback URL =
http://localhost:3000/users/auth/github/callback
(note thegithub
)
- Application name =
After completing these steps, you will receive a GITHUB CLIENT ID and a GITHUB SECRET.
Set these optional environment variables in your project environment. Touchpoints looks for the GITHUB_CLIENT_ID
to enable GitHub as an OAuth provider.
⚠ A user can only use 1 authentication provider, not both.