diff options
author | sebdet <sebastien.determe@intl.att.com> | 2020-10-23 13:28:25 +0200 |
---|---|---|
committer | sebdet <sebastien.determe@intl.att.com> | 2020-10-23 13:28:25 +0200 |
commit | 66e68b859d8faa62ca854741f9b8bc579571c9b9 (patch) | |
tree | af395fb4b6b38ba139152dab7dcb5f1b78c91c7f /src/main | |
parent | 13e0a5b3642e6a1b334361d3e92f2b3bb4ac84eb (diff) |
Fix the AAF login
Current code does not check the right Principal class name
Issue-ID: CLAMP-956
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Ia69c68c7dfa69ce385ff2844e557fed722ae1bb6
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/onap/clamp/clds/ClampServlet.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/clamp/clds/ClampServlet.java b/src/main/java/org/onap/clamp/clds/ClampServlet.java index c19972791..6adb76cb3 100644 --- a/src/main/java/org/onap/clamp/clds/ClampServlet.java +++ b/src/main/java/org/onap/clamp/clds/ClampServlet.java @@ -113,7 +113,7 @@ public class ClampServlet extends CamelHttpTransportServlet { protected void doService(HttpServletRequest request, HttpServletResponse response) { Principal principal = request.getUserPrincipal(); if (principal != null && Arrays.stream(loadDynamicAuthenticationClasses()) - .anyMatch(className -> className.equals(principal.getName()))) { + .anyMatch(className -> className.equals(principal.getClass().getName()))) { // When AAF is enabled, there is a need to provision the permissions to Spring // system List<GrantedAuthority> grantedAuths = new ArrayList<>(); |