Seraph SSO configuration using target url that contains query parameters

We have an SSO solution that uses Shibboleth SSO for SSO authentication to a Confluence wiki site.  We've configured Seraph (login.url and link.login.url) to redirect through Shibboleth as follows:

<init-param>
  <param-name>login.url</param-name>          
  <param-value>https://<sp domain>/Shibboleth.sso/Login?target=https://<wiki domain>/wiki?os_destination=${originalurl}</param-value>  
</init-param>

<init-param>     
  <param-name>link.login.url</param-name>
  <param-value>https://<sp domain>/Shibboleth.sso/Login?target=https://<wiki domain>/wiki?os_destination=${originalurl}</param-value>   
</init-param>

 

The problem is, the originalurl contains query parameters (e.g https://<wiki domain>/wiki/pages/viewpage.action?title=Home&spaceKey=Space).  When this is sent back to the SP, only the ${originalurl} portion is URL encoded.  Once the SP decodes the target, the 2nd originalulr query parameter (spaceKey in this example) is interpret as the target's query parameters.

 

It seems as if i need to url encode the entire target after the originalurl has been encoded (i.e dual encode the originalurl) so original url can survive the SP decode.

 

How can i handle origianlurl's that contain query parameters?

 

Thanks

2 answers

This widget could not be displayed.

Have you found a solution?

This widget could not be displayed.

A solution would be great !

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

625 views 8 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you