redirecting to page URL after SAML/SSO login?

0
I have a URL /mypage configured to a page in my app. When  I give this URL to a user https://myapp.com/p/mypage .. the user rightfully gets redirected to SSO login page but instead of going to /mypage the user lands on home page of the app. How do I configure SAML module to honor /p handler and get it to /mypage after user logs in.
asked
4 answers
3

The SAML module is capable of accepting a “cont” parameter to redirect you back to a deep link. While the built-in page URLs don’t redirect using this parameter, deep links created by the Deep Link module do. See section 2.7 here.

answered
3

I had the same question and solved it as follows.

The saml module allows for a continuation parameter if this part is filled with a page URL, the user gets properly redirected to this page URL (at least locally and in the on-premise setup of my client). This looks as follows:

http://localhost:40020/SSO/login?f=true&cont=p/[entityname]/[guid]

Locally you can debug the createSession method in SessionManager.java (line 241)

Commented with: // Determine where to redirect the user (either home/landing page or continuation URL)

For me this way, no deeplink module was required and everything works out of the box.
 

answered
0

Hi Bhanu Gandluri,

Actually, the SAML module have to SSO/ path for redirect to idP portal for sign-in. Could you try following the step as link https://docs.mendix.com/appstore/modules/saml#2-installation, but if you want to redirect via ‘mypage’ please use javascript (HTMLSnippet) or URL Redirect widget.

I hope it help.

answered
0

I'm facing the same issues in my application. In my application I previously defined some URLs for redirecting to specific pages and it was working finely. But after SSO implementation it’s redirecting to the Home page rather than the specific page.

Do you resolved this issue?

answered