laravel-shopify
laravel-shopify copied to clipboard
Non-Embedded App Support
Thanks for this.
Things I see that I will attempt to work on...
- AuthorizeShop... is removed in v17, we can somehow massage this into whats existing on v17
- Removal of CookieHelper... dont think its needed anymore
- Removal of ShopSession... v17 uses ShopContext injected into the model, somehow massage this in
@xplodedthemes Is there anything else missing, just curious on a couple things as its been a while since I touched non-embedded.
- Is there a setting to toggle embedded and non-embedded? Or are you simply swapping the middleware
- More with point 1... is there Blade layout modifications to not load appbridge?
- Whats the current flow, are you still pointing to /authenticate
@osiset
That's it, I think.
- It is all based on the appbridge_enabled option.
- Nothing has changed in the views. There was already a condition whether to load app bridge or not within the layout based on the appbridge_enabled option
- Yes, I brought back to the authenticate.oauth route from v16.
In v16, there was a login page view that I am currently still using. We can actually use this view for both Embedded and Non-Embedded apps, and it would work fine. The only thing is that, with the non-embed, it will always re-direct to the login page since the session is not saved. It becomes more of an app install page instead of a login page.
I think app_bridge_enabled option is currently removed in master? I'd have to check, if not, then that makes sense and the combined work can begin.
@osiset No, the option is still there in master: appbridge_enabled. Note that it's appbridge without underscore.
https://github.com/osiset/laravel-shopify/blob/master/src/resources/config/shopify-app.php
Any updates here? Would love for this to be merged.
@valdisd Not at this time, still trying to get time to work on this.
I tested this and when installing this goes into /shopify/authenticate/oauth redirect loop.
Works if the installation is done with app bridge enabled and disabled afterwards. Will try to locate the problem.
@valdisd I believe the code provided by OP works or partially works, I just need it reworked into the existing code to not have duplication. I outlined some points previously, but feel free to poke around :)
Any update on this?
@osiset Hi any update on this! I really need this feature
😏
@osiset First of all, thank you for the good library you have created Secondly, please check this new feature soon so that we can continue to use your library in the project
@xplodedthemes
I applied your commits manually in the project, but I still have the following error, you can help me ?
hi @xplodedthemes composer installed your fork. it's currently stuck in a redirect loop. The url in question is authenticate/oauth
. I updated appbridge_enabled
to false and also disabled the embedded app option in app setup. Any idea what the issue could be?
@Aryanhasanzadeh were you able to make any progress?