-
Notifications
You must be signed in to change notification settings - Fork 7
oidcext:OIDCByte
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 buffer as JSON integer array, in that case the results are always set to JSON array.
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
- asInt, present values as a JSON integer. Values are always set to JSON array. 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 " ".
<AttributeEncoder xsi:type="oidcext:OIDCByte" name="logo"/>
<AttributeEncoder xsi:type="oidcext:OIDCByte" asInt="true" name="buffer"/>