IdentityServerBuilderConfigurationExtensions.AddApiAuthorization Метод

Определение

Перегрузки

AddApiAuthorization<TUser,TContext>(IIdentityServerBuilder)

Настраивает значения по умолчанию для сервера удостоверений для сценариев ASP.NET Core.

AddApiAuthorization<TUser,TContext>(IIdentityServerBuilder, Action<ApiAuthorizationOptions>)

Настраивает значения по умолчанию на сервере удостоверений для сценариев ASP.NET Core.

AddApiAuthorization<TUser,TContext>(IIdentityServerBuilder)

Исходный код:
IdentityServerBuilderConfigurationExtensions.cs
Исходный код:
IdentityServerBuilderConfigurationExtensions.cs
Исходный код:
IdentityServerBuilderConfigurationExtensions.cs
Исходный код:
IdentityServerBuilderConfigurationExtensions.cs
Исходный код:
IdentityServerBuilderConfigurationExtensions.cs
Исходный код:
IdentityServerBuilderConfigurationExtensions.cs

Настраивает значения по умолчанию для сервера удостоверений для сценариев ASP.NET Core.

public static Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder AddApiAuthorization<TUser,TContext> (this Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder builder) where TUser : class where TContext : Microsoft.EntityFrameworkCore.DbContext, IdentityServer4.EntityFramework.Interfaces.IPersistedGrantDbContext;
public static Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder AddApiAuthorization<TUser,TContext> (this Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder builder) where TUser : class where TContext : Microsoft.EntityFrameworkCore.DbContext, Duende.IdentityServer.EntityFramework.Interfaces.IPersistedGrantDbContext;
static member AddApiAuthorization : Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder -> Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder (requires 'User : null and 'Context :> Microsoft.EntityFrameworkCore.DbContext and 'Context :> IdentityServer4.EntityFramework.Interfaces.IPersistedGrantDbContext)
static member AddApiAuthorization : Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder -> Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder (requires 'User : null and 'Context :> Microsoft.EntityFrameworkCore.DbContext and 'Context :> Duende.IdentityServer.EntityFramework.Interfaces.IPersistedGrantDbContext)
<Extension()>
Public Function AddApiAuthorization(Of TUser As Class, TContext As Class) (builder As IIdentityServerBuilder) As IIdentityServerBuilder

Параметры типа

TUser

Тип TUser.

TContext

Тип TContext.

Параметры

builder
Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder.

Возвращаемое значение

Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder.

Применяется к

AddApiAuthorization<TUser,TContext>(IIdentityServerBuilder, Action<ApiAuthorizationOptions>)

Исходный код:
IdentityServerBuilderConfigurationExtensions.cs
Исходный код:
IdentityServerBuilderConfigurationExtensions.cs
Исходный код:
IdentityServerBuilderConfigurationExtensions.cs
Исходный код:
IdentityServerBuilderConfigurationExtensions.cs
Исходный код:
IdentityServerBuilderConfigurationExtensions.cs
Исходный код:
IdentityServerBuilderConfigurationExtensions.cs

Настраивает значения по умолчанию на сервере удостоверений для сценариев ASP.NET Core.

public static Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder AddApiAuthorization<TUser,TContext> (this Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder builder, Action<Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ApiAuthorizationOptions> configure) where TUser : class where TContext : Microsoft.EntityFrameworkCore.DbContext, IdentityServer4.EntityFramework.Interfaces.IPersistedGrantDbContext;
public static Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder AddApiAuthorization<TUser,TContext> (this Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder builder, Action<Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ApiAuthorizationOptions> configure) where TUser : class where TContext : Microsoft.EntityFrameworkCore.DbContext, Duende.IdentityServer.EntityFramework.Interfaces.IPersistedGrantDbContext;
static member AddApiAuthorization : Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder * Action<Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ApiAuthorizationOptions> -> Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder (requires 'User : null and 'Context :> Microsoft.EntityFrameworkCore.DbContext and 'Context :> IdentityServer4.EntityFramework.Interfaces.IPersistedGrantDbContext)
static member AddApiAuthorization : Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder * Action<Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ApiAuthorizationOptions> -> Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder (requires 'User : null and 'Context :> Microsoft.EntityFrameworkCore.DbContext and 'Context :> Duende.IdentityServer.EntityFramework.Interfaces.IPersistedGrantDbContext)
<Extension()>
Public Function AddApiAuthorization(Of TUser As Class, TContext As Class) (builder As IIdentityServerBuilder, configure As Action(Of ApiAuthorizationOptions)) As IIdentityServerBuilder

Параметры типа

TUser

Тип TUser.

TContext

Тип TContext.

Параметры

builder
Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder.

configure
Action<ApiAuthorizationOptions>

Объект Action<T> для настройки ApiAuthorizationOptions.

Возвращаемое значение

Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder.

Применяется к