Skip to content

Commit

Permalink
[#53368] fixed client credentials strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
Kharonus committed Mar 8, 2024
1 parent b7b5f48 commit d268b53
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,16 @@ def self.strategy
Strategy.new(:oauth_client_credentials)
end

def call(storage:, http_options: {})
def call(storage:, http_options: {}, &)
config = storage.oauth_configuration.to_httpx_oauth_config

if config.complete?
create_http_and_yield(issuer: config.issuer,
client_id: config.client_id,
client_secret: config.client_secret,
scope: config.scope,
http_options:)
http_options:,
&)
else
log_message = 'Cannot authenticate storage with client credential oauth flow. Storage not configured.'
data = ::Storages::StorageErrorData.new(source: self, payload: storage)
Expand Down

0 comments on commit d268b53

Please sign in to comment.