Skip to content

Simple demo project demonstrating the use of XACML 3.0 Json Profile in a Policy Enforcement Point (PEP)

Notifications You must be signed in to change notification settings

tommytroen/simple-xacml-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-xacml-sample

Simple Spring Boot application demonstrating the use of the XACML 3.0 JSON Profile in a Policy Enforcement Point (PEP) in a REST API to evaluate access to a given resource.

The application contains a sample RestController(SecuredSampleController) which uses the XACML 3.0 JSON Profile against a Policy Decision Point (PDP) to enforce access control. It will return a simple String representing the resource if access should be permitted, and 403 Forbidden otherwise. To be able to demonstrate the PEP example standalone, a Mock PDP (Policy Decision Point) is also included.

How to test the sample

Run

Runs as a standard Spring Boot app, see Spring Boot Documentation for details.

Use

Point your browser to http://localhost:8080/swagger-ui.html to experiment using swagger.

The sample API requires Basic Authentication, however it accepts all username/password combinations for demostration purposes. In order to get a successful response (i.e. where access is permitted) from the API when using the Mock PDP, you must authenticate with the username: success - all other usernames will give a "Deny" and 403 Forbidden.

About

Simple demo project demonstrating the use of XACML 3.0 Json Profile in a Policy Enforcement Point (PEP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages