Retrieve OAuth tokens

Applies to : All Shopify SSO Plans

Feature Description

With this feature, you can securely retrieve OAuth tokens, including the Access Token and ID Token, directly from your configured OAuth identity provider. These tokens enable authenticated sessions and allow you to fetch user-specific data after successful Single Sign-On (SSO) login.

Setup Instructions
  • Navigate to Apps >> miniOrange Single Sign On – SSO application.

    navigate-to-Shopify-SSO-application

  • Navigate to More Action >> Edit option against the OAuth IDP you have configured.

    Additional Setting >> Edit Configuration

  • Scroll down and enable the Retrieve OAuth tokens option. Choose whether you want the Access Token or ID Token.

    Retrieve OAuth tokens

  • Click on Next.

  • Click on the Test Connection button.

    Shopify SSO test Connection

  • On entering valid IDP credentials you will see a pop-up window having the token attribute which is shown in the below screen. Copy this value.

    Enter valid IDP Credentials

  • Click on the Fetch Attributes button to fetch IDP attribute.

    Featch Attributes From IDP

  • Navigate to Metafield Based Mapping section and click on the + Attribute Mapping button to map metafield attributes between Shopify and your IDP.

    Map Metafield Attribute in Shopify

  • Provide the Metafield Namespace, Metafield Key, and Metafield Type that you have configured in Shopify Metafield.

    Add Metafield Attribute in Shopify Admin

  • Select the Attribute Type as IDP Attribute and fill the Attribute Value field with the attribute value you obtained from your IDP (access_token in this case).

    Save Metafield Attributes Configurations

  • Click on Save.