-
|
We've been using The situation is, the user navigates to site A, which is protected by a proxy with mod_auth_openidc, is redirected properly and logs into IdP and is redirected back to the protected page just fine. The user then opens another browser tab, navigates to site B, which (looking at the network traces) redirects to the IdP, sees that the user is already authenticated, then redirects back to the protected site B, with no issue. However, back on site A, there is some javascript connecting to a URL that is also protected by the same proxy as the rest of site A, which suddenly fails, because I think that the browser now sends the cookie with the session id of the new tab opened up for site B. The browser tries to redirect this connection back to the IdP, or returns a 401 unauthorized, depending on the Apache configuration settings for Is this a correct diagnosis, and if so, is there a workaround so that the browser tab for site A, uses the correct session cookie, or am I going to have to lump all of these legacy sites into a single proxy under a single OIDC client? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
you'll need to investigate in the browser's developer mode what happens: what should happen is that both sites get their own cookie on their own path and that the Javascript code accesses a URL on site A so the site A cookie will be sent along with it; if there's some mismatch in the URL (e.g. the Javascript calls into another site than A) or the settings (e.g. the OIDCCookiePath's between the sites overlap) then you could experience problems; the browser trace would show you which cookie gets sent where |
Beta Was this translation helpful? Give feedback.
you'll need to investigate in the browser's developer mode what happens: what should happen is that both sites get their own cookie on their own path and that the Javascript code accesses a URL on site A so the site A cookie will be sent along with it; if there's some mismatch in the URL (e.g. the Javascript calls into another site than A) or the settings (e.g. the OIDCCookiePath's between the sites overlap) then you could experience problems; the browser trace would show you which cookie gets sent where