Authentik OIDC Authentication โ
Authentik is a self-hosted identity provider that supports OpenID Connect and OAuth2. AdventureLog can be configured to use Authentik as an identity provider for social authentication. Learn more about Authentik at goauthentik.io.
Once Authentik is configured by the administrator, users can log in to AdventureLog using their Authentik account and link existing AdventureLog accounts to Authentik for easier access.
Configuration โ
To enable Authentik as an identity provider, the administrator must first configure Authentik to allow AdventureLog to authenticate users.
Authentik Configuration โ
- Log in to Authentik and navigate to the
Providers
page and create a new provider. - Select
OAuth2/OpenID Provider
as the provider type. - Name it
AdventureLog
or any other name you prefer. - Set the
Redirect URI
of typeRegex
to^http://<adventurelog-server-url>/accounts/oidc/.*$
where<adventurelog-url>
is the URL of your AdventureLog Server service. - Copy the
Client ID
andClient Secret
generated by Authentik, you will need these to configure AdventureLog. - Create an application in Authentik and assign the provider to it, name the
slug
adventurelog
or any other name you prefer. - If you want the logo, you can find it here.
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:
OpenID Connect
- Provider ID: Autnentik Client ID
- Name:
Authentik
- Client ID: Authentik Client ID
- Secret Key: Authentik Client Secret
- Key: can be left blank
- Settings: (make sure http/https is set correctly)
json{ "server_url": "http://<authentik_url>/application/o/[YOUR_SLUG]/" }
WARNING
localhost
is most likely not a validserver_url
for Authentik in this instance becauselocalhost
is the server running AdventureLog, not Authentik. You should use the IP address of the server running Authentik or the domain name if you have one.- Provider:
- Sites: move over the sites you want to enable Authentik on, usually
example.com
andwww.example.com
unless you renamed your sites.
What it Should Look Like โ
- Save the configuration.
Ensure that the Authentik server is running and accessible by AdventureLog. Users should now be able to log in to AdventureLog using their Authentik account.
Troubleshooting โ
404 error when logging in. โ
Ensure the <adventurelog-server-url>/accounts
path is routed to the backend, as it shouldn't hit the frontend when it's properly configured.
Authentik - No Permission โ
In the Authentik instance, check access to the AdventureLog application from a specific user by using the Check Access/Test button on the Application dashboard. If the user doesn't have access, you can add an existing user/group policy to give your specific user/group access to the AdventureLog application.