Hi Nicolas,
I'm afraid Keycloak won't let you override/extend base theme the way you do it now
(themes/base/...)
I'd recommend that you use Theme Resources [1], it seems to be exactly your use case.
However, it's a fairly recent feature [2]. If you're on KC 3.x, you'll rather
need to create a custom theme based on the stock one. See Keycloak examples [3] and
BeerCloak [4] for that.
[1]
https://www.keycloak.org/docs/latest/server_development/index.html#_theme...
[2]
https://issues.jboss.org/browse/KEYCLOAK-6519
[3]
https://github.com/keycloak/keycloak/tree/master/examples/themes
[4]
https://github.com/dteleguin/beercloak
Good luck,
Dmitry Telegin
CTO, Acutus s.r.o.
Keycloak Consulting and Training
Pod lipami street 339/52, 130 00 Prague 3, Czech Republic
+42 (022) 888-30-71
E-mail: info(a)acutus.pro
On Thu, 2018-10-11 at 14:41 +0200, Nicolas Delsaux wrote:
Hi all,
I'm writing a custom identity provider for Keycloa that I want to deploy
using the [deployer][1] method (since I want to deploy it in [Docker
containers][2]). Following an [example][3] I found on the web, I've
created a maven project where, using the maven-assembly-plugin, I build
a jar with dependencies (but I've filtered out the various services
implementations my dependencies provide me to just keep the identity
provider service).
Things seems to work partly correctly :
* Keycloak log indicates my id provider is loading/loaded :
`keycloak_1 | 09:23:20,056 INFO [org.jboss.as.server]
(ServerService Thread Pool -- 29) WFLYSRV0010: Deployed
"mycompnay-oidc-id-provider-0.0.1-SNAPSHOT-jar-with-dependencies.jar"
(runtime-name
:"mycompany-oidc-id-provider-0.0.1-SNAPSHOT-jar-with-dependencies.jar")`
* When I go in the *Identity Providers* panel, the new provider is
visible in the "Add provider ..."
But when I try to configure it, Keycloak redirects me to the resource
not found error page
The problem is that Keycloak outputs strictly no logs (even when I
configure log level to the max).
In my project, I have he following code organization (which gets
replicated in jar-with-dependencies)
+---src
+---build
| \---assembly
+---main
| +---java
| | \---com
| | \---mycompany
| | \---mygroup
| | \---security
| | \---oidc
| \---resources
| +---META-INF
| | \---services
| \---themes
| \---base
| \---admin
| \---resources
| \---partials
\---test
+---java
\---resources
What am I missing ?
I've already asked this question on StackOverflow (there
https://stackoverflow.com/q/52757115/15619) - and that's why the
formatting is quite poor, but Sebastien Blanc redirected me here (thanks
a lot Sebastien !)
Thanks a lot !
[1]:
https://www.keycloak.org/docs/4.5/server_development/index.html#using-the...
[2]:
https://hub.docker.com/r/jboss/keycloak/
[3]:
https://github.com/Reventl0v/KeycloakCAS
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user