Skip to content

Commit

Permalink
Merge pull request #457 from medizininformatik-initiative/224-add-ope…
Browse files Browse the repository at this point in the history
…nid-connect-client-credentials-flow

Add oauth2 Client Credentials Flow
  • Loading branch information
knoppiks authored Jan 29, 2025
2 parents 7fd18b1 + 87073ec commit 659e812
Show file tree
Hide file tree
Showing 45 changed files with 1,263 additions and 66 deletions.
8 changes: 8 additions & 0 deletions .github/test/oauth2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM registry.access.redhat.com/ubi9 AS ubi-micro-build
RUN mkdir -p /mnt/rootfs
RUN dnf install --installroot /mnt/rootfs curl jq --releasever 9 --setopt install_weak_deps=false --nodocs -y && \
dnf --installroot /mnt/rootfs clean all && \
rpm --root /mnt/rootfs -e --nodeps setup

FROM quay.io/keycloak/keycloak:26.0.7
COPY --from=ubi-micro-build /mnt/rootfs /
20 changes: 20 additions & 0 deletions .github/test/oauth2/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: keycloak

services:
keycloak:
build:
dockerfile: Dockerfile
command:
- start-dev
- --import-realm
ports: [ "8080:8080" ]
volumes:
- ./import:/opt/keycloak/data/import
environment:
KC_HEALTH_ENABLED: true
healthcheck:
test: [ "CMD-SHELL", "curl -v -sf http://localhost:9000/health > /tmp/health.json && cat /tmp/health.json | tr -d '%' | jq -e '.status == \"UP\"' || exit 1" ]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
Loading

0 comments on commit 659e812

Please sign in to comment.