fix: use ProviderLoader for AuthConfig.sso_providers when DB providers enabled\n\nAuthConfig.sso_providers only read from YAML config, so self-hosted\nsetups with DB-configured SSO providers (e.g. Authentik via admin UI)\nhad no SSO button on the login page.\n\nWire it to ProviderLoader.load_providers when FeatureFlags.db_sso_providers?\nis true, falling back to YAML config otherwise. (#1614)

This commit is contained in:
Will Wilson
2026-05-01 12:31:32 +01:00
committed by GitHub
parent fbdcfdcab7
commit 2cff2065eb
2 changed files with 12 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ class OidcIdentity < ApplicationRecord
# Find the configured provider for this identity
def provider_config
Rails.configuration.x.auth.sso_providers&.find { |p| p[:name] == provider || p[:id] == provider }
AuthConfig.sso_providers&.find { |p| p[:name] == provider || p[:id] == provider }
end
# Validate that the stored issuer matches the configured provider's issuer