First, go to the
Identity Providersleft menu item and select
Add providerdrop down list. This will bring you to the Add identity provider page.
To enable login with Github you first have to register an application project in GitHub Developer applications.
Register a new applicationbutton.
You’ll have to copy the
Redirect URIfrom the "Keycloak Add Identity Provider" page and enter it into the Authorization callback URL field on the Github "Register a new OAuth application" page.
You will need to obtain the client id and secret from this page so you can enter them into the Keycloak "Add identity provider" page. Go back to Keycloak.
Enter the client id and secret.
Enter a default scope
user:emailand click save