layar baru antrean klinik dan masuk
This commit is contained in:
@@ -37,6 +37,11 @@ export default defineEventHandler(async (event) => {
|
||||
|
||||
// Build Keycloak authorization URL
|
||||
const redirectUri = `${config.public.authUrl}/api/auth/keycloak-callback`
|
||||
|
||||
// Debug: Log the redirect URI being used
|
||||
console.log('🔧 AUTH_ORIGIN from config:', config.public.authUrl)
|
||||
console.log('🔗 Redirect URI being sent to Keycloak:', redirectUri)
|
||||
|
||||
const authUrl = new URL(`${config.keycloakIssuer}/protocol/openid-connect/auth`)
|
||||
|
||||
authUrl.searchParams.set('client_id', config.keycloakClientId)
|
||||
|
||||
Reference in New Issue
Block a user