aptible-auth 1.2.6 → 1.2.7
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 +4 -4
- data/lib/aptible/auth/token.rb +1 -1
- data/lib/aptible/auth/version.rb +1 -1
- metadata +3 -4
- data/lib/oauth2/response_parser.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff939c12eccbed8e6f8408f1608fa8b07e036b7fd837cf230ac8da01db236bac
|
4
|
+
data.tar.gz: c323895a11c8b0713b2f295c0178536e43f2bd8c01b823b4f44f4f29217c73d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a4e952f3b63e0692210ec0a8c58517ec5878618fe6f4c3f47c7ae4b94f2c31a6344e67fe88447a2bd59cbdf25f5550f8dc6f6511405af21aa2e022d579ddf98
|
7
|
+
data.tar.gz: ee7c792b19ae8c8acafb20710c5b404b729a7a8e202cf50632a1d7a2e096245208dbca586f8bb84050dbdb73397aae75c665dc1f0d791bc12704222b96831750
|
data/lib/aptible/auth/token.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'oauth2'
|
2
|
-
require 'oauth2/response_parser'
|
3
2
|
require 'oauth2/strategy/token_exchange'
|
4
3
|
|
5
4
|
module Aptible
|
@@ -78,6 +77,7 @@ module Aptible
|
|
78
77
|
options = {
|
79
78
|
site: root_url,
|
80
79
|
token_url: '/tokens',
|
80
|
+
auth_scheme: :request_body,
|
81
81
|
connection_opts: {
|
82
82
|
headers: {
|
83
83
|
'User-Agent' => Aptible::Resource.configuration.user_agent
|
data/lib/aptible/auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aptible-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Macreery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aptible-resource
|
@@ -199,7 +199,6 @@ files:
|
|
199
199
|
- lib/aptible/auth/user.rb
|
200
200
|
- lib/aptible/auth/version.rb
|
201
201
|
- lib/aptible/auth/whitelist_membership.rb
|
202
|
-
- lib/oauth2/response_parser.rb
|
203
202
|
- lib/oauth2/strategy/token_exchange.rb
|
204
203
|
- spec/aptible/auth/agent_spec.rb
|
205
204
|
- spec/aptible/auth/organization_spec.rb
|
@@ -229,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
228
|
- !ruby/object:Gem::Version
|
230
229
|
version: '0'
|
231
230
|
requirements: []
|
232
|
-
rubygems_version: 3.
|
231
|
+
rubygems_version: 3.4.10
|
233
232
|
signing_key:
|
234
233
|
specification_version: 4
|
235
234
|
summary: Ruby client for auth.aptible.com
|
@@ -1,5 +0,0 @@
|
|
1
|
-
# rubocop:disable all
|
2
|
-
# NOTE: This code has been in oauth2 master since 2018 but is awaiting a 2.0 release of oauth2
|
3
|
-
OAuth2::Response.register_parser(:json, ['application/json', 'text/javascript', 'application/hal+json', 'application/vnd.collection+json', 'application/vnd.api+json']) do |body|
|
4
|
-
MultiJson.load(body) rescue body # rubocop:disable RescueModifier
|
5
|
-
end
|