From 4db563d807fb64c229bbc3903f34d0cccc91eb14 Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Thu, 14 Mar 2024 12:23:05 +0100
Subject: [PATCH] WIP: deployable

---
 pages/api/auth/[...nextauth].ts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pages/api/auth/[...nextauth].ts b/pages/api/auth/[...nextauth].ts
index 1bf718c..c12d6d5 100644
--- a/pages/api/auth/[...nextauth].ts
+++ b/pages/api/auth/[...nextauth].ts
@@ -15,13 +15,13 @@ export const authOptions = {
   providers: [
     // !!! Should be stored in .env file.
     KeycloakProvider({
-      //clientId: 'fdo-manager-webui',
+      // clientId: 'fdo-manager-webui',
       clientId: 'gwdg-fdoman-test',
-      //clientSecret: 'ay7l6jhECSohAZsEp6HYOaoXdARMQCei',
-      clientSecret: process.env.KEY_CLOAK_CLIENT_SECRET,
+      // clientSecret: 'ay7l6jhECSohAZsEp6HYOaoXdARMQCei',
+      clientSecret: process.env.KEY_CLOAK_CLIENT_SECRET || '',
       // issuer: 'http://localhost:8000/auth/realms/fdo-manager',
       issuer: 'https://keycloak.sso.gwdg.de/auth/realms/academiccloud',
-      //authorization: { params: { scope: 'openid profile email' } },
+      // authorization: { params: { scope: 'openid profile email' } },
       profile (profile) {
         console.log('### profile', profile, '### ### ###')
         return {
-- 
GitLab