Fabrizio Vanzani

ecommerce development, magento and tech tips

Use Access Token as Bearer token to access Magento Api

Starting from recent Magento (and Adobe Commerce) versions (ver. 2.4.4) Adobe introduced a new configuration in the Oauth section.

By default Magento no longer allows to access API using the sole integration Access Token.

In order to restore the old behaviour you have to set to yes the following setting:

Stores > Configuration > Services > OAuth > Consumer Settings > Allow OAuth Access Tokens to be used as standalone Bearer tokens

Alternatively by command line:

m2 config:set oauth/consumer/enable_integration_as_bearer 1

See Adobe Documentation: https://developer.adobe.com/commerce/webapi/get-started/authentication/gs-authentication-token/


Posted

in

,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *