Skip to content

Commit

Permalink
unsuffix the username
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcorvidae committed Dec 12, 2024
1 parent dad4e08 commit 8ab7dfc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/terrain/clients/keycloak/admin.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(:require [cemerick.url :as curl]
[clj-http.client :as http]
[clojure.tools.logging :as log]
[clojure.string :as string]
[terrain.util.config :as config]))

(defn- keycloak-admin-url
Expand Down Expand Up @@ -64,5 +65,5 @@
([username]
(get-user-session-by-username username (:access_token (get-token))))
([username token]
(log/error "Getting user sessions for username " username)
(get-user-session (:id (get-user username token)) token)))
(log/error "Getting user sessions for username " (string/replace username #"@.*$" ""))
(get-user-session (:id (get-user (string/replace username #"@.*$" "") token)) token)))

0 comments on commit 8ab7dfc

Please sign in to comment.