mirror of
https://github.com/we-promise/sure.git
synced 2026-05-12 15:15:01 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user