Removed -SNAPSHOT for release
This commit is contained in:
parent
e9af3d2d23
commit
f4c942ddb6
|
@ -3,7 +3,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
||||||
# Changelog for gxREST
|
# Changelog for gxREST
|
||||||
|
|
||||||
|
|
||||||
## [v1.2.0-SNAPSHOT]
|
## [v1.2.0]
|
||||||
|
|
||||||
- Managing new UMA token and not only old authz gcube token [#21525]
|
- Managing new UMA token and not only old authz gcube token [#21525]
|
||||||
- Switched JSON management to gcube-jackson [#19737]
|
- Switched JSON management to gcube-jackson [#19737]
|
||||||
|
|
|
@ -119,12 +119,11 @@ public class GXConnection {
|
||||||
public HttpURLConnection send(HTTPMETHOD method) throws Exception {
|
public HttpURLConnection send(HTTPMETHOD method) throws Exception {
|
||||||
return send(this.buildURL(), method);
|
return send(this.buildURL(), method);
|
||||||
}
|
}
|
||||||
|
|
||||||
private HttpURLConnection addGCubeAuthorizationToken(HttpURLConnection uConn) throws Exception {
|
private HttpURLConnection addGCubeAuthorizationToken(HttpURLConnection uConn) throws Exception {
|
||||||
if (!this.extCall) {
|
if (!this.extCall) {
|
||||||
String oldGcubeAuthtoken = SecurityTokenProvider.instance.get();
|
String oldGcubeAuthToken = SecurityTokenProvider.instance.get();
|
||||||
|
if (Objects.isNull(oldGcubeAuthToken) || oldGcubeAuthToken.isEmpty()) {
|
||||||
if (Objects.isNull(oldGcubeAuthtoken) || oldGcubeAuthtoken.isEmpty()) {
|
|
||||||
String umaToken = AccessTokenProvider.instance.get();
|
String umaToken = AccessTokenProvider.instance.get();
|
||||||
if(Objects.isNull(umaToken) || umaToken.isEmpty()) {
|
if(Objects.isNull(umaToken) || umaToken.isEmpty()) {
|
||||||
throw new IllegalStateException("The security token in the current environment is null.");
|
throw new IllegalStateException("The security token in the current environment is null.");
|
||||||
|
@ -132,7 +131,7 @@ public class GXConnection {
|
||||||
uConn.setRequestProperty("Authorization", "Bearer " + umaToken);
|
uConn.setRequestProperty("Authorization", "Bearer " + umaToken);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
uConn.setRequestProperty(org.gcube.common.authorization.client.Constants.TOKEN_HEADER_ENTRY, oldGcubeAuthtoken);
|
uConn.setRequestProperty(org.gcube.common.authorization.client.Constants.TOKEN_HEADER_ENTRY, oldGcubeAuthToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return uConn;
|
return uConn;
|
||||||
|
@ -186,7 +185,7 @@ public class GXConnection {
|
||||||
}
|
}
|
||||||
return uConn;
|
return uConn;
|
||||||
}
|
}
|
||||||
|
|
||||||
private URL getURL(String urlString) throws MalformedURLException {
|
private URL getURL(String urlString) throws MalformedURLException {
|
||||||
URL url = new URL(urlString);
|
URL url = new URL(urlString);
|
||||||
if (url.getProtocol().equals("https")) {
|
if (url.getProtocol().equals("https")) {
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<groupId>org.gcube.common</groupId>
|
<groupId>org.gcube.common</groupId>
|
||||||
<artifactId>gxREST</artifactId>
|
<artifactId>gxREST</artifactId>
|
||||||
<version>1.2.0-SNAPSHOT</version>
|
<version>1.2.0</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>gCube eXtensions to REST</name>
|
<name>gCube eXtensions to REST</name>
|
||||||
<description>gCube eXtensions to REST</description>
|
<description>gCube eXtensions to REST</description>
|
||||||
|
|
Loading…
Reference in New Issue