Skip to content

oidcext:OIDCScopedString

jalauros edited this page Oct 23, 2017 · 12 revisions

OIDCScopedString encoder encodes an IdPAttribute with scoped string values as a JSON object with string value. This encoder typically combines the value and scope strings, adds a delimiter, and produces a simple string-valued element. If IdPAttribute has multiple scoped string values they are catenated to a single string value with space as delimeter. Multiple values may be encoded also as JSON array.

Schema Name and Location

This xsi:type is defined by the org.geant.idpextension.oidc.attribute.encoder schema, which is located at https://github.com/CSCfi/shibboleth-idp-oidc-extension/blob/master/idp-oidc-extension-impl/src/main/resources/schema/idp-oidc-extension-attribute-encoder.xsd and used by the reference installation from classpath:/schema/idp-oidc-extension-attribute-encoder.xsd

JSON Encoder Attributes

  • scopeDelimiter, can be used to replace the default scope delimeter '@'.
  • asArray, set values to JSON Array. Default value is false.
  • stringDelimiter, delimiter used when catenating multiple values to single string. Default is " ".

Example

<AttributeEncoder xsi:type="oidcext:OIDCScopedString" name="eppn"/>

<AttributeEncoder xsi:type="oidcext:OIDCScopedString" name="eppn" scopeDelimiter="#"/>