Skip to content

vshn/keycloak-theme-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VSHN Keycloak Theme and Auth Provider

VSHN Keycloak IDP Theme

Local Development

Run docker compose up to start a local Keycloak with the VSHN theme.

The VSHN theme is not automatically selected for the account application. This can be changed in the Admin Console by clicking on Realm Settings and then Theme.

Deploy to Your Instance

  1. Merge your Pull Request to master branch
  2. Tag it with
    git tag -am v1.x.y v1.x.y
    git push --tags
  3. This will trigger the GitHub Action and pushes the image to https://quay.io/repository/vshn/keycloak-theme?tab=tags
  4. Add the tag of the version to your extraInitContainers (see codecentric helm chart documentation)
    extraInitContainers: |
      - name: theme-provider
        image: ghcr.io/vshn/keyloak-theme-provider:v1.x.x
  5. If you plan to use a redirect for the welcome page, then ensure you set REDIRECT_URL as environment variable

Use as InitContainer:

spec:
  containers:
    initContainers:
      theme:
        image: ghcr.io/vshn/keycloak-theme-provider:latest
        imagePullPolicy: IfNotPresent
        command:
          - sh
        args:
          - -c
          - |
            echo "Copying theme..."
            cp -R /themes/* /themes/
        volumeMounts:
        - mountPath: /themes
          name: themes
  volumes:
    - emptyDir: {}
      name: themes

Keycloak Auth Provider

Use as InitContainer:

spec:
  containers:
    initContainers:
      auth-provider:
        image: ghcr.io/vshn/keycloak-theme-provider:latest
        imagePullPolicy: IfNotPresent
        command:
          - sh
        args:
          - -c
          - |
            echo "Copying auth-providers..."
            cp -R /providers/* /providers/
        volumeMounts:
        - mountPath: /providers
          name: providers
  volumes:
    - emptyDir: {}
      name: providers