共用方式為


ServiceAuthenticationFilter.CreatePrincipal(AuthenticateResult) Method

Definition

Creates an IPrincipal using the provided AuthenticateResult.

protected virtual System.Security.Principal.IPrincipal CreatePrincipal (Microsoft.Owin.Security.AuthenticateResult authenticateResult);
abstract member CreatePrincipal : Microsoft.Owin.Security.AuthenticateResult -> System.Security.Principal.IPrincipal
override this.CreatePrincipal : Microsoft.Owin.Security.AuthenticateResult -> System.Security.Principal.IPrincipal
Protected Overridable Function CreatePrincipal (authenticateResult As AuthenticateResult) As IPrincipal

Parameters

authenticateResult
AuthenticateResult

The AuthenticateResult to create the IPrincipal from.

Returns

A new IPrincipal or null.

Applies to