Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
RelayState is not honored when an IdP initiated login is done and there is already a valid session - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • RelayState is not honored when an IdP initiated login is done and there is already a valid session
KB0749076

RelayState is not honored when an IdP initiated login is done and there is already a valid session


5469 Views Last updated : Aug 25, 2022 public Copy Permalink
KB Summary by Now Assist

Issue

When an IdP initiated login is done with a Relay State URL and if there is no valid session already, the SAML response is processed and the user is redirected to the Relay State URL if authentication is successful.

If the user again does an IdP initiated login now with a Relay State URL, since there is a valid session already, the user is redirected to navpage.do and the Relay state is not honored. 

Steps to Reproduce

  1. Get an IdP initiated login URL with a Relay state. 
  2. Open this URL in a new browser window. 
  3. Authentication is done and the user is redirected to the Relay State URL as desired.
  4. Open the same URL in a new tab. 
  5. Notice that the Relay state is not honored and the user is redirected to the navpage.do page.

Release

All versions.

Resolution

The permanent fix to this issue is available in the form of a system property that can be toggled true/false depending on the requirement. If the requirement is to honor the Relay state even when there is already a valid session, you would need to create/enable the below system property. 

Navigate to the System properties table (sys_properties.list) and create the below property if it doesn't already exist. 

Name: glide.authenticate.honor.relaystate.for.loggedin.sessions 
Type: true|false 
Value: true


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.