Redirect to a specific page dynamically with sso login

0
In our application, we have SSO login using SAML, and we have multiple dashboard pages.   Note: The URLs mentioned below (for example, abc.dedigital.in) are dummy URLs and not the actual production URLs.   When I access the URL abc.dedigital.in, it redirects me to the login page.When I access abc.dedigital.in/sso/, it automatically redirects to the default home page that I have configured. Now, my requirement is this: If I access a URL like abc.dedigital.in/sso/p/pagenamedashboard/ I want the application to: Automatically authenticate the user using SSO, and Redirect the user to the specific page (pagenamedashboard) after successful login. The page name is already configured in the application’s page URL field. How can I dynamically redirect to a specific page in this scenario? Could someone please guide me on how to achieve this? I am using Mendix 9.7.
asked
1 answers
2

A alternative solution is to use the SAML continuation (cont) parameter, which is supported by the Mendix SAML module. Instead of trying to access /sso/p/pagenamedashboard directly, you can redirect users to an SSO login URL that includes the target page as a continuation, for example, SSO/login?f=true&cont=link/p/pagenamedashboard. With this approach, when the user accesses the URL, SSO authentication is triggered automatically and, after a successful login, Mendix redirects the user back to the deep link defined in the cont parameter (in this case, the dashboard page configured via Page URL). This pattern is discussed in the Mendix Community and is commonly used to support SSO combined with deep linking, as explained here.

answered