OpenID Connect with Authelia
Setting up OIDC login
OIDC allows you to use the same login across multiple apps. This guide will show you how to set up OIDC with Authentik, but the concepts are the same or similar for other providers.
You want to first create an application on Authentik. The settings here don’t play a role for AudioBookRequest though.
You then want to create an OAuth2/OpenID Provider:

Configure the settings as preferred. The important two values are the
Client ID and Client Secret. Take note of those. You should also set the
redirect URL that the OIDC provider will redirect you to after a succesful
login. This has to be the domain of your ABR instance with /auth/oidc
appended.

http or https in the redirect URL. This depends on how you access
AudioBookRequest.
Set the scopes that ABR can get access to. You should always allow for the
openid scope. Any other scopes are optional. You’ll have to check with
your OIDC provider to see what what scopes are required to get a
name/username and groups. “Subject mode” is a unique identifier for the
user. This can be used as the username on ABR.

Assign your newly created provider to the ABR application.
Settings>Security and set the “Login Type” to
“OpenID Connect”.openid
is always required. Any other scopes like email or group are only
required if you intend to use the email for the username or respectively
extract the group of the user.sub is always available, but you might prefere to
use email or username (with the correctly added scope).http or https.
http/s has to match-up with
what protocol your redirect-url uses. Providers will reject logins if this
does not match up.
“OIDC Group Claim” is optional, but allows you to handle the role distribution of users in your OIDC provider instead of in ABR. The exact claim that sends along the information depends on your OIDC provider. The OIDC provider can provide a single string or list of strings.
The groups have to be named exactly one of untrusted, trusted, or admin.
The letter case does not matter.
groups and requires the
profile scope. If you assign a user to a group named trusted, that user will
receive the Trusted role once they login to AudioBookRequest.
Setting up OIDC login
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.