Allow integration tokens as bearer tokens
Magento 2.4.4 and later disable standalone bearer use of integration tokens by default. Enable it once for your store. Skip this on 2.4.3 and earlier.
Change the OAuth consumer setting
Sign in to the Magento Admin.
- Go to Stores > Configuration > Services > OAuth.
- Expand Consumer Settings.
- Set Allow OAuth Access Tokens to be used as standalone Bearer tokens to Yes.
- Click Save Config.
- If you manage configuration from the command line, run
bin/magento config:set oauth/consumer/enable_integration_as_bearer 1and flush the cache instead.
Create and activate an integration
An integration grants API access to the resources you select and generates the Access Token you enter below.
Add the integration
On the Admin sidebar, go to System > Extensions > Integrations and click Add New Integration.
- Name:
StackOne - Callback URL and Identity link URL: leave empty
- Your Password: your Admin password, under Current User Identity Verification
Grant API resources
In the left panel, click API.
- Set Resource Access to All to allow every action in this connector.
- Or choose Custom and select only the resources you need, such as Catalog, Carts, Customers, Sales, Marketing, Content, Stores and Inventory. Actions that use a resource you did not select return 401 Unauthorized.
- Click Save.
Activate and copy the Access Token
On the Integrations grid, find the new integration (status Inactive) and click Activate.
- In the upper-right corner, click Allow. The Integration Tokens for Extensions are displayed.
- Copy the Access Token value. The Consumer Key, Consumer Secret and Access Token Secret are not needed.
- Click Done.
- Clicking Reauthorize later generates a new Access Token and invalidates the old one, so update the connection if you do.
Find your Store URL
The Store URL is your store’s base address. Remove /admin or /index.php, but keep the installation folder if Magento is installed in one, such as /store.
- Format:
https://{your-store-domain}orhttps://{your-store-domain}/{installation-folder} - Example: if your Admin is at
https://mystore.com/admin, your Store URL ishttps://mystore.com - Example: if your Admin is at
https://mystore.com/store/admin, your Store URL ishttps://mystore.com/store
Link the Account
Connect
- Click Connect.
- If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
- Once authorization is successful, you will see a confirmation popup.
Use Actions