Replies: 3 comments
-
Also I am running into an issue where the cookies are not on the fastly domain and since NextAuth relies on these cookies to check the sessions, it does not have access on both applications. I want to be able to put any domain on top of my application and not have to worry about what behind the scenes is running |
Beta Was this translation helpful? Give feedback.
-
I'm running into a similar issue trying to use AuthJS on a Nuxt project hosted on Firebase. The |
Beta Was this translation helpful? Give feedback.
-
I confirm. nextauth is useless if we cannot customize callback url. |
Beta Was this translation helpful? Give feedback.
-
Question 💬
I am trying to configure our applications auth which uses okta. My auth works fine locally because it is on the localhost domain, but when deploying our application we deploy to kubernetes then add fastly CDN on top of our kubernetes application so we can have a single domain map to this NextJS application and others in the future. When we try to login from the fastly domain, NextAuth sets the callback URL to the domain of the Kubernetes application not the fastly CDN and it also sends the kubernetes domain as the redirect_uri in the authorize call to OKTA. I want to be able to set the domain of all of the NextAuth calls to be my fastly domain. I have the fastly domain as the value of
NEXTAUTH_URL
so I figured this would override the domain for these various calls but it does not. I found this issue which says you want to control it? But why? This does not allow you to appy any sort of DNS changes on top of your server this way.How can I accomplish this with the current configurations of NextAuth?
How to reproduce ☕️
Not easily reproducable
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions