Hi all,
We are having an issue with the Azure AD authentication. It happens when logging out from Azure AD and when re-logging in after session inactivity (expired session).
Being logged in (Azure AD) to our application, if the user hits the Logout link it is redirected to the configured Azure login page. If login is successful the flow is redirected to the referrer url.
Looking at the Users module I found out that this referrer url is saved in a session variable before redirection to Azure login page. Afterwards, when Azure login is successful and redirected back to our application, this session is no longer available - new session is created - thus its variables are emptied. As so, the flow redirects to the default return url which is the Users application - http://(...)/Users
This is the Logout flow:
The problem is that in step 7c the session variable is already empty, eventually the value assigned in step 5b emptied - actually a new session was created. This does not happen every time, only when the session is idle for over 30 seconds...
For the cases that work fine the session identifier for step 7 is the same as for step 5 (keeps the same Session); when it doesn't work, these steps have different SessionId.
There are evidences of this in SAML message logs. When it works, LoginResponse messages have the referrer url in Related URL record.
As a quick fix I obviously tried to update table ConfigInternal (OSUSR_[...]_CFGINTRN) but every record has a hash protection, and couldn't find any UI for it.
Does anyone have or ever had the same problem?
A new version of Users module fixes this issue. To be included in a future platform release.