Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin seems incompatible with latests versions of Keycloak and GoCD #26

Open
foretspaisibles opened this issue Aug 15, 2024 · 1 comment

Comments

@foretspaisibles
Copy link

I was trying to follow the instructions to configure Keycloak authentication for GoCD. There was a few difficulties since the terminology evolved in Keycloak since the plugin has been written.

Furthermore I found some of the following problems when trying to use the plugin:

  • The plugin assumes authentication URLs start with /auth but instead it should get the URL from http://localhost:8080/realms/${realm}/.well-known/openid-configuration

  • The plugin requires some scopes that do not exist (groups) in Keycloak 25.0.1, this can be fixed by creating the client scope but would need to be added to the documentation.

Here is the docker compose file I used to conduct my experiment:

docker/compose/gocd.yml 
services:
 keycloak:
  restart: unless-stopped
  image: quay.io/keycloak/keycloak:25.0.1
  ports:
   - "127.0.0.1:8080:8080"
  environment:
   KEYCLOAK_ADMIN: 'admin'
   KEYCLOAK_ADMIN_PASSWORD: 'admin'
   KC_METRICS_ENABLED: 'true'
   KC_HEALTH_ENABLED: 'true'
   ROOT_LOGLEVEL: INFO
  command: start-dev

 gocdserver:
  image: gocd/gocd-server:v24.3.0
  ports:
   - "127.0.0.1:8153:8153"
   - "127.0.0.1:8154:8154"
  environment:
    GOCD_PLUGIN_INSTALL_keycloak-oauth-authorization-plugin: https://github.com/klinux/gocd-keycloak-oauth-authorization-plugin/releases/download/v2.0.0-21-exp/keycloak-oauth-authorization-plugin-2.0.0-21.jar
@foretspaisibles
Copy link
Author

The /auth issue seems to be solved by #5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant