Resource types define a template for the resources that policies apply to, and the actions that can be performed on those resources.
AM needs a policy to decide whether a user can access a resource. When you configure a policy, you also configure a resource (or a pattern to match several resources) that the policy applies to, and the actions that the policy allows or denies.
Resource types are templates that you can define once and reuse in several policies. For example, you could create a template that always allows PUT and POST operations from your internal network.
Default resource types
AM includes two resource types by default:
OAuth2 Scope. These default resource types are sufficient
for most environments.
URLresource type acts as a template for protecting web pages or applications. It contains resource patterns, such as
*://*:*/*?*, that can be more specific when used in the policy.
This resource type supports the following actions:
For example, an application for Example.com’s HR service might contain resource types that constrain all policies to apply to URL resource types under
http*://example.com/hr*?*, and only allow HTTP
AM also includes a resource type to protect REST endpoints, with patterns including
OAuth2 Scoperesource type
OAuth2 Scoperesource type acts as a template for granting or denying OAuth 2.0 scopes. It contains a string-based scope pattern,
*, and two URL-based scope patterns, such as
*://*:*/*?*. The resource supports the
GRANTaction, which can be allowed or denied.