IdentityServerBuilderConfigurationExtensions.AddApiAuthorization Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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)
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
Oggetto Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder.
Si applica a
AddApiAuthorization<TUser,TContext>(IIdentityServerBuilder, Action<ApiAuthorizationOptions>)
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
Oggetto Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder.