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 | ||||
---|---|---|---|---|
|
Prerequisites
- Download and run WSO2 Identity Server. For detailed instrction on how to install WSO2 IS, see Installing the Product.
- Go to the Chrome Web Store and add the Postman app.
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:
...