Skip to content

Instantly share code, notes, and snippets.

@keidarcy
Last active May 26, 2020 09:06
Show Gist options
  • Save keidarcy/789bfd245ce965f1b9801a1ac65011df to your computer and use it in GitHub Desktop.
Save keidarcy/789bfd245ce965f1b9801a1ac65011df to your computer and use it in GitHub Desktop.
Update OAuth scopes for Shopify app
<?php
// reference:https://shopify.dev/tutorials/authenticate-with-oauth
// This will redirect to app update page
// This is laravel version
$shop = YOUR_SHOP_DOMAIN;
$scopes = config('shopify-app.api_scopes');
$api_key = config('shopify-app.api_key');
// 'https://homestead.test/authenticate'
$redirect = AUTHENTICATE_URL_IN_PARNTER_PAGE;
$url = 'https://'. $shop .'.myshopify.com/admin/oauth/authorize?client_id='.$api_key.'&scope='.$scopes.'&redirect_uri='.$redirect;
dd($url);
return redirect($url);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment