Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Not redirect to home route after authenticated the app #943

Closed
sandyrewa opened this issue Aug 14, 2021 · 6 comments
Closed

Not redirect to home route after authenticated the app #943

sandyrewa opened this issue Aug 14, 2021 · 6 comments

Comments

@sandyrewa
Copy link

Expected Behavior

After successful authenticated app should redirect to home route
https://shopname.com/admin/apps/8e70e1ac2ef9c145dab4f001b504baee/appname/?shop=shopname.com&target=%2F%3Fhost%3Dc2YtZGVtby1vbmUubXlzaG9waWZ5LmNvbS9hZG1pbg

Current Behavior

After successful authenticated app redirect to this URL
https://shopname.com/admin/apps/8e70e1ac2ef9c145dab4f001b504baee/appname/authenticate/token?shop=shopname.com&target=%2F%3Fhost%3Dc2YtZGVtby1vbmUubXlzaG9waWZ5LmNvbS9hZG1pbg

But it should redirect to the URL
https://shopname.com/admin/apps/8e70e1ac2ef9c145dab4f001b504baee/appname/?shop=shopname.com&target=%2F%3Fhost%3Dc2YtZGVtby1vbmUubXlzaG9waWZ5LmNvbS9hZG1pbg

I'm using old version of API v16.0 into the another app and its working properly and redirected to the home route

Context

  • Package Version: v17.1
  • Laravel Version: v8.54
  • PHP Version: v8.0
@ghost
Copy link

ghost commented Aug 15, 2021

you are redirected to authenticate/token to get an access token.

v17 will not work without this.

@sandyrewa
Copy link
Author

@enmaboya Ok, but not redirect to the home screen, I mean the welcome page is not visible after redirect on this page. how can I redirect to the home page route?

@Kyon147
Copy link
Collaborator

Kyon147 commented Nov 3, 2021

Hi @sandyrewa

You have set up your web.php correctly? Can you provide more detail into the issue you are facing.

@sandyrewa
Copy link
Author

Hi @Kyon147
Thanks for your reply, I have set up routes on web.php properly, and now it's working on the server but not working on localhost, getting the infinite redirect on localhost which related to #962

@Kyon147
Copy link
Collaborator

Kyon147 commented Mar 22, 2022

Hi @sandyrewa

As @enmaboya mentioned, v17 uses JWT tokens and that authenticate/token route is what grabs the token. It needs to happen on every page change to make sure we have a valid token.

Do you still have the issue? I.e you can't ever get to the home screen of the app just a blank page etc?

@Kyon147
Copy link
Collaborator

Kyon147 commented Sep 11, 2022

Closing stale issue, reopen if problem persists.

@Kyon147 Kyon147 closed this as completed Sep 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants