aboutsummaryrefslogtreecommitdiffstats
path: root/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/AuthorizationFilter.java
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2018-09-19 14:22:28 -0500
committerJorge Hernandez <jh1730@att.com>2018-09-19 14:22:28 -0500
commitea37c0eb6f4f93596135035b0e34f29599735c32 (patch)
treef070970bd9ee02c44c474cdcee224cf1bf5ebf44 /policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/AuthorizationFilter.java
parent2f53e137769ec9e658bc7e16a7893c5c35482032 (diff)
tweaks from testing in auth classes
Change-Id: Idb1346ca645ffcc55808e25c8957e01d27a48a75 Signed-off-by: Jorge Hernandez <jh1730@att.com> Issue-ID: POLICY-1043
Diffstat (limited to 'policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/AuthorizationFilter.java')
-rw-r--r--policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/AuthorizationFilter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/AuthorizationFilter.java b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/AuthorizationFilter.java
index cb58371f..d884b869 100644
--- a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/AuthorizationFilter.java
+++ b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/AuthorizationFilter.java
@@ -54,7 +54,7 @@ public abstract class AuthorizationFilter implements Filter {
boolean authorized = request.isUserInRole(role);
logger.info("user {} in role {} is {}authorized to {}",
- request.getUserPrincipal().getName(), role, ((authorized) ? "" : "NOT "), request.getMethod());
+ request.getUserPrincipal(), role, ((authorized) ? "" : "NOT "), request.getMethod());
if (!authorized) {
response.setStatus(HttpServletResponse.SC_FORBIDDEN);