Skip to content
Snippets Groups Projects
Unverified Commit a73a3140 authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Another attempt: (#5248)

parent 63304f86
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ Rails.application.config.middleware.use OmniAuth::Builder do
if lb.present?
provider :openid_connect, setup: lambda { |env|
request = Rack::Request.new(env)
current_provider = request.params['current_provider'] || request.url&.split('.')&.first
current_provider = request.params['current_provider'] || request.host&.split('.')&.first
secret = Tenant.find_by(name: current_provider)&.client_secret
issuer_url = File.join issuer.to_s, "/#{current_provider}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment