Corporate Proxy GitHub Provider #6647
Replies: 2 comments 4 replies
-
We don't use the I don't believe you would need the patch in this case. 🤔 Cannot really check your deployed page, it crashes with 500 on https://www.cockroachlabs.com/demos/demo-cloud-api/api/auth/session, but it's also weird that it returns HTML, and not JSON like https://next-auth-example.vercel.app/api/auth/session would. |
Beta Was this translation helpful? Give feedback.
-
Hey @balazsorban44 . I can confirm the advanced initialization config + I've been talking with @ThangHuuVu on Twitter and... what a nice chap! He's been supurb in helping me work through this. ❤️ Thank you so much for all your efforts!! I'll check with Thang and see if there's a logical way to document all the steps we took in case others run into the same problem. |
Beta Was this translation helpful? Give feedback.
-
Question 💬
Hi, i have a next.js app deployed on Vercel and am using the NextAuth GitHub Provider for Sign-in.
My app is behind a corporate proxy and i have applied the patch as suggested here. I'm not sure i fully understand all the ways to configure this to work and am not sure if i'm missing something so here's my current config. Perhaps you can help me work out which bits i need, and which bits i don't.
basePath
on the session provider is:basePath={isProd ? '/demos/demo-cloud-api/api/auth' : undefined}
NEXTAUTH_URL
in my env variable seeting is https://demo-cloud-api.vercel.app/assetPrefix
defined innext.config.js
as/demos/demo-cloud-api
.rediect
incallbacks
like this:9. And this is what happens after NextAuth tries to Sign in.
There's so much going on here and i've tried so many things i've kinda lost track of what combination of changes i need to keep. Could you outline what i need to set for all 7 steps and i'll try and work through this methodically.
Thanks in advance.
How to reproduce ☕️
Visit https://www.cockroachlabs.com/demos/demo-cloud-api/ and click Sign in in the top right hand corner.
The repo for the project is here: https://github.com/cockroachdb/demo-cloud-api
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
Beta Was this translation helpful? Give feedback.
All reactions