Open gnemanja opened 7 months ago
I see. I'm trying to figure out how reproduce this problem. This is really tailored on you environment.
The best thing in this kind of scenarios is to split the problems in small steps.
Is it working with preview
mode in your local machine?
On my local machine, I am having http:localhost Google auth allows http for localhost, but only https for domains.
@gioboa thank You for the qwik ( ;) ) response!
On my local machine, I am having http:localhost Google auth allows http for localhost, but only https for domains.
@gioboa thank You for the qwik ( ;) ) response!
ok, we need the https. Can you try to deploy it on a cloud vendor (Vercel, Netlify, Cloudflare, etc. etc. ) ?
Go to my website currently live: amfibija.rs/en login page: https://amfibija.rs/en/auth
Try logging with google
I had this error
As sorry. Deployed is the solution with adding -- redirectProxyUrl: 'https://amfibija.rs/api/auth' (in plugin@auth.ts)
This is an error I got logged on server when you tried logging in:
I removed redirectProxy and deployed again. Check again and you will get something like this:
Thank You a lot for trying to help! I am truly desperate with this one :D
same Error 400: redirect_uri_mismatch
error here.
Also, error details:
details: redirect_uri=http://amfibija.rs/api/auth/callback/google
Let's chat on Discord about this problem. It's something wrong in the configuration.
https://discord.com/channels/842438759945601056/1200458096322035873
This the link to the issue I made. Best to chat inside so that someone else can see it one day if we solve it
@gioboa please reopen the issue. Bun adapter doesn't support setting ORIGIN
@gnemanja so I think the issue here is support ORIGIN env variable like the node one. Can you change the title pls?
Which component is affected?
Qwik City (routing)
Describe the bug
I have NGINX setup as reverse proxy for my qwik city Bun server.
When trying to login with Google, i get this error: Error 400: redirect_uri_mismatch.
Error description shows me that callback uri contains http instead of https.
I tried adding all the different headers through NGINX, didn't help.
Tried adding headers through env file. Didn't help.
Tried adding redirectProxyUrl in plugin@auth.ts, but then I get an error: InvalidCheck: State cookie was missing
One guy on discord seemed to solve this issue by using getOrigin function in his entry.express.ts But I am using Bun, not express.
Looking at source code for Node middleware, I tried changing Buns middleware on lines containing: new URL(request.url) to have https. Didn't help.
Thank You in advance!
Reproduction
impossible to reproduce (bun, nginx)
Steps to reproduce
No response
System Info
Additional Information
No response