Operations in PingOne Authorize
enable you to use basic access control rules or custom policies to control access to
An API service operation is a method and path combination that matches a client request to the API. Add operations for API requests that you want to protect.
When PingOne is managing user directory services and access token validation for an API service, you can define built-in access control rules and custom policies for an operation. When these services are managed externally, you can define custom policies for an operation, but you can’t configure built-in access control rules.
- Basic rules
-
Basic rules grant access to protected operations based on:
- User membership in groups. Before you grant access based on group membership, make sure that you add users and create groups in PingOne.
- Authorized
OAuth scopes. Scopes determine the resources that a client can access. For example, a banking application might use scopes to control the kinds of data shared with third-party applications.OAuth A standard framework that enables an application (OAuth client) to obtain access tokens from an OAuth authorization server for the purpose of retrieving protected resources on a resource server.
PingOne Authorize automatically generates policies for basic rules and deploys them when you deploy the associated API service.
Tip:For hands-on experience with defining basic rules for an API operation, see Tutorial 2: Controlling access to specific API operations.
- Custom policies
-
Custom policies handle more complex authorization scenarios, such as evaluating context by pulling in risk scores to determine access. You can enable custom policies when you define an API service, or by editing the API service later.
The following steps provide information about defining an operation with basic rules. For information about custom policies, see Adding custom policies for API services and operations.
If you defined scope-based rules for the operation, make sure you grant the same scopes to PingOne applications so that clients are allowed to access the API operation. To do this, edit the list of allowed scopes on the application’s Resources tab. For more information, see Editing scopes for an application.