keycloak-scim/server_admin/topics/identity-broker/social/github.adoc

38 lines
1.7 KiB
Text
Raw Normal View History

2016-05-26 16:09:04 +00:00
2018-01-25 08:35:22 +00:00
==== GitHub
2016-05-26 16:09:04 +00:00
There are a number of steps you have to complete to be able to enable login with GitHub. First, go to the `Identity Providers` left menu item
2018-01-25 08:35:22 +00:00
and select `GitHub` from the `Add provider` drop down list. This will bring you to the `Add identity provider` page.
2016-05-26 16:09:04 +00:00
2016-05-26 19:09:17 +00:00
.Add Identity Provider
2017-08-28 12:50:14 +00:00
image:{project_images}/github-add-identity-provider.png[]
2016-05-26 16:09:04 +00:00
2018-01-25 08:35:22 +00:00
You can't click save yet, as you'll need to obtain a `Client ID` and `Client Secret` from GitHub. One piece of data you'll need from this
page is the `Redirect URI`. You'll have to provide that to GitHub when you register {project_name} as a client there, so
2016-05-26 19:09:17 +00:00
copy this URI to your clipboard.
2016-05-26 16:09:04 +00:00
2018-01-25 08:35:22 +00:00
To enable login with GitHub you first have to register an application project in
2017-04-21 08:22:31 +00:00
https://github.com/settings/developers[GitHub Developer applications].
2016-05-26 16:09:04 +00:00
2018-01-25 08:35:22 +00:00
NOTE: GitHub often changes the look and feel of application registration, so these directions might not always be up to date and the
2016-05-26 20:48:36 +00:00
configuration steps might be slightly different.
2016-05-26 19:09:17 +00:00
.Add a New App
2017-08-28 12:50:14 +00:00
image:images/github-developer-applications.png[]
2016-05-26 16:09:04 +00:00
2016-05-26 19:09:17 +00:00
Click the `Register a new application` button.
2016-05-26 16:09:04 +00:00
2016-05-26 19:09:17 +00:00
.Register App
2017-08-28 12:50:14 +00:00
image:images/github-register-app.png[]
2016-05-26 16:09:04 +00:00
2017-08-28 12:50:14 +00:00
You'll have to copy the `Redirect URI` from the {project_name} `Add Identity Provider` page and enter it into the
2018-01-25 08:35:22 +00:00
`Authorization callback URL` field on the GitHub `Register a new OAuth application` page. Once you've completed this
page you will be brought to the application's management page.
2016-05-26 16:09:04 +00:00
2018-01-25 08:35:22 +00:00
.GitHub App Page
2017-08-28 12:50:14 +00:00
image:images/github-app-page.png[]
2016-05-26 16:09:04 +00:00
2017-08-28 12:50:14 +00:00
You will need to obtain the client ID and secret from this page so you can enter them into the {project_name} `Add identity provider` page.
Go back to {project_name} and specify those items.