You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, in our Rails app resides a few different brands who offers the same functionality. Through out the entire app, the request.domain of a request determines which brand you are exposed to (brand1.example.com, brand2.example.com, etc.).
We can easily store brand specific credentials and redirect the users to the brand specific authorization path:
But it's less clear how we administrate having different providers for the middleware, chosen based on the visited request.domain. Any idea how to set this up?
The text was updated successfully, but these errors were encountered:
ChristofferJoergensen
changed the title
Switching providers in the Rails app, based on the request.domain of a request?
Switching providers in the Rails app, based on the request.domain of a request?
May 24, 2018
The initializer for this gem is supposed to look like this:
However, in our Rails app resides a few different brands who offers the same functionality. Through out the entire app, the
request.domain
of a request determines which brand you are exposed to (brand1.example.com
,brand2.example.com
, etc.).We can easily store brand specific credentials and redirect the users to the brand specific authorization path:
But it's less clear how we administrate having different providers for the middleware, chosen based on the visited
request.domain
. Any idea how to set this up?The text was updated successfully, but these errors were encountered: