次の方法で共有


RequiredScopeExtensions.AddRequiredScopeAuthorization Method

Definition

This method adds support for the required scope attribute. It adds a default policy that adds a scope requirement. This requirement looks for IAuthRequiredScopeMetadata on the current endpoint.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequiredScopeAuthorization (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddRequiredScopeAuthorization : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRequiredScopeAuthorization (services As IServiceCollection) As IServiceCollection

Parameters

services
IServiceCollection

The services being configured.

Returns

Services.

Applies to