...
In addition the Spring framework provides the deployer with the option to use macros. This is described here. Probably the most useful macro is #springMessageText(token,'default value')
, which looks up the appropriate (language specific) message property (in files in the messages directory) and returns that value or the default.
...
Code Block |
---|
#set ($outboundContext = $profileRequestContext.getOutboundMessageContext()) #set ($samlPeerContext = $outboundContext.getSubcontext('org.opensaml.saml.common.messaging.context.SAMLPeerEntityContext')) #set ($metadataContext = $samlPeerContext.getSubcontext('org.opensaml.saml.common.messaging.context.SAMLMetadataContext')) #set ($spEntity = $metadataContext.getEntityDescriptor()) |
Show a particular HTML Element depending on the requesting SP's EntityId
Code Block | ||
---|---|---|
| ||
#set ($spEntityId = $profileRequestContext.getSubcontext('net.shibboleth.idp.profile.context.RelyingPartyContext').getRelyingPartyId())
...
#if ($spEntityId.equals("https://sp.examle.org/shibboleth"))
<a>particular HTML element</a>
#end |