When you use templates to PingAccess applications to PingCentral, you provide the application context root and then define its resources, application policy, and resource policies. This section describes these items in detail and explains why you are prompted to provide this information.
There are three different types of PingAccess applications: Web, API, and Web + API. With Web + API applications, administrators can configure both Web and API settings for an application. These applications can switch between web and API processing behaviors on the fly based on whether the inbound request contains a web session cookie (Web) or an OAuth token (API).
Resources are protected by rules, which let you specify who can access your applications and resources, how and when they can do so, and what modifications can be made to the requested content. When rules, or sets of rules, are applied to applications and resources, they are called policies. Policies are applied to requests, which determine whether users are granted or denied access to the requested resource.
When you use a template to add a PingAccess application to PingCentral, you are prompted to provide the context root and define the resources within it. For more information, see Application resources in the PingAccess User Interface Reference Guide.
When handling requests, PingAccess uses resource path patterns to match resources. There are two different types of path patterns: Basic and Regex.
- Basic patterns: The default path pattern type, which defines
a path to a specific resource or a pattern that matches multiple paths. Basic
patterns can contain any number of "*" wildcards. For
/path/x/*matches any of these request paths:
/path/x/ /path/x/index.html /path/x/y/z/index.html
- Regex patterns: Regex patterns contain regular expressions
and allow for more flexibility in resource matching as they support resource
/[^/]+/[a-z]+\.htmlmatches any of these request paths:
/images/gallery.html /search/index.htmlHowever, it would not match any of these request paths:
/images/gallery2.html /search/pages/index.html /index.htmlNote:
Although Regex path patterns function in an agent deployment, system performance might decrease if they are used. Agents are unable to interpret Regex path patterns, so they must consult PingAccess for policy decisions for each resource with a Regex path pattern.
When one or more path patterns match a request, PingAccess uses the first matching pattern it identifies, so the order in which path patterns are evaluated is important. By default, PingAccess orders path patterns automatically so that the most specific patterns are matched first. However, if more explicit control is needed, or if you are using regular expressions, enable resource ordering to manually specify the order in which path patterns are evaluated.
A request to resource
/images/logo.png is matched by all 3 path
patterns, yet each resource can have different policy requirements. Resource ordering
allows you to specify which of these path patterns is parsed first, further allowing you
to control the policy that is applied to a particular request.
When you define the application resources in PingCentral, you are prompted to provide path pattern information. For more information, see Path patterns reference in the PingAccess User Interface Reference Guide.
Rules and policies
Rules let you specify who can access your applications and resources, how and when they can do so, and what modifications can be made to the requested content. There are two different types of rules: access control rules and processing rules. Access control rules determine whether users can access a resource, and processing rules determine how requests are processed.
- Application policies: Rules applied to the application as a whole. You can define Web rules and API rules for Web + API applications.
- Resource policies: Rules applied to specific resources. Every application has at least one resource.
- Any: An any rule set is evaluated from top to bottom and stops at the first rule that has its criteria met. If all rules fail, the request is denied.
- All: An all rule set is evaluated from top to bottom and stops when it gets to the first rule that does not have its criteria met. If one rule fails, the request is denied.
For more information, see Rules in the PingAccess User Interface Reference Guide.