Share via


IdentityBuilder.AddTokenProvider Method

Definition

Overloads

AddTokenProvider(String, Type)

Adds a token provider for the UserType.

AddTokenProvider<TProvider>(String)

Adds a token provider.

AddTokenProvider(String, Type)

Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs

Adds a token provider for the UserType.

public:
 virtual Microsoft::AspNetCore::Identity::IdentityBuilder ^ AddTokenProvider(System::String ^ providerName, Type ^ provider);
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddTokenProvider (string providerName, Type provider);
abstract member AddTokenProvider : string * Type -> Microsoft.AspNetCore.Identity.IdentityBuilder
override this.AddTokenProvider : string * Type -> Microsoft.AspNetCore.Identity.IdentityBuilder
Public Overridable Function AddTokenProvider (providerName As String, provider As Type) As IdentityBuilder

Parameters

providerName
String

The name of the provider to add.

provider
Type

The type of the IUserTwoFactorTokenProvider<TUser> to add.

Returns

The current IdentityBuilder instance.

Applies to

AddTokenProvider<TProvider>(String)

Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs

Adds a token provider.

public:
generic <typename TProvider>
 where TProvider : class virtual Microsoft::AspNetCore::Identity::IdentityBuilder ^ AddTokenProvider(System::String ^ providerName);
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddTokenProvider<TProvider> (string providerName) where TProvider : class;
abstract member AddTokenProvider : string -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Provider : null)
override this.AddTokenProvider : string -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Provider : null)
Public Overridable Function AddTokenProvider(Of TProvider As Class) (providerName As String) As IdentityBuilder

Type Parameters

TProvider

The type of the token provider to add.

Parameters

providerName
String

The name of the provider to add.

Returns

The current IdentityBuilder instance.

Applies to