Table of Contents

Class SamlAttribute

Namespace
Fdyay.IdentityServer.Saml.Messages
Assembly
Fdyay.IdentityServer.Core.dll

A SAML attribute and its values.

[SuppressMessage("Naming", "CA1711:Identifiers should not have incorrect suffix", Justification = "SAML 2.0 core names this element 'Attribute'.")]
public sealed class SamlAttribute
Inheritance
SamlAttribute
Inherited Members

Remarks

In this assembly since 0.141.0, under the namespace it always had and forwarded from Fdyay.IdentityServer.Saml, so that SamlAttributes can carry it: a profile service adds attributes here and the SAML sign-on writes them. Duende 8.0.1 has two types for this — Saml.Models.SamlAttribute for the profile service and Saml.SamlAttribute for its writer, the same four members each; this server has one.

Properties

FriendlyName

The FriendlyName written with the attribute, e.g. email; none when null. Duende's.

public string? FriendlyName { get; init; }

Property Value

string

Name

The attribute's Name in the assertion.

public required string Name { get; init; }

Property Value

string

NameFormat

The NameFormat written with the attribute, e.g. urn:oasis:names:tc:SAML:2.0:attrname-format:uri; none when null. Duende's.

public string? NameFormat { get; init; }

Property Value

string

Values

The attribute's values, one AttributeValue each in the assertion. Empty by default.

public IReadOnlyList<string> Values { get; init; }

Property Value

IReadOnlyList<string>