GitHub Social Authentication โ
AdventureLog can be configured to use GitHub as an identity provider for social authentication. Users can then log in to AdventureLog using their GitHub account.
Configuration โ
To enable GitHub as an identity provider, the administrator must first configure GitHub to allow AdventureLog to authenticate users.
GitHub Configuration โ
Visit the GitHub OAuth Apps Settings page at https://github.com/settings/developers.
Click on
New OAuth App
.Fill in the following fields:
- Application Name:
AdventureLog
or any other name you prefer. - Homepage URL:
<adventurelog-frontend-url>
where<adventurelog-frontend-url>
is the URL of your AdventureLog Frontend service. - Application Description:
AdventureLog
or any other description you prefer. - Authorization callback URL:
http://<adventurelog-backend-url>/accounts/github/login/callback/
where<adventurelog-backend-url>
is the URL of your AdventureLog Backend service. - If you want the logo, you can find it here.
- Application Name:
AdventureLog Configuration โ
This configuration is done in the Admin Panel. You can either launch the pannel directly from the Settings
page or navigate to /admin
on your AdventureLog server.
Login to AdventureLog as an administrator and navigate to the
Settings
page.Scroll down to the
Administration Settings
and launch the admin panel.In the admin panel, navigate to the
Social Accounts
section and click the add button next toSocial applications
. Fill in the following fields:- Provider:
GitHub
- Provider ID: GitHub Client ID
- Name:
GitHub
- Client ID: GitHub Client ID
- Secret Key: GitHub Client Secret
- Key: can be left blank
- Settings: can be left blank
- Sites: move over the sites you want to enable Authentik on, usually
example.com
andwww.example.com
unless you renamed your sites.
- Provider:
What it Should Look Like โ
- Save the configuration.
Users should now be able to log in to AdventureLog using their GitHub account, and link it to exisiting accounts.