Configure various authentication methods for your self-hosted Langtrace setup using NextAuth.js.
NEXTAUTH_SECRET
: A secure random string used by NextAuth.js to encrypt tokens and sign/encrypt cookies.NEXTAUTH_URL
: The public URL of your application, used by NextAuth.js for callback URLs and links.NEXT_PUBLIC_ENABLE_ADMIN_LOGIN
to true
to enable this method.
ADMIN_EMAIL
and ADMIN_PASSWORD
).http://localhost:3000/api/auth/callback/google
For production, use your actual domain:
https://your-app-domain.com/api/auth/callback/google
http://localhost:3000
to the list of “Authorized JavaScript origins” in your
Google Cloud Console project settings.your-app-url/api/auth/callback/azure-ad
Note the client ID, client secret, and tenant ID
For more information, refer to the official Microsoft documentation.NEXTAUTH_SECRET
and NEXTAUTH_URL
are properly configured.ADMIN_EMAIL
and ADMIN_PASSWORD
.