-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
Invalid path used for auth-endpoint #990
Comments
Hi @agracia-foticos , thank you for reporting such issues, I will take a look today as we want to get pathing stable and robust in Could you please specify which version of |
"@sidebase/nuxt-auth": "0.10.1-alpha.1", |
Possibly same issue: #984 (comment) |
This looks very similar to the issues I encountered when testing |
same here. Using 0.10.1-alpha.1 and google 302 Invalid path used for auth-endpoint. Supply either one path parameter (e.g., thanks a lot! |
upd: Fixed in #992 After some investigation, I believe this is a bug of It's impossible to fix from our side, but it's possible to use their own workaround of not passing I am currently trying this, but that would mean #984 would need re-testing |
@agracia-foticos @brucetony @nam0107 @patriciorivera Please test the version from the fix PR if it solves the problem for you
I left the explanation in the PR body and for me this fix seems to work. We will release |
It works for me. Thank you very much @phoenix-ru for such a quick response to the situation. |
Works fine!!!! please release 0.10.1-alpha.2!!! Thanks @phoenix-ru !!! |
Also worked for me, tested with both base config and with a custom base URL and the endpoints resolved as expected, thanks for the quick patch! |
FYI: Recent changes actually uncovered a lot more issues with the pathing for |
You should be able to recheck the new PR version using the same command as above (or |
@phoenix-ru It works fine in my local without subpath, but when I deploy to my server, I used a subpath like /aax4 it seem has an issue about the url path when I go to https://rpperf-gui.dev-vie.int.compax.at/aax4 without loged in, it redirect me to https://rpperf-gui.dev-vie.int.compax.at/aax4/aax4/api/auth/signin?callbackUrl=/ |
I was able to reproduce the same problem. |
@UMA0626 but I don't use google as a provider, do you have any idea? |
@nam0107 I need way more information from you to reproduce it. Could you please fork this repo and use Note that you can always set |
@phoenix-ru you are correct, I'm using Nuxt baseURL, how can I fix that, should I remove that config? |
upd: Actually doing signin in production mode seems to reproduce, looking into it.
As said, if you could provide a quick reproduction using app: { baseURL: '/aax4', }, and providing
seems to work for me. It correctly redirects me to |
@phoenix-ru let me try it, if it not work I wil provide a quick reproduction using playground-authjs or maybe we can have a quick session, I will show you quickly. Can you ping me in email? |
@phoenix-ru |
@nam0107 Thank you for your report, I seem to have fixed it by resolving I am testing it further and will push my changes to the same PR later today, so you'd be able to test it. I am not sure though that it would resolve exactly your issue, so let's iterate |
@nam0107 The new version is out, I tested your usecase specifically and did quite some changes to npm i https://pkg.pr.new/@sidebase/nuxt-auth@fff679c |
@phoenix-ru I upgraded to this version https://pkg.pr.new/@sidebase/nuxt-auth@fff679c video: https://www.loom.com/share/c87328f584d84c1eb09d9cfb107df371?sid=895ac817-55dc-4d74-a7e0-ecc488ecc790 |
Environment
Nuxt project info: nuxi 9:54:13
👉 Report an issue: https://github.com/nuxt/nuxt/issues/new?template=bug-report.yml
👉 Suggest an improvement: https://github.com/nuxt/nuxt/discussions/new
👉 Read documentation: https://nuxt.com
Reproduction
Invalid path used for auth-endpoint. Supply either one path parameter (e.g.,
/api/auth/session) or two (e.g.,
/api/auth/signin/githubafter the base path (in previous examples base path was:
/api/auth/. Received
signin,signin,wso2``With type oauth
id: 'wso2', type: 'oauth',
Produces http://localhost:3000/api/auth/signin/signin/wso2
Describe the bug
Invalid path used for auth-endpoint. Supply either one path parameter (e.g.,
/api/auth/session) or two (e.g.,
/api/auth/signin/githubafter the base path (in previous examples base path was:
/api/auth/. Received
signin,signin,wso2``With type oauth
id: 'wso2', type: 'oauth',
Produces http://localhost:3000/api/auth/signin/signin/wso2
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: