Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

58 la redirect dopo il logout non funziona #63

Merged
merged 4 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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