1.5 KiB
1.5 KiB
title |
---|
Github |
Allows users to authenticate using their Github credentials
Preparation
The following placeholders will be used:
authentik.company
is the FQDN of the authentik install.www.my.company
Homepage URL for your site
Github
- Create an OAuth app under Developer Settings https://github.com/settings/developers by clicking on the Register a new application
- Application Name: Choose a name users will recognize ie: authentik
- Homepage URL:: www.my.company
- Authorization callback URL: https://authentik.company/source/oauth/callback/github
- Click Register Application
Example screenshot
- Copy the Client ID and save it for later
- Click Generate a new client secret and save it for later You will not be able to see the secret again, so be sure to copy it now.
authentik
-
Under Resources -> Sources Click Create Github OAuth Source
-
Name: Choose a name (For the example I use Github)
-
Slug: github (If you choose a different slug the URLs will need to be updated to reflect the change)
-
Consumer Key: Client ID from step 6
-
Consumer Secret: Client Secret from step 7
-
Provider Type: Github
Here is an example of a complete authentik Github OAuth Source
Save, and you now have Github as a source.
:::note For more details on how-to have the new source display on the Login Page see here. :::