IRemoteAuthenticationBuilder<TRemoteAuthenticationState,TAccount> 接口

定义

用于配置远程身份验证服务的接口。

public interface IRemoteAuthenticationBuilder<TRemoteAuthenticationState,TAccount> where TRemoteAuthenticationState : RemoteAuthenticationState where TAccount : RemoteUserAccount
type IRemoteAuthenticationBuilder<'RemoteAuthenticationState, 'Account (requires 'RemoteAuthenticationState :> RemoteAuthenticationState and 'Account :> RemoteUserAccount)> = interface
Public Interface IRemoteAuthenticationBuilder(Of TRemoteAuthenticationState, TAccount)

类型参数

TRemoteAuthenticationState

远程身份验证状态类型。

TAccount

帐户类型。

属性

Services

IServiceCollection

扩展方法

AddAccountClaimsPrincipalFactory<TRemoteAuthenticationState,TAccount, TAccountClaimsPrincipalFactory>(IRemoteAuthenticationBuilder<TRemoteAuthenticationState, TAccount>)

将现有 AccountClaimsPrincipalFactory<TAccount> 替换为由 TAccountClaimsPrincipalFactory定义的用户工厂。

适用于