Skip to content

Commit

Permalink
Merge pull request demarches-simplifiees#10342 from demarches-simplif…
Browse files Browse the repository at this point in the history
…iees/dirty_fix_to_make_fc_work_again

hack: always use default redirect_uri
  • Loading branch information
LeSim authored Apr 17, 2024
2 parents 09dd318 + 2424885 commit 6165df2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/models/france_connect_particulier_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ def initialize(code = nil)
config = FRANCE_CONNECT[:particulier]

# TODO: remove this block when migration to new domain is done
if !Rails.env.test? && Current.host != ENV.fetch("APP_HOST")
config[:redirect_uri] = config[:redirect_uri].gsub(ENV.fetch("APP_HOST"), Current.host)
end
# dirty hack to redirect to the right domain
# if !Rails.env.test? && Current.host != ENV.fetch("APP_HOST")
# config[:redirect_uri] = config[:redirect_uri].gsub(ENV.fetch("APP_HOST"), Current.host)
# end

super(config)

Expand Down

0 comments on commit 6165df2

Please sign in to comment.