-
1. Re: SEVERE [LogConfiguration] no subscribers to deliver to for subject: org.jboss.errai.security.shared.service.AuthenticationService:RPC
hr.stoyanov Oct 19, 2015 11:47 AM (in response to hr.stoyanov)OK, ...Turns out Keycloak security needs Errai bus/RPC configured, although section 15.12 does not mention it. Is there a fundamental reason for not providing KC with pure JAX-RS - I was quite happy in my project without having to use Errai RPC/bus, only JAX-RS?
After configuring Errai Bus/RPC, I bumped into something else, perhaps because I am trying to use KC 1.5.1 and Errai 3.2.0. FInal is compiled against much older KC - any suggestions?
keycloak/AccessToken.java at master · keycloak/keycloak · GitHub
2015-10-19 15:31:58,651 ERROR [io.undertow.request] (default task-26) UT005023: Exception handling request to /draft/index_draft.jsp: java.lang.NoSuchMethodError: org.keycloak.representations.AccessToken.getAudience()Ljava/lang/String;
at org.jboss.errai.security.keycloak.KeycloakAuthenticationService.getKeycloakUserProperties(KeycloakAuthenticationService.java:203)
at org.jboss.errai.security.keycloak.KeycloakAuthenticationService.createKeycloakUser(KeycloakAuthenticationService.java:186)
at org.jboss.errai.security.keycloak.KeycloakAuthenticationService.getKeycloakUser(KeycloakAuthenticationService.java:177)
at org.jboss.errai.security.keycloak.KeycloakAuthenticationService.getUser(KeycloakAuthenticationService.java:160)
at org.jboss.errai.security.keycloak.KeycloakAuthenticationService$Proxy$_$$_WeldClientProxy.getUser(Unknown Source)
at org.jboss.errai.security.server.servlet.UserCookieFilter.maybeSetUserCookie(UserCookieFilter.java:93)
at org.jboss.errai.security.server.servlet.UserCookieFilter.doFilter(UserCookieFilter.java:71)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
at io.undertow.jsp.JspFileHandler.handleRequest(JspFileHandler.java:32)
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.keycloak.adapters.undertow.UndertowAuthenticatedActionsHandler.handleRequest(UndertowAuthenticatedActionsHandler.java:66)
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:72)
at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:282)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:261)
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:80)
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:172)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:774)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
-
2. Re: SEVERE [LogConfiguration] no subscribers to deliver to for subject: org.jboss.errai.security.shared.service.AuthenticationService:RPC
hr.stoyanov Oct 19, 2015 2:17 PM (in response to hr.stoyanov)Max,
If you upgrade to Keycloak 1.6 ( to be released today) in Errail 3.2.1.SNAPSHOT, I will help testing it right away!
Cheers,
Hristo