RequiredScopeOrAppPermissionExtensions.AddRequiredScopeOrAppPermissionAuthorization Method

Definition

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

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

Parameters

services
IServiceCollection

The services being configured.

Returns

Services.

Applies to