We use proprietary and third party's cookies to improve your experience and our services, identifying your Internet Browsing preferences on our website; develop analytic activities and display advertising based on your preferences. If you keep browsing, you accept its use. You can get more information on our Cookie Policy
Cookies Policy
FIWARE.OpenSpecification.Security.AccessControlGE.Authorization.Open RESTful API Specification - FIWARE Forge Wiki

FIWARE.OpenSpecification.Security.AccessControlGE.Authorization.Open RESTful API Specification

From FIWARE Forge Wiki

Jump to: navigation, search

Contents

Introduction to the Access Control GE's Authorization API

Please check the FI-WARE Open Specification Legal Notice (implicit patents license) to understand the rights to use FI-WARE Open Specifications.

Authorization API Core

The Access Control GE's Authorization API provides two endpoints:

  • Policy Administration Point (PAP): management of authorization policies, used for access control management;
  • Policy Decision Point (PDP): evaluation of authorization decision requests against authorization policies managed with the above PAP, used for access control enforcement.

The API follows the REST architecture style and requires HTTPS access (TLS 1.0 or later) for mutual authentication, confidentiality and integrity of communications. The representation format is XML for information interchange.

Intended Audience

This specification is intended for clients and implementers of this API. To use this information, the reader should firstly have a general understanding of the Access Control Generic Enabler. You should also be familiar with:

  • RESTful web services
  • HTTP/1.1
  • XML data serialization formats.

API Change History

This version of the API Guide replaces and obsoletes all previous versions. The most recent changes are described in the table below:

Revision Date Changes Summary
June 27, 2013

Version 2.3.3. Added 'refPolicySets' resource and changed (pdp|pap)/domains/{domainId} paths to domains/{domainsId/(pap|pdp)

Apr 19, 2013

Initial Version 2.3.2

How to Read This Document

All FI-WARE RESTful API specifications will follow the same list of conventions and will support certain common aspects. Please check Common aspects in FI-WARE Open Restful API Specifications.

For a description of some terms used along this document, see FIWARE.ArchitectureDescription.Security.Access Control Generic Enabler

Additional Resources

You can download the most current version of this document from the FIWARE API specification website at FIWARE.OpenSpecification.Security.AccessControlGE.Authorization.Open RESTful API Specification. For more details about the Access Control GE's architecture that this API relates to, please refer to FIWARE.ArchitectureDescription.Security.Access Control Generic Enabler.

General API Information

Resources Summary

File:AccessControlGE.Authorization API.png

Authentication

Clients authenticate using TLS client certificate (X.509) prior to accessing the service.

Representation Format

The API supports XML data format. The request format is specified using the Content-Type header and is required for operations that have a request body. The response format can be specified in requests using the Accept header.

Representation Transport

Resource representation is transmitted between client and server by using HTTP 1.1 protocol, as defined by IETF RFC-2616. Each time an HTTP request contains payload, a Content-Type header shall be used to specify the MIME type of the wrapped representation. In addition, both client and server may use as many HTTP headers as they consider necessary.

Resource Identification

Resource identification is made using the mechanisms described by HTTP protocol specification as defined by IETF RFC-2616.

Links and references

API implementations should follow the HATEOAS principle of the REST architecture style to help clients discover the API - resource representation media types, actions and link relations to other resources - entirely through hypermedia, with a fixed root URL as only starting point. If not, the API should at least be described in a WADL document so that the client code may be generated automatically. The goal is to make the client's job of using the API as easy as possible.

Limits

Limits are not specified by this API guide. Each API implementation is free to document their own specific limits.

Versions

Versioning information is not specified by this API guide. Each API implementation is free to document their version info in their own way. However, we recommend to provide such information as part of the WADL (Web Application Document Language) document that describe the actual implementation API, if there is such a document.

Faults

Fault ElementAssociated Error CodesExpected in All Requests?Description
Bad Request400YesThe request could not be processed because it contains missing or invalid information (such as validation error on an input field, a missing required value, and so on).
Unauthorised401YesClient authentication is required.
Forbidden403YesThe request was a valid request and the server understood it, but is refusing to fulfil it, e.g. because the rule set installed in the server does not permit the request.
Not Found404YesThe request specified a URI of a resource that does not exist.
Method Not Allowed405YesThe HTTP verb specified in the request (DELETE, GET, HEAD, POST, PUT) is not supported for this request URI.
Not Acceptable406YesThe resource identified by this request is not capable of generating a representation corresponding to one of the media types in the Accept header of the request.
Request entity too large413YesThe server is refusing to process a request because the request entity is larger than the server is willing or able to process. The server MAY close the connection to prevent the client from continuing the request.
Internal Server Error500YesThe server encountered an unexpected condition which prevented it from fulfilling the request.
Not Implemented501YesThe server does not (currently) support the functionality required to fulfil the request.
Service Unavailable503YesThe server is currently unable to handle the request due to temporary overloading or maintenance of the server.

API Operations

The API operations and associated datatypes are fully described in the Access Control GE - Authorization Restful API package. This package includes:

  • WADL document defining the API;
  • Associated XML schemas imported by the WADL, defining datatypes used by the API: XACML standard schemas for XACML PolicySet, Request and Response elements; Atom standard schema for resource link relations; etc.
Personal tools
Create a book