KEYCLOAK-7810 Fix NPE in Elytron SAML adapter

This commit is contained in:
Hynek Mlnarik 2018-10-02 10:16:45 +02:00 committed by Hynek Mlnařík
parent c41bcddd8d
commit 211774ccbc
2 changed files with 1 additions and 2 deletions

View file

@ -79,7 +79,7 @@ class KeycloakHttpServerAuthenticationMechanism implements HttpServerAuthenticat
return;
}
if (httpFacade.getRequest().getRelativePath().contains(deployment.getLogoutPage())) {
if (deployment.getLogoutPage() != null && httpFacade.getRequest().getRelativePath().contains(deployment.getLogoutPage())) {
LOGGER.debugf("Ignoring request for [%s] and logout page [%s].", request.getRequestURI(), deployment.getLogoutPage());
httpFacade.authenticationCompleteAnonymous();
return;

View file

@ -21,7 +21,6 @@
<SP entityID="http://localhost:8280/employee-acs/"
sslPolicy="EXTERNAL"
nameIDPolicyFormat="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
logoutPage="/logout.jsp"
forceAuthentication="false">
<PrincipalNameMapping policy="FROM_NAME_ID"/>
<RoleIdentifiers>