Skip to content

Commit

Permalink
Merge pull request #63 from consiglionazionaledellericerche/58-la-red…
Browse files Browse the repository at this point in the history
…irect-dopo-il-logout-non-funziona

58 la redirect dopo il logout non funziona
  • Loading branch information
criluc authored Nov 19, 2024
2 parents 872c379 + b726efe commit d5dcef6
Show file tree
Hide file tree
Showing 7 changed files with 780 additions and 307 deletions.
11 changes: 3 additions & 8 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
#stringa randomizzata per dare un secret a nextauth
NEXT_PUBLIC_NEXTAUTH_SECRET=
#endpoint del backend, /:path* deve rimanere, cambiare solo http://localhost:8080
NEXT_PUBLIC_EPAS_SERVICE=http://localhost:8080/:path*
#endpoint del backend
NEXT_PUBLIC_EPAS_SERVICE=https://epas-service.devel.iit.cnr.it

#URL Well-know con la configurazione dell'IDP OAuth
NEXT_PUBLIC_OAUTH_CONFIG_URL=https://auth.iit.cnr.it/auth/realms/testing/.well-known/uma2-configuration
#URL dell'Issuer del Toaken OAuth
NEXT_PUBLIC_OAUTH_ISSUER_URL=https://auth.iit.cnr.it/auth/realms/testing

#uri per il redirect dopo autenticazione NextAuth
NEXTAUTH_URL=http://localhost:3000/
NEXTAUTH_URL=http://localhost:3000

#clientid oauth keycloak
NEXT_PUBLIC_CLIENTID=epas-ui

#client secret oauth keykloack
NEXT_PUBLIC_CLIENT_SECRET=

#endpoint del backend per l'invio di segnalazioni all'helpdesk
NEXT_PUBLIC_EPAS_HELPDESK_SERVICE=https://epas-helpdesk-service.devel.iit.cnr.it/rest/v1/reportcenter
2 changes: 1 addition & 1 deletion components/competences/competencesView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const CompetencesView: React.FC<CompetencesViewProps> = ({
if (!data.personMonthCompetenceRecap || Object.keys(data.personMonthCompetenceRecap).length === 0) {
content = <>
<div className="alert alert-danger">
<p>Risultano non correttamente inizializzati i dati sulle competenze effettuate nell'anno selezionato.</p>
<p>Risultano non correttamente inizializzati i dati sulle competenze effettuate nell&apos;anno selezionato.</p>
<p>Impossibile costruire la situazione richiesta.</p>
</div>
</>
Expand Down
6 changes: 4 additions & 2 deletions components/layout/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ import PersonalDataMenu from './menu/personalDataMenu';
import PersonalWorkflowsMenu from './menu/personalWorkflowsMenu';
import CalendarsMenu from './menu/calendarsMenu';
import SelectPeriod from './menu/selectPeriod'
import dotenv from 'dotenv/config';
import dotenv from 'dotenv';
dotenv.config();

const NEXTAUTH_URL = process.env.NEXTAUTH_URL;

const NEXTAUTH_URL = process.env.NEXT_PUBLIC_NEXTAUTH_URL;
interface HeaderProps {
title?: string
}
Expand Down
5 changes: 1 addition & 4 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/** @type {import('next').NextConfig} */

const defaultEpasService = 'https://epas-service.devel.iit.cnr.it/:path*';

const nextConfig = {
env: {
CLIENTID: process.env.NEXT_PUBLIC_CLIENTID,
CLIENTSECRET: process.env.NEXT_PUBLIC_CLIENT_SECRET,
NEXTAUTH_URL: process.env.NEXT_PUBLIC_NEXTAUTH_URL,
NEXTAUTH_URL: process.env.NEXTAUTH_URL,
NETXTAUTH_SECRET: process.env.NEXT_PUBLIC_NEXTAUTH_SECRET,
OAUTH_LOGIN: process.env.NEXT_PUBLIC_OAUTH_LOGIN || "true",
LDAP_LOGIN: process.env.NEXT_PUBLIC_LDAP_LOGIN || "false",
Expand All @@ -15,7 +13,6 @@ const nextConfig = {
},

reactStrictMode: true,
swcMinify: true,
async rewrites() {
return [
{
Expand Down
Loading

0 comments on commit d5dcef6

Please sign in to comment.