Bagikan melalui


IdentityServiceCollectionUIExtensions.AddDefaultIdentity Metode

Definisi

Overload

AddDefaultIdentity<TUser>(IServiceCollection)

Menambahkan sekumpulan layanan identitas umum ke aplikasi, termasuk UI default, penyedia token, dan mengonfigurasi autentikasi untuk menggunakan cookie identitas.

AddDefaultIdentity<TUser>(IServiceCollection, Action<IdentityOptions>)

Menambahkan sekumpulan layanan identitas umum ke aplikasi, termasuk UI default, penyedia token, dan mengonfigurasi autentikasi untuk menggunakan cookie identitas.

AddDefaultIdentity<TUser>(IServiceCollection)

Sumber:
IdentityServiceCollectionUIExtensions.cs
Sumber:
IdentityServiceCollectionUIExtensions.cs
Sumber:
IdentityServiceCollectionUIExtensions.cs
Sumber:
IdentityServiceCollectionUIExtensions.cs
Sumber:
IdentityServiceCollectionUIExtensions.cs
Sumber:
IdentityServiceCollectionUIExtensions.cs
Sumber:
IdentityServiceCollectionUIExtensions.cs
Sumber:
IdentityServiceCollectionUIExtensions.cs
Sumber:
IdentityServiceCollectionUIExtensions.cs

Menambahkan sekumpulan layanan identitas umum ke aplikasi, termasuk UI default, penyedia token, dan mengonfigurasi autentikasi untuk menggunakan cookie identitas.

public static Microsoft.AspNetCore.Identity.IdentityBuilder AddDefaultIdentity<TUser> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TUser : class;
static member AddDefaultIdentity : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null)
<Extension()>
Public Function AddDefaultIdentity(Of TUser As Class) (services As IServiceCollection) As IdentityBuilder

Jenis parameter

TUser

Parameter

Mengembalikan

IdentityBuilder.

Keterangan

Untuk menggunakan UI default, aplikasi harus menggunakan Microsoft.AspNetCore.Mvc, Microsoft.AspNetCore.StaticFiles dan berisi _LoginPartial tampilan parsial yang dapat ditemukan oleh aplikasi.

Berlaku untuk

AddDefaultIdentity<TUser>(IServiceCollection, Action<IdentityOptions>)

Sumber:
IdentityServiceCollectionUIExtensions.cs
Sumber:
IdentityServiceCollectionUIExtensions.cs
Sumber:
IdentityServiceCollectionUIExtensions.cs
Sumber:
IdentityServiceCollectionUIExtensions.cs
Sumber:
IdentityServiceCollectionUIExtensions.cs
Sumber:
IdentityServiceCollectionUIExtensions.cs
Sumber:
IdentityServiceCollectionUIExtensions.cs
Sumber:
IdentityServiceCollectionUIExtensions.cs
Sumber:
IdentityServiceCollectionUIExtensions.cs

Menambahkan sekumpulan layanan identitas umum ke aplikasi, termasuk UI default, penyedia token, dan mengonfigurasi autentikasi untuk menggunakan cookie identitas.

public static Microsoft.AspNetCore.Identity.IdentityBuilder AddDefaultIdentity<TUser> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Identity.IdentityOptions> configureOptions) where TUser : class;
static member AddDefaultIdentity : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Identity.IdentityOptions> -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null)
<Extension()>
Public Function AddDefaultIdentity(Of TUser As Class) (services As IServiceCollection, configureOptions As Action(Of IdentityOptions)) As IdentityBuilder

Jenis parameter

TUser

Parameter

configureOptions
Action<IdentityOptions>

IdentityOptionsMengonfigurasi .

Mengembalikan

IdentityBuilder.

Keterangan

Untuk menggunakan UI default, aplikasi harus menggunakan Microsoft.AspNetCore.Mvc, Microsoft.AspNetCore.StaticFiles dan berisi _LoginPartial tampilan parsial yang dapat ditemukan oleh aplikasi.

Berlaku untuk