Skip to content

Commit 2a8bbbc

Browse files
committed
wip
1 parent 7596f07 commit 2a8bbbc

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

lib/azure_blob/http.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ def put(content = "")
6161

6262
def post(content = "")
6363
sign_request("POST") if signer
64+
puts "--" * 100
65+
puts signer
66+
puts content
67+
puts "--" * 100
6468
@response = http.start do |http|
6569
http.post(uri, content, headers)
6670
end

lib/azure_blob/workload_identity.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ class WorkloadIdentity # Azure AD Workload Identity
55
IDENTITY_ENDPOINT = "https://login.microsoftonline.com/#{ENV['AZURE_TENANT_ID']}/oauth2/v2.0/token"
66
CLIENT_ID = ENV['AZURE_CLIENT_ID']
77
SCOPE = "https://storage.azure.com/.default"
8-
GRANT_TYPE = 'client_credentials'
9-
CLIENT_ASSERTION_TYPE = 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer'
8+
GRANT_TYPE = "client_credentials"
9+
CLIENT_ASSERTION_TYPE = "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
1010

11-
FEDERATED_TOKEN_FILE = ENV['AZURE_FEDERATED_TOKEN_FILE'].to_s
11+
FEDERATED_TOKEN_FILE = ENV["AZURE_FEDERATED_TOKEN_FILE"].to_s
1212

1313
def self.federated_token?
1414
!FEDERATED_TOKEN_FILE.empty?

0 commit comments

Comments
 (0)