KEYCLOAK-7810 Fix NPE in Elytron SAML adapter
This commit is contained in:
parent
c41bcddd8d
commit
211774ccbc
2 changed files with 1 additions and 2 deletions
|
@ -79,7 +79,7 @@ class KeycloakHttpServerAuthenticationMechanism implements HttpServerAuthenticat
|
||||||
return;
|
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());
|
LOGGER.debugf("Ignoring request for [%s] and logout page [%s].", request.getRequestURI(), deployment.getLogoutPage());
|
||||||
httpFacade.authenticationCompleteAnonymous();
|
httpFacade.authenticationCompleteAnonymous();
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
<SP entityID="http://localhost:8280/employee-acs/"
|
<SP entityID="http://localhost:8280/employee-acs/"
|
||||||
sslPolicy="EXTERNAL"
|
sslPolicy="EXTERNAL"
|
||||||
nameIDPolicyFormat="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
|
nameIDPolicyFormat="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
|
||||||
logoutPage="/logout.jsp"
|
|
||||||
forceAuthentication="false">
|
forceAuthentication="false">
|
||||||
<PrincipalNameMapping policy="FROM_NAME_ID"/>
|
<PrincipalNameMapping policy="FROM_NAME_ID"/>
|
||||||
<RoleIdentifiers>
|
<RoleIdentifiers>
|
||||||
|
|
Loading…
Reference in a new issue