add OIDC
Basic Build (Arch) / Build (push) Waiting to run
clang-format Check / Formatting Check (push) Waiting to run

This commit is contained in:
2026-08-19 22:00:14 -05:00
parent bf2fa21e95
commit 06ca52c261
13 changed files with 201 additions and 83 deletions
+13 -1
View File
@@ -74,12 +74,24 @@ lastfm-submit-period-hours = 1;
acousticbrainz-api-base-url = "https://acousticbrainz.org";
# Authentication
# Available backends: "internal", "PAM", "http-headers"
# Available backends: "internal", "PAM", "http-headers", "oidc"
authentication-backend = "internal";
# The number of bcrypt rounds to be used when backend is set to "internal". The higher the more secure
internal-password-bcrypt-round = 12;
# The header to be used to read the authentication user when backend is set to "http-headers"
http-headers-login-field = "X-Forwarded-User";
# OpenID Connect settings (used when authentication-backend is "oidc").
# public-url must also be set, and <public-url>/oidc/callback must be registered
# as an allowed redirect URI at the identity provider.
oidc-client-id = "";
oidc-client-secret = "";
oidc-authorization-endpoint = "";
oidc-token-endpoint = "";
oidc-userinfo-endpoint = "";
oidc-scope = "openid profile email";
oidc-provider-name = "OpenID Connect";
# Login name source: "sub" (stable provider subject), "email" (must be verified), or "name".
oidc-login-name-claim = "sub";
# Max entries in the login throttler (1 entry per IP address. For IPv6, the whole /64 block is used)
login-throttler-max-entries = 10000;