Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

WSO2 Identity Server supports the JSON format in addition to the default XML format when you work with XACML 3.0 requests and responses. Therefore, you can send XACML Multiple Decision Profile (MDP) requests in JSON format, and can also recieve MDP responses in the JSON format in an authorization flow in WSO2 Identity Server. For a list of key points you need to keep in mind when you work with XACML 3.0 JSON requests and responses, see JSON Support with XACML 3.0.

Let’s take a look at a sample scenario to understand how you can work with MDP requests and responses in JSON format using WSO2 Identity Server.

...

Table of Contents
maxLevel3
minLevel3

Prerequisites

Procedure

Follow the steps below to publish a sample policy to the PDP in WSO2 Identity Server:

...

Now that you have published the policy, you can send a sample request and see how the policy evaluates the request.

Testing the authorization flow

Tip

You can use any REST client to send a sample request. In this tutorial we are going to use Google Chrome Postman app as the REST client.

...

  • view-welcome
  • view-status
  • view-summary
  • modify-welcome

Analyzing the response

You will see a JSON response similar to the following:

...