Sdílet prostřednictvím


IdentityServerBuilderConfigurationExtensions.AddApiAuthorization Metoda

Definice

Přetížení

AddApiAuthorization<TUser,TContext>(IIdentityServerBuilder)

Konfiguruje výchozí hodnoty pro server identit pro ASP.NET Core scénáře.

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

Konfiguruje výchozí hodnoty na serveru identit pro ASP.NET Core scénáře.

AddApiAuthorization<TUser,TContext>(IIdentityServerBuilder)

Zdroj:
IdentityServerBuilderConfigurationExtensions.cs
Zdroj:
IdentityServerBuilderConfigurationExtensions.cs
Zdroj:
IdentityServerBuilderConfigurationExtensions.cs
Zdroj:
IdentityServerBuilderConfigurationExtensions.cs
Zdroj:
IdentityServerBuilderConfigurationExtensions.cs
Zdroj:
IdentityServerBuilderConfigurationExtensions.cs

Konfiguruje výchozí hodnoty pro server identit pro ASP.NET Core scénáře.

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

Parametry typu

TUser

Typ TUser .

TContext

Typ TContext .

Parametry

builder
Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

Hodnota Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

Návraty

Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

Hodnota Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

Platí pro

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

Zdroj:
IdentityServerBuilderConfigurationExtensions.cs
Zdroj:
IdentityServerBuilderConfigurationExtensions.cs
Zdroj:
IdentityServerBuilderConfigurationExtensions.cs
Zdroj:
IdentityServerBuilderConfigurationExtensions.cs
Zdroj:
IdentityServerBuilderConfigurationExtensions.cs
Zdroj:
IdentityServerBuilderConfigurationExtensions.cs

Konfiguruje výchozí hodnoty na serveru identit pro ASP.NET Core scénáře.

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

Parametry typu

TUser

Typ TUser .

TContext

Typ TContext .

Parametry

builder
Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

Hodnota Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

configure
Action<ApiAuthorizationOptions>

Chcete-li Action<T> nakonfigurovat .ApiAuthorizationOptions

Návraty

Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

Hodnota Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

Platí pro