OAuth2Permission 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.
Represents an OAuth 2.0 delegated permission scope. The specified OAuth 2.0 delegated permission scopes may be requested by client applications (through the requiredResourceAccess collection on the Application object) when calling a resource application. The oauth2Permissions property of the ServicePrincipal entity and of the Application entity is a collection of OAuth2Permission.
public class OAuth2Permission
type OAuth2Permission = class
Public Class OAuth2Permission
- Inheritance
-
OAuth2Permission
Constructors
OAuth2Permission() |
Initializes a new instance of the OAuth2Permission class. |
OAuth2Permission(String, String, String, Nullable<Boolean>, String, String, String, String) |
Initializes a new instance of the OAuth2Permission class. |
Properties
AdminConsentDescription |
Gets or sets permission help text that appears in the admin consent and app assignment experiences. |
AdminConsentDisplayName |
Gets or sets display name for the permission that appears in the admin consent and app assignment experiences. |
Id |
Gets or sets unique scope permission identifier inside the oauth2Permissions collection. |
IsEnabled |
Gets or sets when creating or updating a permission, this property must be set to true (which is the default). To delete a permission, this property must first be set to false. At that point, in a subsequent call, the permission may be removed. |
Type |
Gets or sets specifies whether this scope permission can be consented to by an end user, or whether it is a tenant-wide permission that must be consented to by a Company Administrator. Possible values are "User" or "Admin". |
UserConsentDescription |
Gets or sets permission help text that appears in the end user consent experience. |
UserConsentDisplayName |
Gets or sets display name for the permission that appears in the end user consent experience. |
Value |
Gets or sets the value of the scope claim that the resource application should expect in the OAuth 2.0 access token. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應