RequiredScopeOrAppPermissionExtensions.AddRequiredScopeOrAppPermissionAuthorization Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.