hack: always use default redirect_uri

This commit is contained in:
simon lehericey 2024-04-17 11:36:35 +02:00
parent 71b0592b0a
commit 2424885adf
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -3,9 +3,10 @@ class FranceConnectParticulierClient < OpenIDConnect::Client
config = FRANCE_CONNECT[:particulier] config = FRANCE_CONNECT[:particulier]
# TODO: remove this block when migration to new domain is done # TODO: remove this block when migration to new domain is done
if !Rails.env.test? && Current.host != ENV.fetch("APP_HOST") # dirty hack to redirect to the right domain
config[:redirect_uri] = config[:redirect_uri].gsub(ENV.fetch("APP_HOST"), Current.host) # if !Rails.env.test? && Current.host != ENV.fetch("APP_HOST")
end # config[:redirect_uri] = config[:redirect_uri].gsub(ENV.fetch("APP_HOST"), Current.host)
# end
super(config) super(config)