Table of Contents

Interface IUserObjectIdentifier

Namespace
Arc4u.OAuth2.Security
Assembly
Arc4u.OAuth2.AspNetCore.dll

Finds the identifier of a user in the claims of an identity.

public interface IUserObjectIdentifier

Methods

Getidentifier(ClaimsIdentity)

Gets the identifier of the user.

string? Getidentifier(ClaimsIdentity identity)

Parameters

identity ClaimsIdentity

The identity of the user.

Returns

string

The value of the first claim whose type is configured to identify a user, or null when there is none.