Skip to content

Commit

Permalink
Fixing auth
Browse files Browse the repository at this point in the history
  • Loading branch information
gridanjbf committed Apr 22, 2024
1 parent a663232 commit a3d09e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion lib/sharepoint/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ def xrequest_digest(site_path = nil)
url = remove_double_slashes("#{computed_api_url(site_path)}/contextinfo")
easy.http_request(url, :post, { body: '' })
easy.perform
puts easy.response_body
JSON.parse(easy.response_body)['d']['GetContextWebInformation']['FormDigestValue']
end

Expand Down
3 changes: 1 addition & 2 deletions lib/sharepoint/client/token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ def expired?
(fetched_at + expires_in) < Time.now.utc.to_i
end

def
def(_request_new_token)
def request_new_token
auth_request = {
client_id: config.client_id,
client_secret: config.client_secret,
Expand Down

0 comments on commit a3d09e0

Please sign in to comment.