This documentation is for WSO2 Identity Server 5.3.0 . View documentation for the latest release.

Versions Compared

Key

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

...

  1. Sign in. Enter your user name and password to log in to the Management Console.
  2. Click Tools and click TryIt under the XACML section.
  3. Click the Create Request Using Editor link.
  4. Use the Toggle editor, which can be selected at the bottom, to create a request in XML. The default elements are as follows:
    • <Resource>
    • <Subject>
    • <Action>
    • <Attribute>
    • <Attribute AttributeId>
    • <AttributeValue/>
    • <Environment>

    Info

    Refer to XACML 2.0/3.0 specification for more information on XACML authorization requests.

    Note
    titleSample XACML XML request

    <Request xmlns="urn:oasis:names:tc:xacml:2.0:context:schema:os"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">  
      <Subject>  
         <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id"
                   DataType="http://www.w3.org/2001/XMLSchema#string">  
           <AttributeValue>admin</AttributeValue>  
         </Attribute>  
      </Subject>  
      <Resource>  
         <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id"
                   DataType="http://www.w3.org/2001/XMLSchema#string">  
           <AttributeValue>http://localhost:8280/services/echo/echoString</AttributeValue>  
         </Attribute>  
      </Resource>  
      <Action>  
         <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id"
                      DataType="http://www.w3.org/2001/XMLSchema#string">  
         <AttributeValue>read</AttributeValue>  
         </Attribute>  
      </Action>  
    </Request>

  5. Click on the Evaluate With PDP button to complete the process. You will receive a response to the authorization request. 

...