Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.57 KB

shopify-sso.md

File metadata and controls

51 lines (35 loc) · 1.57 KB

Shopify SSO

1 operation(s). Part of the API index.

Call these as client.<service>.<method>(...). <service> is the client field for this group — the README lists the field name for every service. These pages group operations the way the OpenAPI specification tags them, which is not always one field per page.


getShopifyLoginUrl

GET /sso/shopify/api/token

Generate Shopify Multipass Login URL

Generates a Shopify Multipass login URL using the provided LoginRadius access token. Uses Shopify's Multipass feature to create a single sign-on URL that authenticates the user into the Shopify store.

Example

public static void callGetShopifyLoginUrl(LoginRadiusClient client) {
  String accessToken = "<accessToken>"; //Required
  String store = "<store>"; //Required
  String returnUrl = "<returnUrl>"; //Optional

  try {
    var response = client.shopifySso.getShopifyLoginUrl(accessToken, store, returnUrl);
    System.out.println(response);
  } catch (ApiException e) {
    LoginRadiusException lr = LoginRadiusClient.toLoginRadiusException(e);
    System.err.println(lr.description());
  }
}

Parameters

Name In Type Required Description
access_token query string yes Access Token of the User
store query string yes Shopify store domain (e.g., mystore.myshopify.com)
return_url query string no URL to redirect the user to after login

Returns

ShopifyLoginUrlResponse