Implementing the service

This commit is contained in:
Luca Frosini 2022-04-05 12:42:12 +02:00
parent 18f8fe6f91
commit f0f9cfcd66
5 changed files with 49 additions and 10 deletions

View File

@ -1,6 +1,6 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# Changelog for GOAT
# Changelog for Authorization Bridge
## [v1.0.0]

View File

@ -1,4 +1,4 @@
# GOAT (Get Old Authorization Token)
# Authorization Bridge
This service allows to obtain the old token if the user has a new token
@ -27,7 +27,7 @@ Tell people how to cite this software.
@Manual{,
title = {GOAT Get Old Authorization Token)},
title = {Authorization Bridge},
author = {{Frosini, Luca}},
organization = {ISTI - CNR},
address = {Pisa, Italy},

26
pom.xml
View File

@ -9,7 +9,7 @@
</parent>
<groupId>org.gcube.common</groupId>
<artifactId>goat</artifactId>
<artifactId>authorization-bridge</artifactId>
<version>1.0.0-SNAPSHOT</version>
<properties>
@ -26,8 +26,8 @@
<dependencies>
<dependency>
<groupId>org.gcube.distribution</groupId>
<artifactId>gcube-bom</artifactId>
<version>2.1.0-SNAPSHOT</version>
<artifactId>gcube-smartgears-bom</artifactId>
<version>2.2.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
@ -44,12 +44,24 @@
<artifactId>authorization-client</artifactId>
</dependency>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>common-authorization</artifactId>
<groupId>org.gcube.common</groupId>
<artifactId>common-authorization</artifactId>
</dependency>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>gxHTTP</artifactId>
<groupId>org.gcube.core</groupId>
<artifactId>common-scope</artifactId>
</dependency>
<dependency>
<groupId>org.gcube.core</groupId>
<artifactId>common-smartgears-app</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-multipart</artifactId>
</dependency>
<!-- Test Dependencies -->

View File

@ -0,0 +1,18 @@
package org.gcube.common.authorization;
import javax.ws.rs.ApplicationPath;
import org.gcube.common.authorization.rest.Goat;
import org.glassfish.jersey.server.ResourceConfig;
/**
* @author Luca Frosini (ISTI - CNR)
*/
@ApplicationPath("/")
public class ResourceInitializer extends ResourceConfig {
public ResourceInitializer() {
packages(Goat.class.getPackage().toString());
}
}

View File

@ -0,0 +1,9 @@
package org.gcube.common.authorization.rest;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class Goat {
}