Skip to content

oidcext:OIDCByte

jalauros edited this page Oct 23, 2017 · 12 revisions

OIDCBytencoder encodes an IdPAttribute with binary values as a JSON object with Base64 string value. If IdPAttribute has multiple binary values the resulting Base64 strings are catenated to a single string value with space as delimeter. Multiple values may be encoded also as JSON array. Base64 encoding may be replaced with presenting the byte value as JSON integer, in that case values are always set to 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

  • asInt, present value as a JSON integer. Default value is false.
  • 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:OIDCByte" name="logo"/> <AttributeEncoder xsi:type="oidcext:OIDCByte" asInt="true" name="buffer"/>