Skip to content

Commit

Permalink
feat(keycloak): work with passed in token
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Oct 4, 2023
1 parent e98a05b commit 05feb38
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/keycloak/rest_api.cr
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ class Keycloak::RestAPI < PlaceOS::Driver
search : String? = nil,
email : String? = nil,
enabled_users_only : Bool = true,
all_pages : Bool = false
all_pages : Bool = false,
auth_token : String? = nil
)
user_token = "Bearer #{get_token}"
user_token = "Bearer #{auth_token.presence || get_token}"

params = URI::Params.build do |form|
form.add "search", search.to_s if search.presence
Expand Down

0 comments on commit 05feb38

Please sign in to comment.