ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Deeplinks do not work on SSO OP

book

Article ID: 237524

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

OP setup with SAML and deeplinks does not work when not logged in, and will use RelayState niku/nu even if externalURL and errorURL is set up with RelayState

  1. Set up SAML with Okta and Clarity 16.0.1
  2. Ensure it works with no issue for SSO
  3. Now set up a deep link for this environment in externalURL

http://SERVERNAME:PORT/niku/nu?RelayState=encode(replace(/niku/nu#action:,/niku/app?action=,${entryurl}))

  1. Restart and try connecting again without being logged in. Note it will send you to niku/nu
  2. Now set errorURL to http://SERVERNAME:PORT/niku/nu?RelayState=encode(replace(/niku/nu#action:,/niku/app?action=,${entryurl}))
  3. Restart and try connecting again

Expected Results: the RelayState in externalURL should take precedence over any other setup.

Actual Results: Neither externalURL or errorURL RelayState is taken into account. Debug message:

INFO  2022-03-21 14:08:30,236 [http-nio-2444-exec-1] filter.SAMLFilter (clarity:OKTAUSER:5275398__623B3377-991D-4C82-925D-BB4C56B9ED59:none) SAMLFilter: Decoded relaystate 1 times: http:// SERVERNAME:PORT/niku/nu
INFO  2022-03-21 14:08:30,236 [http-nio-2444-exec-1] filter.SAMLFilter (clarity:OKTAUSER:5275398__623B3377-991D-4C82-925D-BB4C56B9ED59:none) Redirecting to http:// SERVERNAME:PORT/niku/nu

Environment

Release : 16.0.0, 16.0.1

Resolution

This is DE64489, reviewed by Engineering and will be addressed as a part of upcoming enhancement