From 51097b22584ef087dea52c5c1059ad388d813bf9 Mon Sep 17 00:00:00 2001 From: Masaki Yatsu Date: Fri, 15 Aug 2025 15:22:09 +0900 Subject: [PATCH] refactor(keycloak): creating k8s client --- keycloak/justfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/keycloak/justfile b/keycloak/justfile index a55c4d3..71ded8b 100644 --- a/keycloak/justfile +++ b/keycloak/justfile @@ -101,9 +101,13 @@ create-realm create-client-for-k8s='true': export KEYCLOAK_ADMIN_PASSWORD=$(just admin-password) dotenvx run -f ../.env.local -- tsx ./scripts/create-realm.ts if [ "{{ create-client-for-k8s }}" = "true" ]; then - just create-client ${KEYCLOAK_REALM} ${K8S_OIDC_CLIENT_ID} "http://localhost:8000" + just create-k8s-client fi +# Create Keycloak client for Kubernetes OIDC authentication +create-k8s-client: + @just create-client ${KEYCLOAK_REALM} ${K8S_OIDC_CLIENT_ID} "http://localhost:8000,http://localhost:18000" + # Delete Keycloak realm delete-realm realm: #!/bin/bash