Skip to main content

ISubjectTypeConverter Interface

Abblix.Oidc.Server

Abblix.Oidc.Server.Features.UserInfo

ISubjectTypeConverter Interface

Defines the interface for a service that converts user subject identifiers according to the client's specified subject type. This conversion ensures that the subject identifier presented to the client is in the format that the client expects, based on its configuration.

public interface ISubjectTypeConverter

Derived
SubjectTypeConverter

Remarks

The implementation of this interface should support various subject types, such as "public" or "pairwise", and provide appropriate conversions based on the OpenID Connect specifications.

Properties

ISubjectTypeConverter.SubjectTypesSupported Property

Lists the subject types that this converter supports. This typically includes "public" and "pairwise" among others, depending on the OpenID Connect implementation specifics.

System.Collections.Generic.IEnumerable<string> SubjectTypesSupported { get; }

Property Value

System.Collections.Generic.IEnumerable<System.String>

Methods

ISubjectTypeConverter.Convert(string, ClientInfo) Method

Converts the subject identifier for an end-user based on the client's subject type.

string Convert(string subject, Abblix.Oidc.Server.Features.ClientInformation.ClientInfo clientInfo);

Parameters

subject System.String

The original subject identifier of the end-user.

clientInfo ClientInfo

Information about the client for which the subject identifier is being transformed.

Returns

System.String
The transformed subject identifier suitable for the client's subject type.