Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
borderColor#cccccc
bgColor#eeeeee
borderStylesolid
titleShibboleth IdP V4以降向け

    <AttributeDefinition id="eduPersonTargetedIDLogging" xsi:type="ScriptedAttribute">
        <!-- Inputs that provides the source attribute. -->
        <InputDataConnector ref="computedID" attributeNames="computedID" />
        <InputAttributeDefinition ref="eduPersonPrincipalName" />
        <Script><![CDATA[
            logger = Java.type("org.slf4j.LoggerFactory").getLogger("net.shibboleth.idp.attribute");

            if ( resolutionContext.attributeRecipientID.equals("https://shiken-sp00.nii.ac.jp/shibboleth-sp") )
{
                logger.info(
                    "eduPersonPrincipalName : " + eduPersonPrincipalName.getValues().get(0).getValue()
                        + '@' + eduPersonPrincipalName.getValues().get(0).getScope()
                    + " , eduPersonTargetedID : " + computedID.getValues().get(0)
                    );
            }

        ]]></Script>
    </AttributeDefinition>

...