-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix callback URL used with wordpress as headless CMS #342
Conversation
jeroneemou
commented
Aug 23, 2017
- whenever site_url != home_url
- resolves Usage with headless Wordpress #341
…te_url != home_url
Thanks for the PR. Out of interest what is the output of your home_url vs site_url ? |
we actually had a similar issue a while ago, we did moved from site_url to home_url here is some context #110 |
@cocojoe In short, if wordpress is not used to render content, auth won't work. Because callback @glena |
@jeroneemou So I think to move forward here, this would need to be wrapped up as an optional feature flag that can be managed in the dashboard. Your PR may work for your use case. However, usage in the wild is unpredictable, hence wrapping it up as opt-in behaviour. Thx |
@cocojoe But yeah, like you said, wrapping it would be nice - also maybe include some event so it can be easily overwritten by another plugin for some other edge cases 👍 Cheers |
Interestingly there is PR #339 that suggests using
Hence I feel wrapper is the safest option to avoid potential legacy issues. |
#339 is irrelevant as it deals with login URL not callback URL on ad |
Heyo @cocojoe, what will be next? Are you working on something or should I dive into this - to have it short I would just focus on callback issue for OAuth with code payload and do this with some wrapper and option enable/disable in plugin itself |
Hi @jeroneemou please feel free to dive in with what you mention. One thing ti possibly bear in mind here, there is a bigger PR dropping in soon. Now that I have read this, there is one area that maybe possibly be in conflict for you, although only in an SSO enable scenario. https://github.com/auth0/wp-auth0/pull/350/files#diff-d375f757ba3b9628375037db61d19ae4 |
Hi @cocojoe, I'm sorry to ask so straight forward, but I will have not time for it currently. Do you think you could escalate this internally (Auth0) and get someone on board? I find this as crucial bug. |
@jeroneemou - Again, apologies for the delay. We were caught up in updating to Lock 11 (high priority fix/improvement) and other issues were on pause. So, in short, good catch here, you're right on with that change. I'm going to review the codebase now to figure out if this needs to be corrected anywhere else and we'll get this in the soonest release we can. |
Closing as superseded in #360 |