diff --git a/pages/api/auth/[...nextauth].ts b/pages/api/auth/[...nextauth].ts index 1bf718c3f69a9c29e76ba3ec5669a755eba1a645..c12d6d51fe991741adbe0ef2059a6270931d9c79 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 {