Added log

This commit is contained in:
Luca Frosini 2021-11-15 16:22:49 +01:00
parent fbed0f57b8
commit 2324531ab9
1 changed files with 3 additions and 2 deletions

View File

@ -73,11 +73,12 @@ public class ContextTest {
SecurityTokenProvider.instance.set(token);
AuthorizationEntry authorizationEntry = Constants.authorizationService().get(token);
ClientInfo clientInfo = authorizationEntry.getClientInfo();
logger.debug("User : {} - Type : {}", clientInfo.getId(), clientInfo.getType().name());
String qualifier = authorizationEntry.getQualifier();
Caller caller = new Caller(clientInfo, qualifier);
AuthorizationProvider.instance.set(caller);
ScopeProvider.instance.set(getContextFullName(token));
String contextFullNane = getContextFullName(token);
ScopeProvider.instance.set(contextFullNane);
logger.debug("Context: {} - User : {} - Type : {}", contextFullNane, clientInfo.getId(), clientInfo.getType().name());
}
@BeforeClass