Retrieve the string value (assigned before login - Anonymous) after OIDC login (before land to specific user home page.).

0
Hello All, I'm working on a use case where I need to pass a token (Custom entity) through the URL before OIDC login and retrieve it after the login is completed, just before navigating the user to a specific page. 🔹 Scenario Overview: I have configured the Deeplink module correctly. Users receive a link like: http://localhost:8080/link/linkhandler?Token=lrcm2DFjFJesDl3zsALWJrWkxvM1yMfef In the Deeplink microflow, I redirect users to the OIDC login using the default logic provided by the OIDC module. While constructing the OIDC login URL (In OIDC.GetAuthorizationURL microflow), I append the token using: $URL + '&returnTo=/link/postlogin?Token=' + $Token 🔹 Problem: After the OIDC login is completed, the WebCallback microflow is triggered. However: The GetApplicationURL logic always returns the base URL (e.g., http://localhost:8080). I am unable to retrieve the full returnTo path (i.e., /link/postlogin?Token=XYZ123) that I appended earlier. I need to access this token immediately after OIDC login, before navigating the user to the final page. The challenge is that the anonymous session before login and the authenticated session after login are different, so I can't store the token value in a session object and expect it to persist across the login boundary.
asked
1 answers
0

Hi Harsh,

The GetApplicationURL will get you the application URL (as it says) from the server, not from the HTTP request.

Can you fetch the URL from the WebCallback flow that is triggered? 

Hope this helps you on the way.

KR, Jurre

answered