AlikElzin-kilaka
AlikElzin-kilaka

Reputation: 36021

How to deploy a keycloak's SPI project using the Keycloak Deployer (/deploy)?

In Keycloak's documentation, it's stated that in order to deploy the provider, I can

copy your provider jar to the Keycloak deploy/ directory, your provider will automatically be deployed.

I'm indeed searching for a simple copy-paste way to deploy a provider without CLI nor through maven.

The problem is that I can't find any /deploy folder in keycloak's server :(

Below is the result for searching files/folders with the word deploy.

Any idea how to simply deploy the an SPI project into Keycloak? Thanks.

enter image description here

Upvotes: 4

Views: 7737

Answers (2)

Soner
Soner

Reputation: 243

In the newer version of keycloak you have to put your custom SPI into the /deployments folder. This is how I did in Keycloak 4.6.0.Final

Upvotes: 3

Slim BH
Slim BH

Reputation: 101

Create a subdirectory "providers" in keycloak home directory, then copy your JAR files to this subdirectory, then restart the keycloak server.

Upvotes: 6

Related Questions