Skip to content

Commit

Permalink
whatever, time for printlining
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcorvidae committed Dec 12, 2024
1 parent 06547d4 commit 0109a8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/terrain/clients/keycloak/admin.clj
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 0109a8b

Please sign in to comment.