muffin_man 2.4.11 → 2.4.12
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/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/muffin_man/application_management/v20231130.rb +7 -2
- data/lib/muffin_man/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dec8e35106feca73923e8526c0b4275f1af04218c5c1216046d6874890e7529
|
4
|
+
data.tar.gz: ff82271a7ceea873c6e4bc35db1352bef6ef853d88cb006040e9e5af284e1a91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ac49e7b36f757656a5c6e198a5fc9ed0f49b18a5d350b5fd8539b08dddfe84e1a888880e31758a068f220dcdc46d410d9fc274d5da0bf0f0815d6c219908e9d
|
7
|
+
data.tar.gz: '0956d5f62002e873b3ebb4eb6e0b3732c868e157e1ff3a05958c79bf513df4f7d8612b378521ca25ef4f0749017515f81244490ede7bf7bbaabf1080b56f4559'
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# 2.4.12
|
2
|
+
|
3
|
+
- [#95](https://github.com/patterninc/muffin_man/pull/95)
|
4
|
+
- [#94](https://github.com/patterninc/muffin_man/pull/94)
|
5
|
+
- [#93](https://github.com/patterninc/muffin_man/pull/93)
|
6
|
+
- [#92](https://github.com/patterninc/muffin_man/pull/92)
|
7
|
+
|
1
8
|
# 2.4.11
|
2
9
|
|
3
10
|
- Application Management API v2023-11-30 [#88](https://github.com/patterninc/muffin_man/pull/88)
|
data/README.md
CHANGED
@@ -136,7 +136,7 @@ access_token = MuffinMan::Lwa::AuthHelper.get_access_token(scope, client_id, cli
|
|
136
136
|
### Rotating application client secret
|
137
137
|
To rotate client secret for application
|
138
138
|
```ruby
|
139
|
-
MuffinMan::ApplicationManagement::V20231130.rotate_application_client_secret(
|
139
|
+
MuffinMan::ApplicationManagement::V20231130.rotate_application_client_secret(client_id,client_secret)
|
140
140
|
```
|
141
141
|
|
142
142
|
### Debugging
|
@@ -3,10 +3,15 @@
|
|
3
3
|
module MuffinMan
|
4
4
|
module ApplicationManagement
|
5
5
|
class V20231130
|
6
|
-
def self.rotate_application_client_secret(
|
6
|
+
def self.rotate_application_client_secret(client_id, client_secret)
|
7
|
+
access_token = MuffinMan::Lwa::AuthHelper.get_access_token("sellingpartnerapi::client_credential:rotation",
|
8
|
+
client_id, client_secret)
|
7
9
|
Typhoeus.post(
|
8
10
|
"https://sellingpartnerapi-na.amazon.com/applications/2023-11-30/clientSecret",
|
9
|
-
headers: {
|
11
|
+
headers: {
|
12
|
+
"x-amz-access-token" => access_token,
|
13
|
+
"Content-Type" => "application/json;charset=UTF-8"
|
14
|
+
}
|
10
15
|
)
|
11
16
|
end
|
12
17
|
end
|
data/lib/muffin_man/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muffin_man
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2025-
|
13
|
+
date: 2025-02-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|