Merge pull request #10344 from demarches-simplifiees/try_proper_fc_fix
Tech: repare le multi france connect
This commit is contained in:
commit
675327ddc8
1 changed files with 4 additions and 4 deletions
|
@ -1,12 +1,12 @@
|
||||||
class FranceConnectParticulierClient < OpenIDConnect::Client
|
class FranceConnectParticulierClient < OpenIDConnect::Client
|
||||||
def initialize(code = nil)
|
def initialize(code = nil)
|
||||||
config = FRANCE_CONNECT[:particulier]
|
config = FRANCE_CONNECT[:particulier].deep_dup
|
||||||
|
|
||||||
# TODO: remove this block when migration to new domain is done
|
# TODO: remove this block when migration to new domain is done
|
||||||
# dirty hack to redirect to the right domain
|
# dirty hack to redirect to the right domain
|
||||||
# if !Rails.env.test? && Current.host != ENV.fetch("APP_HOST")
|
if !Rails.env.test? && Current.host != ENV.fetch("APP_HOST")
|
||||||
# config[:redirect_uri] = config[:redirect_uri].gsub(ENV.fetch("APP_HOST"), Current.host)
|
config[:redirect_uri] = config[:redirect_uri].gsub(ENV.fetch("APP_HOST"), Current.host)
|
||||||
# end
|
end
|
||||||
|
|
||||||
super(config)
|
super(config)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue