Versions Compared

Key

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

...

Code Block
languagexml
<AttributeDefinition xsi:type="Scoped" id="affiliation" scope="example.org">
	<AttributeEncoder xsi:type="oidc:OIDCScopedString" name="eduPersonScopedAffiliaton"/>
</AttributeDefinition>
<!-- affiliationeduPersonScopedAffiliaton: "member@example.org student@example.org" -->

<AttributeDefinition xsi:type="Scoped" id="affiliation" scope="example.org">
	<AttributeEncoder xsi:type="oidc:OIDCScopedString" name="eduPersonScopedAffiliaton" asArray="true"/>
</AttributeDefinition>
<!-- affiliationeduPersonScopedAffiliaton: [ "member@example.org", "student@example.org"] -->

<AttributeDefinition id="address" xsi:type="ScriptedAttribute">
    <Script>
	<![CDATA[
		address.addValue("{\"street_address\":\""+street_address.getValues().get(0) + "\","
        +"\"locality\":\""+locality.getValues().get(0) + "\","
        +"\"region\":\""+region.getValues().get(0) + "\","
        +"\"postal_code\":\""+postal_code.getValues().get(0) + "\","
        +"\"country\":\""+country.getValues().get(0) + "\"}");
	]]>
	</Script>
    <AttributeEncoder xsi:type="oidc:OIDCString" asObject="true" name="address" />
</AttributeDefinition>
<!--
 "address": {
    "street_address":"234 Hollywood Blvd.",
    "country":"US",
    "locality":"Los Angeles",
    "region":"CA",
    "postal_code":"90210"
 }
-->

...