How to set up Shopify CLI login in Google Cloud Shell IDE?

Hi! I trying setup development process in Google Cloud Shell Ide based on shopify-cli, but faced with the need shopify login, which is lead to user interface auth submitting, based on 127.0.0.1:3456 host. Auth link link looks like

https://accounts.shopify.com/oauth/authorize?client_id=…partners.app.cli.access&redirect_uri=http%3A%2F%2F127.0.0.1%3A3456&state=73e3d0a51cc65160d6a209502ab49d1122586dc9fa371042b15fd68899ba&response_type=code&code_challenge=gMYCb93iYeh07TGKhNtSX8hOaGsCKynhgFsiG5omRo8&code_challenge_method=S256
but cloud ide have host like https://3456-cs-7180444-default.cs-…-bhnf.cloudshell.dev/

I’m trying replace localhost with ide generated host, but have error

An error occured### invalid_request

The error was: “redirect_uri” mismatch

Show request details

Request ID: 18183b9a8d869b285f1a6b7fc6266c21

I have an idea to make as default a text browser in the linux terminal for this purpose but unsuccesfully.

Can anyone help with this task?

1 Like