Skip to content

Custom callback URL #8512

@dcods22

Description

@dcods22

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsk how to do something or how something works

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions