/
SAML2ScopedStringEncoder

SAML2ScopedStringEncoder

Namespace: urn:mace:shibboleth:2.0:resolver
Schema: http://shibboleth.net/schema/idp/shibboleth-attribute-resolver.xsd

TheĀ SAML2ScopedString attribute encoder encodes an IdPAttribute with "scoped" string values as a SAML 2 Attribute. This encoder typically combines the value and scope strings, adds a delimiter, and produces a simple string-valued element.

Reference

Name

Type

Req?

Default

Description

Name

Type

Req?

Default

Description

name

String

Y



Value to put into the "Name" attribute of the output <AttributeValue> elements

nameFormat

String

Ā 

urn:oasis:names:tc:SAML:2.0:attrname-format:uri

Value to put into the "NameFormat" attribute of the output <AttributeValue> elements

friendlyName

String

Ā 

The enclosing attribute's ID

Value to put into the "FriendlyName" attribute of the output <AttributeValue> elements

scopeAttribute

String



Scope

If scopeType is "attribute", then the scope is passed an XML attribute insideĀ the <AttributeValue> elements with this name while the (unscoped) value is passed in the content of the element

scopeDelimiter

String

Ā 

@

If scopeType is "inline", then the output <AttributeValue> element content is constructed by concatenating the unscoped value, the value of this attribute, and the scope

scopeType

"attribute" or "inline"

Ā 

inline

Defines what format the attribute is to be encoded in, generally should be left alone

Examples

<AttributeEncoder xsi:type="SAML2ScopedString" scopeType="attribute" name="https://example.org/oldstyle" friendlyName="OldScopedFormat" /> <AttributeEncoder xsi:type="SAML2ScopedString" scopeDelimiter="#" name="https://example.org/newstyle" friendlyName="NewScopedFormat" />

Ā 

Related content