Condividi tramite


IdentityServerBuilderConfigurationExtensions.AddApiAuthorization Metodo

Definizione

Overload

AddApiAuthorization<TUser,TContext>(IIdentityServerBuilder)

Configura le impostazioni predefinite per Identity Server per gli scenari di ASP.NET Core.

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

Configura le impostazioni predefinite in Identity Server per gli scenari di ASP.NET Core.

AddApiAuthorization<TUser,TContext>(IIdentityServerBuilder)

Origine:
IdentityServerBuilderConfigurationExtensions.cs
Origine:
IdentityServerBuilderConfigurationExtensions.cs
Origine:
IdentityServerBuilderConfigurationExtensions.cs
Origine:
IdentityServerBuilderConfigurationExtensions.cs
Origine:
IdentityServerBuilderConfigurationExtensions.cs
Origine:
IdentityServerBuilderConfigurationExtensions.cs

Configura le impostazioni predefinite per Identity Server per gli scenari di 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

Parametri di tipo

TUser

Tipo TUser.

TContext

Tipo TContext.

Parametri

builder
Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

Oggetto Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder.

Restituisce

Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

Oggetto Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder.

Si applica a

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

Origine:
IdentityServerBuilderConfigurationExtensions.cs
Origine:
IdentityServerBuilderConfigurationExtensions.cs
Origine:
IdentityServerBuilderConfigurationExtensions.cs
Origine:
IdentityServerBuilderConfigurationExtensions.cs
Origine:
IdentityServerBuilderConfigurationExtensions.cs
Origine:
IdentityServerBuilderConfigurationExtensions.cs

Configura le impostazioni predefinite in Identity Server per gli scenari di 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

Parametri di tipo

TUser

Tipo TUser.

TContext

Tipo TContext.

Parametri

builder
Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

Oggetto Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder.

configure
Action<ApiAuthorizationOptions>

Oggetto Action<T> per configurare l'oggetto ApiAuthorizationOptions.

Restituisce

Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

Oggetto Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder.

Si applica a