wadahiro / keycloak-discord

Keycloak Identity Provider extension for Discord
121 stars 64 forks source link

Install do nothing #10

Closed kywan closed 3 years ago

kywan commented 3 years ago

I may be stupid but i try to install the extension but when i reaload my keycloak i cant find the discord option in Identity Providers... what i am doing wrong ? :/ did i miss something ?

havenotfear commented 3 years ago

You might need to restart keycloak for it to deploy the .ear

kywan commented 3 years ago

You might need to restart keycloak for it to deploy the .ear

yes i restart the docker of course, but still not Discord in my providers

havenotfear commented 3 years ago

I haven't tried this on docker but i have with the codecentric helm chart

First i created a config map from the file kubectl create configmap config --from-file keycloak-discord-ear-0.3.1.ear Then used these options to mount the volume

extraVolumeMounts: |
  - name: "config"
    mountPath: "/opt/jboss/keycloak/standalone/deployments/keycloak-discord-ear-0.3.1.ear"
    subPath: "keycloak-discord-ear-0.3.1.ear"
extraVolumes: |
  - name: "config"
    configMap:
      name: "config"

For docker i would assume you would want to mount the ear and that option would look like -v ./keycloak-discord-ear-0.3.1.ear:/opt/jboss/keycloak/standalone/deployments/keycloak-discord-ear-0.3.1.ear

edit:

you should see something like Starting deployment of "keycloak-discord-ear-0.3.1.ear" (runtime-name: "keycloak-discord-ear-0.3.1.ear") in the startup logs.

kywan commented 3 years ago

ok we find solution !

1st like say @havenotfear the folder for deployment is in /opt/jboss/keycloak/standalone/deployments/. And we have to chmod 775 the .ear to be sure jboss user can read it :)