Skip to content
This repository has been archived by the owner on Oct 24, 2020. It is now read-only.

Commit

Permalink
add more log statements to troubleshoot context class refs
Browse files Browse the repository at this point in the history
  • Loading branch information
SavvasMisaghMoayyed committed Jul 25, 2018
1 parent aac480d commit 398be6a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ private void overrideAuthnContextClass(final String clazz, final HttpServletRequ
throw new IllegalArgumentException("No authentication method parameter is found in the request attributes");
}
final RequestedPrincipalContext principalCtx = authnContext.getSubcontext(RequestedPrincipalContext.class, true);
logger.debug("Overriding the principal authn context class ref to {}", clazz);
logger.info("Overriding the principal authn context class ref to {}", clazz);
if (principalCtx != null) {
final List<Principal> principals = new ArrayList<>();
final Principal principal = new AuthnContextClassRefPrincipal(clazz);
principals.add(principal);
principalCtx.setRequestedPrincipals(principals);
logger.error("The final requested authn context class ref principals are {}", principals);
logger.info("The final requested authn context class ref principals are {}", principals);
} else {
logger.error("No requested principal context class is available");
}
Expand Down

0 comments on commit 398be6a

Please sign in to comment.