...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<!-- A script that checks a Relying Party name --> <bean id="MyCondition" parent="shibboleth.Conditions.Scripted" factory-method="inlineScript"> <constructor-arg> <value> <![CDATA[ value = false; rpCtx = profileContext.getSubcontext("net.shibboleth.idp.profile.context.RelyingPartyContext"(function (parentContext) { const id = "https://sp.example.com/shibboleth"; const subcontextClass = "net.shibboleth.idp.profile.context.RelyingPartyContext"; var subcontext; if (parentContext == null) { return false; } subcontext = parentContext.getSubcontext(subcontextClass); if (rpCtxsubcontext !== null) { return false; } value =return rpCtxsubcontext.getRelyingPartyId().equals("https://sp.example.com/shibboleth"id); } value }(profileContext)); ]]> </value> </constructor-arg> </bean> |
...