Need to pass a custom flag in the SSO URL and ensure it is retain in redirected URL.

AkashG368439442
Kilo Contributor

Current Flow:

User clicks SSO URL:
https://xyz.service-now.com/login_with_sso.do?glide_sso_id=056793ad3610e961fca47aba1038

The system redirects the user to login screen:
https://xyz.service-now.com/dc?id=abc_public_global&samlContext=au1_707894289039_bvcd550bb-e916-4180...

Requirement:

Append a custom tracker flag (flag=true or flag=false) to the initial SSO URL.

Ensure that this flag persists and is available in the redirected URL.

Expected Behavior: Based on the flag we are going to manage steps on redirected screen/page as below-

When flag = true:
Display the complete onboarding flow:
Login ➔ Change Password ➔ Review Details ➔ Verify Email

When flag = false:
Display only the Login step.

Objective: The primary goal is to pass a custom flag in the SSO URL and ensure it is retained in redirected URL. so that it can be used on the landing page (abc_public_global) to control the user experience dynamically.
1 REPLY 1

Tanushree Maiti
Giga Patron

Hi @AkashG368439442 

 

Can you try with this URL to pass the flag as url parameter:

https://xyz.service-now.com/login_with_sso.do?glide_sso_id=056793ad3610e961fca47aba1038&u_flag=true

For Redirect , as per KB , look into  SPEntryPage().getLoginURL().

 

Refer this : KB0746730 How to configure user redirects in Service Portal 

               Single sign-on, logins, and URL redirects 

 

You can check this option as well :Set a custom URL as the instance URL 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: