Fix: Remove port 8081 hardcoding in OIDC internal URLs
The auth.ts was hardcoding port 8081 for internal Keycloak communication but the Kubernetes Keycloak service uses port 8080, causing auth failures Changed: oidcInternal no longer replaces 8080 with 8081
This commit is contained in:
@@ -27,7 +27,7 @@ declare module "next-auth" {
|
||||
const issuerPublic = process.env.KEYCLOAK_ISSUER || 'http://localhost:30808/realms/workclub'
|
||||
const issuerInternal = process.env.KEYCLOAK_ISSUER_INTERNAL || issuerPublic
|
||||
const oidcPublic = `${issuerPublic}/protocol/openid-connect`
|
||||
const oidcInternal = `${issuerInternal.replace(':8080', ':8081')}/protocol/openid-connect`
|
||||
const oidcInternal = `${issuerInternal}/protocol/openid-connect`
|
||||
|
||||
export const { handlers, signIn, signOut, auth } = NextAuth({
|
||||
providers: [
|
||||
|
||||
Reference in New Issue
Block a user