From 0109a8b892d772f26f311b7dafe43180e9bc3d90 Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Thu, 12 Dec 2024 13:01:22 -0700 Subject: [PATCH] whatever, time for printlining --- src/terrain/clients/keycloak/admin.clj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/terrain/clients/keycloak/admin.clj b/src/terrain/clients/keycloak/admin.clj index 08c0a17d..6bdcf41a 100644 --- a/src/terrain/clients/keycloak/admin.clj +++ b/src/terrain/clients/keycloak/admin.clj @@ -1,6 +1,7 @@ (ns terrain.clients.keycloak.admin (:require [cemerick.url :as curl] [clj-http.client :as http] + [clojure.tools.logging :as log] [terrain.util.config :as config])) (defn- keycloak-admin-url @@ -16,6 +17,8 @@ (defn get-token "Obtains authorization token data for the admin service account. You'll probably want the access_token field in the return value." [] + (log/error "getting token from " (keycloak-admin-token-url "protocol" "openid-connect" "token")) + (log/error "id/secret " (config/keycloak-admin-client-id) " " (config/keycloak-admin-client-secret)) (:body (http/post (keycloak-admin-token-url "protocol" "openid-connect" "token") {:form-params {:grant_type "client_credentials" :client_id (config/keycloak-admin-client-id)