Single sign on 使用keydeporesaml的单点登录

Single sign on 使用keydeporesaml的单点登录,single-sign-on,saml,keycloak,idp,Single Sign On,Saml,Keycloak,Idp,流程:Keyclope saml客户端->IDP代理->外部IDP 当我尝试点击客户端中配置的IDP启动的URL时,它会将我重定向到KeyClope IDP broker端点,并在浏览器中显示“我们遇到问题”,并在日志中记录其nullpointer异常 我已经浏览了几乎所有的帖子和keydaveap文档,它似乎与断言映射有关?这就是我所做的: 1. Created Keycloak saml client using SP xml provided by external IDP 2.

流程:Keyclope saml客户端->IDP代理->外部IDP 当我尝试点击客户端中配置的IDP启动的URL时,它会将我重定向到KeyClope IDP broker端点,并在浏览器中显示“我们遇到问题”,并在日志中记录其nullpointer异常

我已经浏览了几乎所有的帖子和keydaveap文档,它似乎与断言映射有关?这就是我所做的:

  1. Created Keycloak saml client using SP xml provided by external IDP
  2. Added Assertion Consumer Service POST Binding URL as Keycloak's IDP broker url and added idp initated url name in client as
sso-which    gives me an url which I am trying to in browser
  3. Created Identity provider in Keycloak using IDP xml provided by external IDP , SSO url here is url to external SSO/IDP.
  4.Using IDP initiated url  in browser which gives me Keycloak login page (Can be removed later using default provider). 
  5. Once I hit login button it redirect me to keycloak broker endpoint http://host:port/auth/realms/myrealm/broker/saml/endpoint  
and in    browser it says we hit a problem, in logs its nullpointer
以下是完整的stacktrace:

ERROR[org.keydeport.services.ERROR.keydeporerrorhandler](默认任务-798)未捕获服务器错误:org.keydeport.broker.provider.IdentityBrokerException:无法处理来自SAML标识提供程序的响应。
位于org.keydepot.broker.saml.SAMLEndpoint$Binding.handleLoginResponse(SAMLEndpoint.java:469)
位于org.keydepot.broker.saml.SAMLEndpoint$Binding.handleSamlResponse(SAMLEndpoint.java:504)
位于org.keydepot.broker.saml.SAMLEndpoint$Binding.execute(SAMLEndpoint.java:244)
位于org.keydepot.broker.saml.SAMLEndpoint.postBinding(SAMLEndpoint.java:160)
位于sun.reflect.GeneratedMethodAccessor1194.invoke(未知源)
在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)中
位于java.lang.reflect.Method.invoke(Method.java:498)
位于org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
位于org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:509)
位于org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:399)
位于org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$0(ResourceMethodInvoker.java:363)
位于org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:358)
位于org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:365)
位于org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:337)
位于org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:137)
位于org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:106)
位于org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:132)
位于org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:100)
位于org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:443)
位于org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:233)
位于org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:139)
位于org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:358)
位于org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:142)
位于org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:219)
位于org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:227)
位于org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
位于org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
位于javax.servlet.http.HttpServlet.service(HttpServlet.java:791)
位于io.undertow.servlet.handlers.ServletHandler.HandlerRequest(ServletHandler.java:74)
位于io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
位于org.keydeport.services.filters.keydeposessionservletfilter.doFilter(keydeposessionservletfilter.java:90)
位于io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
位于io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
位于io.undertow.servlet.handlers.FilterHandler.HandlerRequest(FilterHandler.java:84)
位于io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.HandlerRequest(ServletSecurityRoleHandler.java:62)
位于io.undertow.servlet.handlers.ServletChain$1.HandlerRequest(ServletChain.java:68)
位于io.undertow.servlet.handlers.ServletDispatchingHandler.HandlerRequest(ServletDispatchingHandler.java:36)
位于org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.HandlerRequest(SecurityContextAssociationHandler.java:78)
位于io.undertow.server.handlers.PredicateHandler.HandlerRequest(PredicateHandler.java:43)
位于io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
位于io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.HandlerRequest(ServletAuthenticationCallHandler.java:57)
位于io.undertow.server.handlers.PredicateHandler.HandlerRequest(PredicateHandler.java:43)
位于io.undertow.security.handler.AbstractSecretentityHandler.HandlerRequest(AbstractSecretentityHandler.java:46)
位于io.undertow.servlet.handlers.security.ServletSecretentityConstraintHandler.HandlerRequest(ServletSecretentityConstraintHandler.java:64)
位于io.undertow.security.handler.AuthenticationMechanismsHandler.HandlerRequest(AuthenticationMechanismsHandler.java:60)
位于io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.HandlerRequest(CachedAuthenticatedSessionHandler.java:77)
位于io.undertow.security.handlers.NotificationReceiverHandler.HandlerRequest(NotificationReceiverHandler.java:50)
位于io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.HandlerRequest(AbstractSecurityContextAssociationHandler.java:43)
位于io.undertow.server.handlers.PredicateHandler.HandlerRequest(PredicateHandler.java:43)
在org.wildfly.extension.undertow.se