Multitenancy for WAR
by Nils Preusker
Hi,
first of all, congrats on the beta 1 release!
Here's my question: I have a WAR with a REST API that I'm securing with
Keycloak. Now I'd like to add multitenancy support.
If I understand the concept in keycloak correctly, I would somehow have to
have several realms in the keycloak.json and the web.xml of the war, right?
However there is just one realm-name attribute in the web.xml and the
structure of keycloak.json also looks like it is intended for one realm. Am
I missing something?
Cheers,
Nils
10 years, 3 months
Java Keycloak REST API Wrapper
by Rodrigo Sasaki
Hi,
I'm working on a Java-based wrapper for the REST API, to make it look more
OO, abstracting the access to servers.
It uses methods such as
User bill = realm.getUser("bburke")
List<RoleRepresentation> roles =
bill.getApplicationRoleMappings("customer-portal");
It's still in it's early stages, but if you find it interesting, I'd be
happy to create a repo for other Java users to use it, and adapt it based
on suggestions aswell.
Best regards,
--
Rodrigo Sasaki
10 years, 4 months
Defining a new user password through REST API
by Rodrigo Sasaki
Hello again!
Is there a way for me to define a password for a user through the REST API
without him having to define a new one on the next login?
The only method I found to be close to what I want was the one that resets
the password, but I would like to redefine it without the user having
anything to do with it.
Is it possible?
--
Rodrigo Sasaki
10 years, 5 months
Error with WAR deploy in JBoss EAP 6.1
by Steven Pousty
Greetings all:
I am trying to do the war deploy in EAP 6.1 on Fedora 20 (64 bit)
After copying over the files to deployments and configuration, when I
try to boot eap I get the following error
18:42:50,359 INFO [org.jboss.as.server.deployment] (MSC service thread
1-8) JBAS015876: Starting deployment of "auth-server.war" (runtime-name:
"auth-server.war")
18:42:50,359 INFO [org.jboss.as.server.deployment] (MSC service thread
1-7) JBAS015876: Starting deployment of "keycloak-ds.xml" (runtime-name:
"keycloak-ds.xml")
18:42:50,366 INFO [org.jboss.as.remoting] (MSC service thread 1-2)
JBAS017100: Listening on 127.0.0.1:9999 <http://127.0.0.1:9999>
18:42:50,366 INFO [org.jboss.as.remoting] (MSC service thread 1-1)
JBAS017100: Listening on 127.0.0.1:4447 <http://127.0.0.1:4447>
18:42:50,382 INFO [org.jboss.as.connector.subsystems.datasources] (MSC
service thread 1-4) JBAS010400: Bound data source
[java:jboss/datasources/ExampleDS]
18:42:50,505 INFO [org.jboss.as.connector.subsystems.datasources] (MSC
service thread 1-2) JBAS010400: Bound data source
[java:jboss/datasources/KeycloakDS]
18:42:51,658 INFO [org.jboss.as.jpa] (MSC service thread 1-2)
JBAS011401: Read persistence.xml for jpa-keycloak-identity-store
18:42:51,659 INFO [org.jboss.as.jpa] (MSC service thread 1-2)
JBAS011401: Read persistence.xml for jpa-keycloak-audit-store
18:42:51,816 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3)
MSC000001: Failed to start service
jboss.module.service."deployment.auth-server.war".main:
org.jboss.msc.service.StartException in service
jboss.module.service."deployment.auth-server.war".main: JBAS018759:
Failed to load module: deployment.auth-server.war:main
at
org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:92)
[jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_21]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_21]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
Caused by: org.jboss.modules.ModuleNotFoundException: org.bouncycastle:main
at org.jboss.modules.Module.addPaths(Module.java:949)
[jboss-modules.jar:1.2.0.Final-redhat-1]
at org.jboss.modules.Module.link(Module.java:1304)
[jboss-modules.jar:1.2.0.Final-redhat-1]
at org.jboss.modules.Module.relinkIfNecessary(Module.java:1332)
[jboss-modules.jar:1.2.0.Final-redhat-1]
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:226)
[jboss-modules.jar:1.2.0.Final-redhat-1]
at
org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:71)
[jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
... 5 more
I know about the messed up WAR file that was accidentally uploaded but
this WAR file was downloaded yesterday. Anyone have any idea on what I
should try next?
Thanks
Steve
10 years, 5 months
Linkage Errors
by Conrad Winchester
Hi all,
So, trying to get a keycloak enabled server out of Intellij and onto a UAT box is proving to be a bit of a nightmare :-(
I am using the following dependencies for my project (removed some that are not part of the problem)
dependencies {
providedCompile 'org.jboss.spec:jboss-javaee-7.0:1.0.0.Final'
providedCompile 'org.jboss.resteasy:resteasy-multipart-provider:3.0.6.Final'
providedCompile 'org.jboss.resteasy:resteasy-jackson2-provider:3.0.6.Final'
compile 'org.keycloak:keycloak-core:1.0-beta-3'
}
and I have my own version of the HttpClientBuilder utility class copied from the keycloak source in my application.
When running inside IntelliJ everything works fine, however when I try to run my way standalone on a UAT server I am getting the following linkage error. When I don’t include the keyclick core I don’t get the error, but I need keycloak code for the KeycloakPrincipal class.
I think it might be to do with conflicting versions of the org.apache.httpcomponents:httpclient library (4.2.1 vs 4.01), but am a little out of my depth. I have been struggling all night with this and would appreciate any help.
Thanks
Conrad
2014-06-25 07:05:16,047 INFO [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016005: Starting Services for CDI deployment: shift-server.war
2014-06-25 07:05:16,073 INFO [org.jboss.weld.Version] (MSC service thread 1-1) WELD-000900: 2.1.2 (Final)
2014-06-25 07:05:16,118 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016008: Starting weld service for deployment shift-server.war
2014-06-25 07:05:16,477 INFO [org.jboss.weld.Bootstrap] (weld-worker-1) WELD-000119: Not generating any bean definitions from com.shift.service.oauth.KeycloakAuthAdapter because of underlying class loading error: Type org.apache.http.HttpEntity from [Module "deployment.shift-server.war:main" from Service Module Loader] not found. If this is unexpected, enable DEBUG logging to see the full error.
2014-06-25 07:05:16,482 WARN [org.jboss.modules] (weld-worker-2) Failed to define class com.shift.keycloak.HttpClientBuilder$VerifierWrapper in Module "deployment.shift-server.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link com/shift/keycloak/HttpClientBuilder$VerifierWrapper (Module "deployment.shift-server.war:main" from Service Module Loader)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:487) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
at java.lang.Class.getDeclaringClass0(Native Method) [rt.jar:1.8.0]
at java.lang.Class.getDeclaringClass(Class.java:1222) [rt.jar:1.8.0]
at java.lang.Class.getEnclosingClass(Class.java:1264) [rt.jar:1.8.0]
at java.lang.Class.getSimpleBinaryName(Class.java:1430) [rt.jar:1.8.0]
at java.lang.Class.isMemberClass(Class.java:1420) [rt.jar:1.8.0]
at org.jboss.weld.util.reflection.Reflections.getNesting(Reflections.java:134) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedConstructor.initParameters(BackedAnnotatedConstructor.java:50) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedConstructor.initParameters(BackedAnnotatedConstructor.java:28) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedCallable.<init>(BackedAnnotatedCallable.java:34) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedConstructor.<init>(BackedAnnotatedConstructor.java:38) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedConstructor.of(BackedAnnotatedConstructor.java:32) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedConstructors.computeValue(BackedAnnotatedType.java:165) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedConstructors.computeValue(BackedAnnotatedType.java:158) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.util.LazyValueHolder.get(LazyValueHolder.java:35) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$EagerlyInitializedLazyValueHolder.<init>(BackedAnnotatedType.java:154) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedConstructors.<init>(BackedAnnotatedType.java:158) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedConstructors.<init>(BackedAnnotatedType.java:158) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType.<init>(BackedAnnotatedType.java:64) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType.of(BackedAnnotatedType.java:47) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.resources.ClassTransformer$TransformClassToBackedAnnotatedType.load(ClassTransformer.java:83) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.resources.ClassTransformer$TransformClassToBackedAnnotatedType.load(ClassTransformer.java:80) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
at org.jboss.weld.util.cache.LoadingCacheUtils.getCacheValue(LoadingCacheUtils.java:52) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.util.cache.LoadingCacheUtils.getCastCacheValue(LoadingCacheUtils.java:80) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:175) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:194) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bootstrap.BeanDeployer.loadAnnotatedType(BeanDeployer.java:119) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:96) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$1.doWork(ConcurrentBeanDeployer.java:62) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$1.doWork(ConcurrentBeanDeployer.java:60) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.8.0]
Caused by: java.lang.NoClassDefFoundError: org/apache/http/conn/ssl/X509HostnameVerifier
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0]
at java.lang.ClassLoader.defineClass(ClassLoader.java:760) [rt.jar:1.8.0]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]
... 50 more
Caused by: java.lang.ClassNotFoundException: org.apache.http.conn.ssl.X509HostnameVerifier from [Module "deployment.shift-server.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
... 54 more
2014-06-25 07:05:16,489 INFO [org.jboss.weld.Bootstrap] (weld-worker-2) WELD-000119: Not generating any bean definitions from com.shift.keycloak.HttpClientBuilder$PassthroughTrustManager because of underlying class loading error: Type org.apache.http.conn.ssl.X509HostnameVerifier from [Module "deployment.shift-server.war:main" from Service Module Loader] not found. If this is unexpected, enable DEBUG logging to see the full error.
2014-06-25 07:05:16,511 WARN [org.jboss.modules] (weld-worker-1) Failed to define class com.shift.keycloak.HttpClientBuilder$VerifierWrapper in Module "deployment.shift-server.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link com/shift/keycloak/HttpClientBuilder$VerifierWrapper (Module "deployment.shift-server.war:main" from Service Module Loader)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:487) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:68) [wildfly-weld-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.weld.bootstrap.BeanDeployer.loadClass(BeanDeployer.java:106) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:94) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$1.doWork(ConcurrentBeanDeployer.java:62) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$1.doWork(ConcurrentBeanDeployer.java:60) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.8.0]
Caused by: java.lang.NoClassDefFoundError: org/apache/http/conn/ssl/X509HostnameVerifier
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0]
at java.lang.ClassLoader.defineClass(ClassLoader.java:760) [rt.jar:1.8.0]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]
... 19 more
Caused by: java.lang.ClassNotFoundException: org.apache.http.conn.ssl.X509HostnameVerifier from [Module "deployment.shift-server.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
... 23 more
2014-06-25 07:05:16,514 INFO [org.jboss.weld.Bootstrap] (weld-worker-1) WELD-000119: Not generating any bean definitions from com.shift.keycloak.HttpClientBuilder$VerifierWrapper because of underlying class loading error: Type org.apache.http.conn.ssl.X509HostnameVerifier from [Module "deployment.shift-server.war:main" from Service Module Loader] not found. If this is unexpected, enable DEBUG logging to see the full error.
2014-06-25 07:05:16,530 INFO [org.jboss.weld.Bootstrap] (weld-worker-2) WELD-000119: Not generating any bean definitions from com.shift.keycloak.HttpClientBuilder because of underlying class loading error: Type org.apache.http.conn.ssl.X509HostnameVerifier from [Module "deployment.shift-server.war:main" from Service Module Loader] not found. If this is unexpected, enable DEBUG logging to see the full error.
I am getting a linkage error
10 years, 5 months
Keycloak immediately undeployed
by Conrad Winchester
Hi all,
I have been using keycloak in development for a couple of weeks now and it has been running fine.
I now need to deploy it into a UAT environment, but after installing wildly and integrating keycloak I get an issue when starting up.
Basically everything starts fine, but auth-server is immediately underplayed
2014-06-23 19:49:36,038 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
2014-06-23 19:49:36,038 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
2014-06-23 19:49:36,038 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.1.0.Final "Kenny" started in 8047ms - Started 303 of 356 services (91 services are lazy, passive or on-demand)
2014-06-23 19:49:41,051 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017535: Unregistered web context: /auth
2014-06-23 19:49:41,104 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 21) JBAS011410: Stopping Persistence Unit (phase 2 of 2) Service 'auth-server.war#jpa-keycloak-identity-store'
2014-06-23 19:49:41,104 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 22) JBAS011410: Stopping Persistence Unit (phase 2 of 2) Service 'auth-server.war#jpa-keycloak-audit-store'
2014-06-23 19:49:41,106 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016009: Stopping weld service for deployment auth-server.war
2014-06-23 19:49:41,128 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 22) JBAS011410: Stopping Persistence Unit (phase 1 of 2) Service 'auth-server.war#jpa-keycloak-identity-store'
2014-06-23 19:49:41,129 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 21) JBAS011410: Stopping Persistence Unit (phase 1 of 2) Service 'auth-server.war#jpa-keycloak-audit-store'
2014-06-23 19:49:41,141 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment auth-server.war (runtime-name: auth-server.war) in 96ms
2014-06-23 19:49:41,175 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed "auth-server.war" (runtime-name: "auth-server.war")
2014-06-23 19:49:46,178 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found auth-server.war in deployment directory. To trigger deployment create a file called auth-server.war.dodeploy
The main difference between this and dev is that in UAT keycloak has to be behind an apache proxy
ProxyPass /auth/ http://localhost:8080/auth/
ProxyPassReverse /auth/ http://localhost:8080/auth/
Can anybody help? I am completely stumped - Is it something to do with apache already running on port 80?
Thanks
Conrad
10 years, 5 months
ldap setup
by Dean Peterson
Hello,
I am trying to get ldap to work and it seems the query in picketlink's
LDAPIdentityStore.java on line 186 uses id or uid to find the user in an
Active Directory. Our Active Directory stores the username as the property
sAMAccountName. I believe this prevents keycloak's new ldap integration
from working. Am I missing something?
10 years, 5 months
Add additional rights mapping step to request chain
by Boettcher, Jim
Hi,
We are using the keycloak-as7-adapter from beta2 and have configured the adapter to use bearer token.
We would like to add in some extra processing after the bearer token has been validated in order to map user rights for the user identified by the bearer token using some proprietary code. This is currently done with a custom LoginModule configured for the security-domain of the app.
Can you suggest how we might go about adding this extra rights mapping to the request chain after the keycloak adapter has validated the bearer token?
Thank you,
Jim
10 years, 5 months