p2-inc / keycloak-orgs

Single realm, multi-tenancy for SaaS apps
Other
367 stars 65 forks source link

where to get the keycloak admin jar #101

Closed jaayb closed 1 year ago

jaayb commented 1 year ago

Relatively new to keycloak and I'm trying to implement your keycloak-orgs extension. I was able to follow the instructions to generate the jar. I'm trying to get the keycloak-admin-client jar but not sure how to go about that. Any advice? Not a Java developer. Tried creating a pom file and generating the jar that way with maven but when I add both of these to the provider directory and restart nothing is showing up in the master realm.

xgp commented 1 year ago

Building this yourself can be challenging if you are not familiar with Java and Maven. I would recommend using the Docker images to get started https://quay.io/repository/phasetwo/phasetwo-keycloak?tab=tags

jaayb commented 1 year ago

I tried spinning up the docker containers but couldn't browse to the admin interface. Already have keycloak up and running so I was trying to go that route.

xgp commented 1 year ago

You need to select the ‘phasetwo.v2’ admin theme in Realm Settings->Themes and then log out/in to get the custom theme.

SNJnet commented 1 year ago

i have all jar's in the provider folder but the phasetwo theme isnt showing in the admin console. Do i need to put it elsewhere?

xgp commented 1 year ago

Can you please show me the layout of your providers/ folder? The phasetwo-admin-ui-21.1.1.0.jar must be there. If you have further problems, I suggest using the contents of the docker image as a guide.

SNJnet commented 1 year ago

Unbenannt The Keycloak is run without docker so that is not an option.

xgp commented 1 year ago

You need the phasetwo-admin-ui-21.1.1.0.jar

I'm not suggesting you need to use docker. I'm suggesting you look at our docker image to understand which jars need to be in the providers dir.

jaayb commented 1 year ago

You need the phasetwo-admin-ui-21.1.1.0.jar

I'm not suggesting you need to use docker. I'm suggesting you look at our docker image to understand which jars need to be in the providers dir.

Thanks for the Idea. I copied all the jars from the docker container's providers folder and deployed in my installation.