|
|
@ -49,12 +49,12 @@ public class LocalOAuthValidator implements OAuth2TokenValidator {
|
|
|
|
boolean isValid = tokenValidationResponse.isValid();
|
|
|
|
boolean isValid = tokenValidationResponse.isValid();
|
|
|
|
String userName = null;
|
|
|
|
String userName = null;
|
|
|
|
String tenantDomain = null;
|
|
|
|
String tenantDomain = null;
|
|
|
|
if(isValid){
|
|
|
|
if (isValid) {
|
|
|
|
userName = MultitenantUtils.getTenantAwareUsername(
|
|
|
|
userName = MultitenantUtils.getTenantAwareUsername(
|
|
|
|
tokenValidationResponse.getAuthorizedUser());
|
|
|
|
tokenValidationResponse.getAuthorizedUser());
|
|
|
|
tenantDomain =
|
|
|
|
tenantDomain =
|
|
|
|
MultitenantUtils.getTenantDomain(tokenValidationResponse.getAuthorizedUser());
|
|
|
|
MultitenantUtils.getTenantDomain(tokenValidationResponse.getAuthorizedUser());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return new OAuthValidationResponse(userName,tenantDomain,isValid);
|
|
|
|
return new OAuthValidationResponse(userName, tenantDomain, isValid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|