RequiredScopeOrAppPermissionExtensions Class
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.
Extensions for building the required scope or app permission attribute during application startup.
public static class RequiredScopeOrAppPermissionExtensions
type RequiredScopeOrAppPermissionExtensions = class
Public Module RequiredScopeOrAppPermissionExtensions
- Inheritance
-
RequiredScopeOrAppPermissionExtensions
Methods
AddRequiredScopeOrAppPermissionAuthorization(IServiceCollection) |
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. |
RequireScopeOrAppPermission<TBuilder>(TBuilder, String[], String[]) |
This method adds metadata to route endpoint to describe required scopes or app permissions. It's the imperative version of the [RequiredScopeOrAppPermission] attribute. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for