-
Bug
-
Resolution: Done
-
Major
-
1.5.1
-
None
-
2
-
False
-
-
False
-
-
Bug Fix
-
Done
-
-
-
RHDH Security 3273, RHDH Security 3274, RHDH Security 3275, RHDH Security 3276, RHDH Security 3278, RHDH Security 3279
When deploying RHDH to multiple environments such as production/staging/development, if a user opts to put these environments on different sub-domains of the same domain, authentication issues can start to occur for users that interact with RHDH instances running at these different domains.
For example, given a setup like:
example.foo.com
staging.example.foo.com
dev.example.foo.com
When a user authenticates against an RHDH instance running at "example.foo.com" the user will get a new cookie associated with the auth backend module associated with the domain that the app is running at. If that user then access another RHDH instance running at one of these sub-domains, the user will get an additional cookie with the same ID but associated with the sub-domain.
At this point if the user refreshes the browser the cookie that is used to re-establish the session will be the "example.foo.com" cookie and the refresh API request will work if the user is currently connected to the example.foo.com domain; however the refresh API request will fail if the user is connected to the staging.example.foo.com domain.