<div dir="ltr"><div>Thanks!!</div><div><br></div><div>I could get RelayState with the code as follows.</div>#set ($str = 'test')<br>#set ($samlbindingsupport = $str.class.forName('org.opensaml.saml.common.binding.SAMLBindingSupport'))<br>#set ($relayState = $samlbindingsupport.getRelayState($profileRequestContext.getInboundMessageContext()))<div><br></div><div>However, I got the value as follows.</div>ss:mem:9b68e91793914c5fb48f67dac1f4d69df2d821c3e28c7b034543fcdeb5bd14e6<div><br></div><div>How can I decode the value and get the real URL?</div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 1, 2021 at 10:10 PM Cantor, Scott <<a href="mailto:cantor.2@osu.edu">cantor.2@osu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2/1/21, 2:56 AM, "users on behalf of Noriyuki TAKEI" <<a href="mailto:users-bounces@shibboleth.net" target="_blank">users-bounces@shibboleth.net</a> on behalf of <a href="mailto:ntakei@sios.com" target="_blank">ntakei@sios.com</a>> wrote:<br>
<br>
> I'd like to get RelayState in login.vm in Shibboleth Idp v3.<br>
<br>
That's a misuse of RelayState, it's opaque to anything at the IdP end.<br>
<br>
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.<br>
<br>
-- Scott<br>
<br>
<br>
-- <br>
For Consortium Member technical support, see <a href="https://wiki.shibboleth.net/confluence/x/coFAAg" rel="noreferrer" target="_blank">https://wiki.shibboleth.net/confluence/x/coFAAg</a><br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">users-unsubscribe@shibboleth.net</a><br>
</blockquote></div><br clear="all"><div><br></div></div></div>