added log

This commit is contained in:
Francesco Mangiacrapa 2024-05-03 11:45:18 +02:00
parent 269592914f
commit 7d3e9544f5
1 changed files with 4 additions and 3 deletions

View File

@ -18,7 +18,7 @@ public class IAMClientIdentity implements GcubeIdentity {
private String previousUMAToken = null;
private String currentUMAToken = null;
private String clientId = null;
private static final String IAM_CLIENT_CREDENTIALS = "IAM_CLIENT_CREDENTIALS";
@ -27,6 +27,7 @@ public class IAMClientIdentity implements GcubeIdentity {
public void setIdentity(HttpServletRequest httpRequest) throws Exception {
LOG.info("setIdentity called");
String currentScope = SessionUtil.getCurrentContext(httpRequest, true);
LOG.info("the scope is {}", currentScope);
IAMClientCredentials credentials = sessionGetIAMClientCredentials(httpRequest);
try {
if (credentials == null) {
@ -126,8 +127,8 @@ public class IAMClientIdentity implements GcubeIdentity {
@Override
public String getIdentityDescription() {
return "ClientId: "+ clientId;
return "ClientId: " + clientId;
}
@Override