Authorization service installation

From Gcube Wiki
Jump to: navigation, search

The Authorization Service is part of the gCube enabling services

Usage

Maven coordinates

The maven artifact coordinates are:

<dependency>
   <groupId>org.gcube.common</groupId>
   <artifactId>authorization-service</artifactId>
   <version>1.0.0-SNAPSHOT</version> 
   <packaging>war</packaging>
</dependency>

Deployment

Download the war file related to the service into the SmartGears Container (tomcat Webapp folder).

A CouchDB database version 1.6.1 with an pre created DB named authorization is needed.

Resouces Configuration

The authorization service needs a ServiceEndpoint with Category Database and Name AuthorizationDB registered in all the scopes with the following AccessPoint in the profile:

 
<AccessPoint>
 
   <Description>authorization acces point</Description>
 
      <Interface>
 
        <Endpoint EntryName="authorization">{couch db node address}</Endpoint>
 
      </Interface>
 
      <AccessData>
 
        <Username>{database user}</Username>
 
        <Password>{encrypted database password}</Password>
 
      </AccessData>
 
</AccessPoint>