keycloak-scim/topics/identity-broker/social/github.adoc
Bill Burke c775e3debe github
2016-05-26 15:09:17 -04:00

33 lines
1.6 KiB
Text

==== Github
There are a number of steps you have to complete to be able to login to Github. First, go to the `Identity Providers` left menu item
and selected `Github` from the `Add provider` drop down list. This will bring you to the `Add identity provider` page.
.Add Identity Provider
image:../../../{{book.images}}/github-add-identity-provider.png[]
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 {{book.project.name}} as a client there, so
copy this URI to your clipboard.
To enable login with Github you first have to register an application project in the and a client in
https://github.com/settings/applications[GitHub Application Settings]. Select the `Developer applications` tab.
.Add a New App
image:../../../images/github-developer-applications.png[]
Click the `Register a new application` button.
.Register App
image:../../../images/github-register-app.png[]
You'll have to copy the `Redirect URI` from the {{book.project.name}} `Add Identity Provider` page and enter it into the
`Authorization callback URL` field on the Github `Register a new OAuth application` page. Once you've completed this
page you will be brough to the application's management page.
.Github App Page
image:../../../images/gitbook-app-page.png[]
You will need to obtain the client ID and secret from this page so you can enter them into the {{book.project.name}} `Add identity provider` page.
Go back to {{book.project.name}} and specify those items.