mirror of
https://github.com/we-promise/sure.git
synced 2026-06-02 17:29:01 +00:00
refactor: integrate unified provider loader in logout URL generation and update locale keys
This commit is contained in:
@@ -194,8 +194,8 @@ class SessionsController < ApplicationController
|
||||
end
|
||||
|
||||
def build_idp_logout_url(oidc_identity, id_token)
|
||||
# Find the provider configuration
|
||||
provider_config = Rails.configuration.x.auth.sso_providers&.find do |p|
|
||||
# Find the provider configuration using unified loader (supports both YAML and DB providers)
|
||||
provider_config = ProviderLoader.load_providers.find do |p|
|
||||
p[:name] == oidc_identity.provider
|
||||
end
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ en:
|
||||
local_login_disabled: Local password login is disabled. Please use single sign-on.
|
||||
destroy:
|
||||
logout_successful: You have signed out successfully.
|
||||
post_logout:
|
||||
logout_successful: You have signed out successfully.
|
||||
openid_connect:
|
||||
failed: Could not authenticate via OpenID Connect.
|
||||
failure:
|
||||
|
||||
Reference in New Issue
Block a user