|
|
|
@ -20,13 +20,30 @@ import org.gcube.datatransfer.resolver.services.error.ExceptionManager;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
|
|
|
|
@Path("goat")
|
|
|
|
|
public class GoatResolver {
|
|
|
|
|
|
|
|
|
|
private static Logger LOG = LoggerFactory.getLogger(GoatResolver.class);
|
|
|
|
|
/**
|
|
|
|
|
* The Class OatResolver.
|
|
|
|
|
*
|
|
|
|
|
* generates an old authz token from an UMAToken
|
|
|
|
|
*
|
|
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
|
|
|
|
*
|
|
|
|
|
* Apr 5, 2022
|
|
|
|
|
*/
|
|
|
|
|
@Path("oat")
|
|
|
|
|
public class OatResolver {
|
|
|
|
|
|
|
|
|
|
private static Logger LOG = LoggerFactory.getLogger(OatResolver.class);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets the legacy token.
|
|
|
|
|
*
|
|
|
|
|
* @param req the req
|
|
|
|
|
* @return the legacy token
|
|
|
|
|
* @throws WebApplicationException the web application exception
|
|
|
|
|
*/
|
|
|
|
|
@GET
|
|
|
|
|
@Path("/gettoken")
|
|
|
|
|
@Path("/get")
|
|
|
|
|
@Produces(MediaType.TEXT_PLAIN)
|
|
|
|
|
public Response getLegacyToken(@Context HttpServletRequest req) throws WebApplicationException {
|
|
|
|
|
LOG.info(this.getClass().getSimpleName() + " GET starts...");
|