gCube - Feature #17265: Provide oAuth2 service with capability to be

deployed on a multi instance cluster
This commit is contained in:
Massimiliano Assante 2019-09-17 17:38:49 +02:00
parent c6b6937cc1
commit b45e948b99
2 changed files with 3 additions and 3 deletions

View File

@ -190,7 +190,7 @@ public class OauthService {
String cachedToken = (String) json.get("token");
String cachedContext = (String) json.get("context");
logger.debug("Returning cachedToken="+cachedToken + " and cachedContext="+cachedContext);
return new MemCachedBean(cachedToken, cachedContext, null);
return new MemCachedBean(cachedToken, cachedContext);
}catch(Exception e){
logger.error("Failed to check the correctness of the request", e);
return new MemCachedBean("invalid_request");

View File

@ -18,11 +18,11 @@ public class MemCachedBean implements Serializable {
this.success = false;
}
public MemCachedBean(String token, String scope, String errorMessage) {
public MemCachedBean(String token, String scope) {
super();
this.token = token;
this.scope = scope;
this.errorMessage = errorMessage;
this.success = true;
}
public String getToken() {
return token;