Fix Homebox OIDC invalid_scope error by allowing per-client extra scopes
_authelia_provision_oidc_client() hardcoded openid/profile/email as the
only scopes a registered client could ever request, but Homebox's own
Authelia integration needs 'groups' too — requesting it without it being
in the client's own scopes allowlist made Authelia reject every login
with invalid_scope, even though the server supports 'groups' generally.
Add an EXTRA_SCOPES positional arg (space-separated, right after
REQUIRE_PKCE) that only Homebox's caller populates ("groups"); every
other existing caller passes "" and gets a byte-for-byte unchanged
client registration.
This commit is contained in:
+1
-1
@@ -274,7 +274,7 @@ _immich_offer_authelia_oidc() {
|
||||
# Same three redirect URIs as the "Immich" preset in authelia.sh's own
|
||||
# generic OIDC menu (web login, account-linking, mobile app callback) —
|
||||
# kept identical on purpose so either path produces the same client.
|
||||
if ! _authelia_provision_oidc_client "Immich" "immich" "$AUTH_POLICY" "y" "n" \
|
||||
if ! _authelia_provision_oidc_client "Immich" "immich" "$AUTH_POLICY" "y" "n" "" \
|
||||
"https://${APP_DOMAIN}/auth/login" "https://${APP_DOMAIN}/user-settings" "app.immich:///oauth-callback"; then
|
||||
log_warning "Couldn't register Immich as an OIDC client in Authelia — skipping SSO setup."
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user