Add a web session attribute rule, which examines a request and determines whether to grant access to a target site based on an attribute value match found within the PingAccess token.
- Click Access and then go to .
- Click + Add Rule.
In the Name field, enter a unique name up to 64
Special characters and spaces are allowed.
- From the Type list, select Web Session Attribute.
To grant the client access, select the Attribute Name
that you want to match, such as
Enter the Attribute Value for the attribute name, such
If the attribute has multiple values at runtime, the attribute value you specify here must match one of those values.
PingAccess token attributes are obtained from the PingFederate OpenID Connect (OIDC) policy attribute contract. For more information, see Configuring OpenID Connect Policies.
- To add more attributes, click Add Row.
- To remove a row, click the Delete icon.
To disallow access when a match is found, click Negate.
Ensure the attribute name is spelled correctly and exists. If you enter an attribute that does not exist and you select Negate, the rule will always succeed.
If you want to configure rejection handling, click Show Advanced
Settings, then select a rejection handling method:
If you select Basic, provide this information:
- Select Default to use the Rejection Handler list to select an existing rejection handler that defines whether to display an error template or redirect to a URL.
- Select Basic to customize an error message to display as part of the default error page rendered in the end-user's browser if rule evaluation fails. This page is among the templates you can modify with your own branding or other information.
- In the Error Response Code field, enter the HTTP status response code to send if rule evaluation fails. The default is 403.
- In the Error Response Status Message field, enter the HTTP status response message to send if rule evaluation fails. The default is Forbidden.
- In the Error Response Template File field, enter the HTML template page for customizing the error message that displays if rule evaluation fails. This template file is located in the <PA_HOME>/conf/template/ directory.
- From the Error Response Content Type list, select the type of content for the error response. This lets the client properly display the response.
To use this rule, select the Request Profile check box, indicating that you want PingAccess to request additional profile attributes from PingFederate when requesting the ID token.