Skip to content

Instantly share code, notes, and snippets.

@Pushpalanka
Created June 14, 2017 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pushpalanka/1997e96cb0dc30a28f70ca46c172d10c to your computer and use it in GitHub Desktop.
Save Pushpalanka/1997e96cb0dc30a28f70ca46c172d10c to your computer and use it in GitHub Desktop.
Sample XACML Request
<Request xmlns="urn:oasis:names:tc:xacml:2.0:context:schema:os">
<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>
<Environment/>
</Request>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment