Before you begin
Before publishing a XACML policy to the Policy Decision Point (PDP), you need to create the policy first. For more information on how to create a XACML policy, see Creating a XACML Policy.
In order to use a XACML policy for authorization in WSO2 Identity Server, you need to publish it to the Policy Decision Point (PDP) where the authorization decision is made. The policy will not be enforced unless it is published.
At the point of publishing the policy, the policy in the Policy Administration Point(PAP) policy store will sync up with PDP policy store. The PDP will access one or more policies in the Policy Administration Point(PAP), and other additional information such as subject, resource, action and environmental resources in the Policy Information Point(PIP) to make the decision. For more information about this process, see XACML system architecture.
You can publish a XACML policy to PDP for runtime evaluation using the instructions in this topic.
- Sign in. Enter your username and password to log on to the Management Console.
- Navigate to the Main menu to access the Entitlement menu. Click Policy Administration under PAP.
- The policies that you created are listed in the Available Entitlement Policies table.
- You can publish policies using one of the following options.
- Click Publish to My PDP next to the policy you wish to publish - This will publish the specific policy to PDP.
- Select the specific policies you wish to publish using the checkboxes available and click Publish - This will allow us to publish multiple policies at the same time to the PDP.
- Click Publish All to publish all the available policies - This will publish all the policies available in the "Available Entitlement Policy" to the PDP
- The Publish Policy page appears.
- Here you can do the following by clicking on an option from each section.
Select policy publishing action.
Action Discription Add Policy The target action of the policy is "CREATE". This option works only for the initial policy publishing process. The policy is published to the PDP and can be viewed by navigating to PDP>Policy View. Update Policy The target action of the policy is "UPDATE". This option updates an existing policy that has already been published to the PDP. The existing policy listed in the Policy View will be updated. Order Policy The target action of the policy is "ORDER". This option is used to put the existing published policies in order. The policies will be ordered in descending order in the Policy View.
This is not relevant for the initial policy publishing process.
Enable Policy The target action of the policy is "ENABLE". This option enables the policy in the PDP.
This is not relevant for the initial policy publishing process.
Disable Policy The target action of the policy is "DISABLE". This option disables the policy in the PDP.
This is not relevant for the initial policy publishing process.
Delete Policy The target action of the policy is "DELETE". This option deletes an existing published policy in the PDP. The relevant policy will be removed from the Policy View in the PDP. - Select policy Enable/Disable.
- Publish As Enabled Policy - Allows you to enable the policy to be published. This is available by default when publishing to PDP.
- Publish As Disabled Policy - Allows you to disable the policy to be published.
- Select policy order.
- Use default policy order - Sets the default order of a policy as "0".
- Define policy order - Allows you to set a policy order according to your preference.
- The policies that you created are listed in the Available Entitlement Policies table.
- Click Publish.