getty_connect_authentication 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3399b5809d6053c1a4724921690498b30e70600
4
- data.tar.gz: a3a0e582230a2f9e1bde90e78c041e7d2b4dbc0c
3
+ metadata.gz: 0bc93bfc20c9b9348727b2ad713f6d987ffe31ae
4
+ data.tar.gz: 102f9dc9ebc56cd65108af9f42b06ea71aed9624
5
5
  SHA512:
6
- metadata.gz: e48f7c7d37efe503f486bb603053d83b182dc2a4094874fe191a0c8c21dc70e4d6e396d664fdd3abe2e009fc9700cd4ba805bcd114cc3336a31948aba2101036
7
- data.tar.gz: 89c9f1a6886d0374150f44cedb198addd035786844bf0dc958d94664ccdefb21848c34406263268b1558df69968e9823fa5fe62a15cb2337251096587eba7770
6
+ metadata.gz: 00f1634ef0511185f327087e971f220e703eb88cbeda178300693fa5c14587417f6e470106945e9286d81edced3c45450060c905a1c7bee0f6efcb4ad4e1bbed
7
+ data.tar.gz: 35904502b510bd2b4c1ed6e90eb8ab09bb5005347b00bb88aaf807d44bd367431553baedd0107818e848e001f43589db0aa77e3732d0999e999dc64b39800241
@@ -16,7 +16,9 @@ module GettyConnectAuthentication
16
16
  body = {
17
17
  client_id: Configuration.id,
18
18
  client_secret: Configuration.secret,
19
- grant_type: 'client_credentials'
19
+ grant_type: 'client_credentials',
20
+ username: Configuration.username,
21
+ password: Configuration.password
20
22
  }
21
23
 
22
24
  request = Net::HTTP::Post.new(uri.request_uri)
@@ -1,3 +1,3 @@
1
1
  module GettyConnectAuthentication
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -25,7 +25,8 @@ describe GettyConnectAuthentication do
25
25
  GettyConnectAuthentication.token
26
26
 
27
27
  a_request(:post, url).
28
- with(body: "client_id=my_id&client_secret=my_secret&grant_type=client_credentials").should have_been_made.once
28
+ with(body: "client_id=my_id&client_secret=my_secret&grant_type=client_credentials&username=my_username&password=my_password").
29
+ should have_been_made.once
29
30
  end
30
31
 
31
32
  it 'sets expires to current timestamp plus response expires_in value' do
@@ -1,2 +1,4 @@
1
1
  id: my_id
2
2
  secret: my_secret
3
+ username: my_username
4
+ password: my_password
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: getty_connect_authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cymen Vig