Oauth error invalid_scope: The access scope is missing

Hello,

I am new to app development and would like to setup an Oauth. My Oauth looks like this:

https://og-app-development-2-0.myshopify.com/admin/oauth/authorize?client_id=dd4f41f6d7a7da61b563119878ad3309&scopes=read_products,write_products&redirect_uri=https%3A%2F%2F3e83-92-201-28-0.ngrok.io%2Felena%2Ftoken.php&state=a1cecb2e73c51a2bd3d7af01&grant_options[]=per-user

I get the following error:

This is the code I use to create the Oauth:

$_API_KEY = "dd4f41f6d7a7da61b563119878ad3309";
$_NGROK_URL = "https://3e83-92-201-28-0.ngrok.io";
$shop = $_GET["shop"];
$scopes = "read_products,write_products";
$redirect_uri = $_NGROK_URL . "/elena/token.php";
$nonce = bin2hex( random_bytes(12) );
$access_mode = "per-user";

$oauth_url = "https://" . $shop . "/admin/oauth/authorize?client_id=" . $_API_KEY . "&scopes=" . $scopes . "&redirect_uri=" . urlencode($redirect_uri) .  "&state=" . $nonce ."&grant_options[]=" . $access_mode;

Thanks for your help in advance.

Best Regards

Alocard

Well, I just removed a “s” from “&scopes” and it worked.

hello where did I insert this code ? I have the same issue.

thank you

I have the same problem

Hey did you figure it out because im having the same problem

1 Like

its seems that we all having the same issue.. maybe this time the issue came from shopify

1 Like

Same thing happening to me right now, and a lot of other people at this moment it must just be a shopify issue.

Same thing happening to me right now, and a lot of other people at this moment it must just be a shopify issue..

Same thing happening to me right now, and a lot of other people at this moment it must just be a shopify issue…

1 Like

Same issue here. Never happened before and not sure how to resolve it. Is Shopify having an issue right now?

Same issue here. Never happened before and not sure how to resolve it. Is Shopify having an issue right now?

1 Like

Same issue. I do not know html so I have no clue what to do

Yeah it he same for me the issues are consistent and i believe it is the issues for shopify side. we just gotta wait and see.

Hi guys,
I was facing the same issue. I tried writing shopify in the html tab and clicked an old order page link that popped up. clicking that let me into the preface straight to the order page and navigating from there is working. So instead of logging into main page try logging into an old order page.

This is happening to us this morning too. We thought it was an us issue but based on the other replies it seems to be a more wide spread Shopify issue today.

We have got around it by removing "2Cread_metaobjects%2Cwrite_metaobjects%2Cread_metaobject_definitions%2Cwrite_metaobject_definition" from the url.