OAuth install bounces me toward path '/admin/auth/undefined'

Shopify Partner
3 0 0

I'm writing a Shopify OAuth app using Spring Boot and Spring Security OAuth.  I was able to figure out how to authorize the installation of my app, but something weird is happening.

When the user is sent to the `/admin/oauth/authorize` path, and then they login, they get redirected to the /admin/auth/undefined path. If the user tries to go to my app's home page a second time, the redirection works and the prompt to install appears as expected.

So first, the user goes to:
https://myapp.whatever.com/

Then the app redirects them to:
https://{shop}.myshopify.com/admin/oauth/authorize?shop={shop}&client_id={api_key}&scope=read_custom...

Shopify prompts for a login.  Once the user logs in, they end up at:
https://{shop}.myshopify.com/admin/auth/undefined
 

What can I do to fix this?

0 Likes
Shopify Staff
Shopify Staff
277 1 52

Hey Brad,

Could you provide me with the install link, so I can test this myself? I'm wondering if this only takes place when the user isn't logged in to the admin because of the online access mode.

 

- Jordan

0 Likes
Shopify Partner
3 0 2

Did you ever figure this out? I've just started seeing this too.

1 Like
Highlighted
Tourist
5 0 3

Hi all, I am experiencing this as well after deploy my app on Heroku

0 Likes