GithubHelp home page GithubHelp logo

authzforce / rest-api-model Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 2.0 180 KB

Generic REST API model for Authorization PDPs

License: Apache License 2.0

Java 60.92% XSLT 39.08%
rest-api restful-api wadl xml xacml json fast-infoset

rest-api-model's Introduction

Javadocs

This package includes a sample client code that shows how to to send a XACML request to the AuthzForce PDP API. This code is in the test class org.ow2.authzforce.rest.api.test in src/test/java.

If you are accessing an Authorization PDP implementation such as AuthzForce Server over SSL (HTTPS), configure the keystore (resp. truststore) location and password in configuration element keyManagers (resp. trustManagers) in file src/test/resources/cxfClient.xml. The keystore is the one that contains your own private key and the certificate that you use to authenticate to the server. The truststore is in src/test/resources, you may have to change to an absolute path for the truststore location, depending on where you execute the code from.

Now, you should be able to compile and run the main() of the AzClient class mentioned previously. If you are using an IDE such as Eclipse, you can import the project as Maven project (requires Eclipse maven plugin installed), right-click on the new project > Run as > maven generate-sources, configure the keystore as above, right-click on the AzClient.java and "Run as" > "Java Application".

rest-api-model's People

Contributors

cdanger avatar romainferrari avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rest-api-model's Issues

Improve <feature> configuration in PDP properties

Replace

<xs:element name="feature" type="xs:anyURI" minOccurs="0" maxOccurs="unbounded" />

with

<xs:complexType name="Feature">
    <xs:simpleContent>
      <xs:extension base="xs:anyURI">
        <xs:attribute name="type" type="xs:anyURI" />
       <xs:attribute name="enabled" type="xs:boolean" default="false" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>

<xs:element name="feature" type="tns:Feature" minOccurs="0" maxOccurs="unbounded" />

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.