We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: Oauth error invalid_scope: The access scope is missing

Solved

Oauth error invalid_scope: The access scope is missing

Alocard
Shopify Partner
29 4 6

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=dd4f41f6d7a7da61b563119...

I get the following error:

Alocard_0-1648643968929.png

 

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

Accepted Solution (1)

Alocard
Shopify Partner
29 4 6

This is an accepted solution.

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

View solution in original post

Replies 14 (14)

Alocard
Shopify Partner
29 4 6

This is an accepted solution.

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

ESTYatScF
Visitor
2 0 1

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

spearamerica
Visitor
2 0 2

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

anamsss
Visitor
1 0 0

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. 

roysha
Visitor
2 0 1

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

thank you

ShopAtTropical
Visitor
1 0 0

I have the same problem

roysha
Visitor
2 0 1

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

levashti1
Visitor
1 0 1

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

Saurluminate
Tourist
3 0 1

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

Saurluminate
Tourist
3 0 1

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

Saurluminate
Tourist
3 0 1

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

ESTYatScF
Visitor
2 0 1

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

Vapexperts
Visitor
1 0 0

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.

iyanna
Tourist
3 0 1

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.