How to get RelayState in login.vm

Noriyuki TAKEI ntakei at sios.com
Mon Feb 1 15:58:14 UTC 2021


Thanks!!

I could get RelayState with the code as follows.
#set ($str = 'test')
#set ($samlbindingsupport =
$str.class.forName('org.opensaml.saml.common.binding.SAMLBindingSupport'))
#set ($relayState =
$samlbindingsupport.getRelayState($profileRequestContext.getInboundMessageContext()))

However, I got the value as follows.
ss:mem:9b68e91793914c5fb48f67dac1f4d69df2d821c3e28c7b034543fcdeb5bd14e6

How can I decode the value and get the real URL?


On Mon, Feb 1, 2021 at 10:10 PM Cantor, Scott <cantor.2 at osu.edu> wrote:

> On 2/1/21, 2:56 AM, "users on behalf of Noriyuki TAKEI" <
> users-bounces at shibboleth.net on behalf of ntakei at sios.com> wrote:
>
> >    I'd like to get RelayState in login.vm in Shibboleth Idp v3.
>
> That's a misuse of RelayState, it's opaque to anything at the IdP end.
>
> The routine to do it is
> org.opensaml.saml.common.binding.SAMLBindingSupport.getRelayState(MessageContext)
> run against the inbound message context on the ProfileRequestContext. The
> only way to get that to run in a view is to inject SAMLBindingSupport as a
> custom view object.
>
> -- Scott
>
>
> --
> For Consortium Member technical support, see
> https://wiki.shibboleth.net/confluence/x/coFAAg
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20210202/851f3bb0/attachment.htm>


More information about the users mailing list