Skip to content

Commit 14ddc9b

Browse files
authored
Merge branch 'main' into CEXT-3900
2 parents da9ffed + 70fd4c4 commit 14ddc9b

File tree

9 files changed

+98
-18
lines changed

9 files changed

+98
-18
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"url": "https://github.com/AdobeDocs/commerce-extensibility"
77
},
88
"dependencies": {
9-
"@adobe/gatsby-theme-aio": "4.14.16",
9+
"@adobe/gatsby-theme-aio": "4.14.17",
1010
"gatsby": "4.22.0",
1111
"react": "^17.0.2",
1212
"react-dom": "^17.0.2"

src/pages/admin-ui-sdk/publish.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ During the testing phase, an administrator of your enterprise organization perfo
2626

2727
## Update an already published application
2828

29-
To update an already published application, you must revoke it and go through the approval process again.
29+
To deploy code changes to an already published application, you can perform a force deploy:
30+
31+
```bash
32+
aio app deploy --force-deploy
33+
```
34+
35+
To update the credentials or services used by an already published application, you must revoke it and go through the approval process again.
3036

3137
1. Ask an enterprise organization administrator to revoke your published application in the [Adobe Exchange Manage panel](https://exchange.adobe.com/manage). Note that once revoked, your application will no longer be public.
3238

src/pages/events/api.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,35 @@ curl -i -X PUT \
140140
}' \
141141
'<ADOBE_COMMERCE_URL>/rest/all/V1/eventing/updateConfiguration'
142142
```
143+
144+
## Get configured event provider information
145+
146+
The `GET /rest/<store_view_code>/V1/eventing/getEventProviders` endpoint returns information about the event provider configured for the Commerce instance.
147+
148+
**Headers:**
149+
150+
`Authorization: Bearer <administrator token>`
151+
152+
The administrator must be granted access to the `Magento_AdobeIoEventsClient::event_provider_list` resource.
153+
154+
**Example usage:**
155+
156+
The following cURL command retrieves information about the configured event provider:
157+
158+
```bash
159+
curl -H "Authorization:Bearer <AUTH_TOKEN>" \
160+
'<ADOBE_COMMERCE_URL>/rest/all/V1/eventing/getEventProviders' \
161+
```
162+
163+
**Example response:**
164+
165+
```json
166+
[
167+
{
168+
"provider_id": "ad667bc6-1678-49ff-99fc-215d71ebf82f",
169+
"instance_id": "my_instance",
170+
"label": "my_provider",
171+
"description": "Provides out-of-process extensibility for Adobe Commerce"
172+
}
173+
]
174+
```

src/pages/events/convert-field-values.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ In the following example, the `TestConverterVisibility` converter class updates
4242
```php
4343
<?php
4444
/**
45-
* Copyright &copy; Magento, Inc. All rights reserved.
46-
* See COPYING.txt for license details.
45+
* Copyright [first year code created] Adobe
46+
* All rights reserved.
4747
*/
4848
declare(strict_types=1);
4949

src/pages/events/custom-event-fields.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ In the following example, the `TestProcessorOrderStatus` class adds the `order_s
7474
```php
7575
<?php
7676
/**
77-
* Copyright &copy; Magento, Inc. All rights reserved.
78-
* See COPYING.txt for license details.
77+
* Copyright [first year code created] Adobe
78+
* All rights reserved.
7979
*/
8080
declare(strict_types=1);
8181

src/pages/events/release-notes.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ These release notes describe the latest version of Adobe I/O Events for Adobe Co
1212

1313
See [Update Adobe I/O Events for Adobe Commerce](installation.md#update-adobe-io-events-for-adobe-commerce) for upgrade instructions.
1414

15+
## Version 1.10.0
16+
17+
### Release date
18+
19+
December 10, 2024
20+
21+
### Enhancements
22+
23+
* Added the `GET /rest/<store_view_code>/V1/eventing/getEventProviders` REST endpoint for retrieving information about the configured event provider. <!---CEXT-3913 -->
24+
1525
## Version 1.9.0
1626

1727
### Release date

src/pages/webhooks/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The resolution of a remote call also determines whether you should implement a w
2727

2828
Use these guidelines to develop your own webhooks:
2929

30-
1. Identify the Adobe Commerce event that triggers a webhook. Adobe Commerce merchants can browse the available events from the Admin by selecting **System** > Events > **Events** to display the Events list page.
30+
1. Identify the Adobe Commerce event that triggers a webhook. Adobe Commerce merchants can browse the available events from the Admin by selecting **System** > Events > **Events List** to display the Events list page.
3131

3232
1. Understand the default payload of the corresponding webhook by running the [`bin/magento webhooks:info` command](commands.md#display-the-payload-of-a-webhook).
3333

src/pages/webhooks/signature-verification.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,27 @@ To verify the signature in the App Builder action, set the `raw-http` annotation
8888
raw-http: true
8989
```
9090
91+
Store the public key in the `PUBLIC_KEY` parameter in the `.env` file using the same format as provided in the Adobe Commerce Admin:
92+
93+
```env
94+
# Other secrets and configuration
95+
# ...............................
96+
97+
PUBLIC_KEY="-----BEGIN PUBLIC KEY-----
98+
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtglXYVz5pVn3HDluGG5T
99+
t9coO5NKSWjx3xCDMHVa3CEqVM76PKg8UJH9fQOA57xoNv7Llc916pF0UswtudQh
100+
Fyg+WQCFFadqGZOyL2nUKI9xWBiUi4dN8+9yMd3TE1fszVUBnk/XdLKNDQn4O6ic
101+
doQZi5arrjNjInkimtcT2jPXs34p9G9P5CvCubPUmbGsWDgwo5an9LEX/nJfnCdZ
102+
R10XPkRWzEM7o1OGzf7CYo06Xl+msGVM02Er265PsMAWB11cWwKmyg6dLPa8q+Qh
103+
KNXZiEMvdVusV8aA6EkCZYFdWSBXv+jltn6NnY5qvYcuQ3SujQ9xKEANjeMWcW90
104+
PwIDAQAB
105+
-----END PUBLIC KEY-----"
106+
```
107+
108+
**Note:** Do not commit the `.env` file to version control.
109+
110+
[App Builder Configuration Files](https://developer.adobe.com/app-builder/docs/guides/configuration/#env) describes `.env` file usage in detail.
111+
91112
The following code example below shows how the signature can be verified in the App Builder action:
92113

93114
```javascript
@@ -109,9 +130,20 @@ async function main (params) {
109130
if (isSignatureValid) {
110131
logger.info('The signature is valid.');
111132
// Here will be performed real action logic
112-
operations.push({
113-
op: 'success'
114-
});
133+
// payload is base64 encoded, so we need to decode it before using
134+
const payload = JSON.parse(atob(params.__ow_body))
135+
136+
// a simple validation if the provided postcode from Commerce webhook is less than 50000
137+
if (payload.address.postcode > 50000) {
138+
operations.push({
139+
op: 'exception',
140+
message: 'The postcode is not allowed. Provided postcode: ' + payload.address.postcode
141+
});
142+
} else {
143+
operations.push({
144+
op: 'success'
145+
});
146+
}
115147
} else {
116148
logger.info('The signature is invalid.');
117149
operations.push({

yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ __metadata:
3333
languageName: node
3434
linkType: hard
3535

36-
"@adobe/gatsby-theme-aio@npm:4.14.16":
37-
version: 4.14.16
38-
resolution: "@adobe/gatsby-theme-aio@npm:4.14.16"
36+
"@adobe/gatsby-theme-aio@npm:4.14.17":
37+
version: 4.14.17
38+
resolution: "@adobe/gatsby-theme-aio@npm:4.14.17"
3939
dependencies:
4040
"@adobe/focus-ring-polyfill": ^0.1.5
4141
"@adobe/gatsby-source-github-file-contributors": ^0.3.1
@@ -131,7 +131,7 @@ __metadata:
131131
gatsby: ^4.22.0
132132
react: ^17.0.2
133133
react-dom: ^17.0.2
134-
checksum: 23efce4352fb14582a06f845362ec7cf242e66db49014d2dc6e39c70efdcc2f40265b0c9f17cc55cb96a6cde828f3456b9d9edea5f80fa9ca56f5d8260d0d2e6
134+
checksum: 929ed9cc32b048ec243dbcd75be3ee822294946e336600bf57b67490632fcd0a0e375e4683a2980eb756b80ee023d5e9605dd91a6a6ebc910d6dac08530aee13
135135
languageName: node
136136
linkType: hard
137137

@@ -7337,7 +7337,7 @@ __metadata:
73377337
version: 0.0.0-use.local
73387338
resolution: "commerce-extensibility@workspace:."
73397339
dependencies:
7340-
"@adobe/gatsby-theme-aio": 4.14.16
7340+
"@adobe/gatsby-theme-aio": 4.14.17
73417341
gatsby: 4.22.0
73427342
react: ^17.0.2
73437343
react-dom: ^17.0.2
@@ -7695,15 +7695,15 @@ __metadata:
76957695
linkType: hard
76967696

76977697
"cross-spawn@npm:^6.0.0, cross-spawn@npm:^6.0.5":
7698-
version: 6.0.5
7699-
resolution: "cross-spawn@npm:6.0.5"
7698+
version: 6.0.6
7699+
resolution: "cross-spawn@npm:6.0.6"
77007700
dependencies:
77017701
nice-try: ^1.0.4
77027702
path-key: ^2.0.1
77037703
semver: ^5.5.0
77047704
shebang-command: ^1.2.0
77057705
which: ^1.2.9
7706-
checksum: f893bb0d96cd3d5751d04e67145bdddf25f99449531a72e82dcbbd42796bbc8268c1076c6b3ea51d4d455839902804b94bc45dfb37ecbb32ea8e54a6741c3ab9
7706+
checksum: a6e2e5b04a0e0f806c1df45f92cd079b65f95fbe5a7650ee1ab60318c33a6c156a8a2f8b6898f57764f7363ec599a0625e9855dfa78d52d2d73dbd32eb11c25e
77077707
languageName: node
77087708
linkType: hard
77097709

0 commit comments

Comments
 (0)