[ECOMMERCE-494] [Magento] Throw the unauthorized error when run cart/checkout on real server Created: 24/Jan/22  Updated: 26/Aug/22

Status: Open
Project: E-commerce
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Thuy To Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File [Magento] Ecommerce-Endpoint.postman_collection.json     PNG File image-2022-01-24-12-01-38-646.png     PNG File image-2022-01-24-13-01-47-851.png    
Issue Links:
relation
is related to ECOMMERCE-482 Magento-Cannot use Checkout Endpoint ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: AuthorX Maintenance
Team: AuthorX

 Description   

Steps to reproduce

  1. Import [Magento] Ecommerce-Endpoint.postman_collection.json  to postman for testing. 
  2. Run requests in authenticate folder for cart and checkout
  3. Follow the document: https://devdocs.magento.com/redoc/2.2/#operation/quoteCartItemRepositoryV1SavePost  and  https://devdocs.magento.com/guides/v2.4/rest/tutorials/orders/order-add-items.html
  4. Get customer access token
  5. Put the access token into request  https://magento2demo.firebearstudio.com/rest/V1/carts/mine/items

.. Logs, screenshots, gifs...

Expected results

+ Can add an item to cart.

+ Run all requests in cart/checkout successfully.

Actual results

Workaround

Development notes

We are using free on Magento demo server:  https://magento2demo.firebearstudio.com. Maybe it's unstable and the limited permission.

https://magento.stackexchange.com/questions/244602/consumer-is-not-authorized-to-access-resources-magento-salessales

We can need a stable demo server and full of permission like Salesforce OnDemand or SAP. 

 


Generated at Mon Feb 12 01:44:38 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.