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

Add oauth2 Client Credentials Flow #457

Merged
merged 1 commit into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading