次の方法で共有


IdentityServerBuilderConfigurationExtensions.AddApiAuthorization メソッド

定義

オーバーロード

AddApiAuthorization<TUser,TContext>(IIdentityServerBuilder)

ASP.NET Coreシナリオの Identity Server の既定値を構成します。

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

ASP.NET Coreシナリオの Identity Server で既定値を構成します。

AddApiAuthorization<TUser,TContext>(IIdentityServerBuilder)

ソース:
IdentityServerBuilderConfigurationExtensions.cs
ソース:
IdentityServerBuilderConfigurationExtensions.cs
ソース:
IdentityServerBuilderConfigurationExtensions.cs
ソース:
IdentityServerBuilderConfigurationExtensions.cs
ソース:
IdentityServerBuilderConfigurationExtensions.cs
ソース:
IdentityServerBuilderConfigurationExtensions.cs

ASP.NET Coreシナリオの Identity Server の既定値を構成します。

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シナリオの Identity Server で既定値を構成します。

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

戻り値

Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

Microsoft.Extensions.DependencyInjection.IIdentityServerBuilder

適用対象