microsoft / azurechat

🤖 💼 Azure Chat Solution Accelerator powered by Azure Open AI Service
MIT License
1.15k stars 958 forks source link

Error with Custom Domain #298

Closed Nihal-1512 closed 5 months ago

Nihal-1512 commented 5 months ago

Customer has implemented a custom domain for the application but there is an error when accessing the solution. After clicking Login they get an error, however if we then click “Sign in with Azure Active Directory” it works (it displays with the original hostname not the custom one). DNS records were created for the Custom Domain and this page Verified all the records and “Troubleshoot” says no action is needed. Not sure if it is anything to do with the app registration as that requires you to input a URL when implementing the solution. Any help would be much appreciated, this is an urgent request from the customer. Thanks

imartinez2 commented 5 months ago

Review in the variable NEXTAUTH_URL to has the value of your custom domain

Nihal-1512 commented 5 months ago

@imartinez2 Thank you so much! This fixed the problem