@ -221,7 +221,7 @@ CIDAAS_REDIRECT_URI=http://localhost:3000/api/auth/callback # Dev
# CIDAAS_REDIRECT_URI=https://my.experimenta.science/api/auth/callback # Production
# Session Encryption Secret (generate with: openssl rand -hex 32)
NUXT_SESSION_SECRET =your-64-character-hex-secret-here
NUXT_SESSION_PASSWORD =your-64-character-hex-secret-here
```
**Erstelle `.env.example` ** (für Git - ohne echte Secrets):
@ -237,7 +237,7 @@ CIDAAS_TOKEN_URL=https://experimenta.cidaas.de/token-srv/token
CIDAAS_USERINFO_URL=https://experimenta.cidaas.de/users-srv/userinfo
CIDAAS_JWKS_URL=https://experimenta.cidaas.de/.well-known/jwks.json
CIDAAS_REDIRECT_URI=http://localhost:3000/api/auth/callback
NUXT_SESSION_SECRET =generate-with-openssl-rand-hex-32
NUXT_SESSION_PASSWORD =generate-with-openssl-rand-hex-32
```
**Session Secret generieren:**
@ -276,10 +276,10 @@ export default defineNuxtConfig({
},
// Session configuration
// Note: nuxt-auth-utils automatically reads NUXT_SESSION_PASSWORD from process.env
session: {
maxAge: 60 * 60 * 24 * 30, // 30 days in seconds
name: 'experimenta-session',
password: process.env.NUXT_SESSION_SECRET,
},
// Public keys (auch Client-seitig verfügbar)
@ -2295,7 +2295,7 @@ CIDAAS_JWKS_URL=https://experimenta.cidaas.de/.well-known/jwks.json
CIDAAS_REDIRECT_URI=https://my.experimenta.science/api/auth/callback
# Generate new secret for production!
NUXT_SESSION_SECRET =< 64-char-hex-secret >
NUXT_SESSION_PASSWORD =< 64-char-hex-secret >
NODE_ENV=production
```
@ -2316,7 +2316,7 @@ services:
environment:
- CIDAAS_CLIENT_ID=/run/secrets/cidaas_client_id
- CIDAAS_CLIENT_SECRET=/run/secrets/cidaas_client_secret
- NUXT_SESSION_SECRET =/run/secrets/session_secret
- NUXT_SESSION_PASSWORD =/run/secrets/session_secret
secrets:
cidaas_client_id: