Skip to content
  • There are no suggestions because the search field is empty.

How to Regenerate a Magento 2 Token

This article helps Webgility application users regenerate a Magento 2 access token to maintain a secure and functional integration between Magento 2 and Webgility apps. Since access tokens have a limited lifespan, users may need to refresh them to ensure continued access to resources and proper use of the OAuth workflow. The article outlines steps to enable OAuth authentication, configure resource access, reauthorize integrations, and update the regenerated access token in either Webgility Online or Webgility Desktop, depending on the platform in use.

Overview:

You may need to regenerate your Magento 2 token to refresh your integration or properly utilize the OAuth workflow. These tokens serve as "keys" to access resources, with access tokens typically having a shorter lifespan than refresh tokens.

Steps to Regenerate Access Tokens:

  1. Enable OAuth Authentication:
    • In Magento 2, ensure OAuth-based authentication is enabled.

    • Navigate to Stores > Configurations > Services > Consumer Settings and enable OAuth.

       

  2. Navigate to Integrations:
    • From the left-hand panel, go to System > Integrations.

       

  3. Configure Resource Access:
    • On the Integrations page, verify selected resources.

    • Under Basic Settings, go to Resource Access and select Custom.

    • Enable resources for Sales, Catalogs, Customers, and Stores.

    • Click Save to apply changes.

       

  4. Reauthorize and Get New Access Token:
    • Return to the Integrations page.

    • Click on Reauthorize and copy the newly generated access token.

       

  5. Update Access Token in Webgility Desktop/Webgility Online as required: