Implement authentication phase with Cidaas OAuth2 integration

- Add authentication middleware to protect routes
- Create API endpoints for login, logout, registration, and user info
- Develop UI components for login and registration forms
- Integrate VeeValidate for form validation
- Update environment configuration for Cidaas settings
- Add i18n support for English and German languages
- Enhance Tailwind CSS for improved styling of auth components
- Document authentication flow and testing procedures
This commit is contained in:
Bastian Masanek
2025-10-31 11:44:48 +01:00
parent 749d5401c6
commit f8572c3386
57 changed files with 3357 additions and 132 deletions

View File

@@ -32,26 +32,26 @@ REDIS_PASSWORD=
# For production: Set REDIS_PASSWORD
# ==============================================
# SESSION ENCRYPTION
# SESSION ENCRYPTION (nuxt-auth-utils)
# ==============================================
# Generate with: openssl rand -base64 32
NUXT_SESSION_PASSWORD=change-me-to-a-random-32-character-string-minimum
# Generate with: openssl rand -hex 32
NUXT_SESSION_SECRET=generate-with-openssl-rand-hex-32
# ==============================================
# CIDAAS (OAuth2/OIDC Authentication)
# ==============================================
# Get these from Cidaas Admin Panel
CIDAAS_BASE_URL=https://experimenta.cidaas.de
CIDAAS_CLIENT_ID=your-client-id
CIDAAS_CLIENT_SECRET=your-client-secret
CIDAAS_BASE_URL=https://experimenta-staging.cidaas.de
CIDAAS_CLIENT_ID=...
CIDAAS_CLIENT_SECRET=...
CIDAAS_REDIRECT_URI=http://localhost:3000/api/auth/callback
# Computed URLs (no need to change):
# CIDAAS_AUTHORIZE_URL=${CIDAAS_BASE_URL}/authz-srv/authz
# CIDAAS_TOKEN_URL=${CIDAAS_BASE_URL}/token-srv/token
# CIDAAS_USERINFO_URL=${CIDAAS_BASE_URL}/users-srv/userinfo
# CIDAAS_JWKS_URL=${CIDAAS_BASE_URL}/.well-known/jwks.json
# CIDAAS_ISSUER=${CIDAAS_BASE_URL}
CIDAAS_AUTHORIZE_URL=${CIDAAS_BASE_URL}/authz-srv/authz
CIDAAS_TOKEN_URL=${CIDAAS_BASE_URL}/token-srv/token
CIDAAS_USERINFO_URL=${CIDAAS_BASE_URL}/users-srv/userinfo
CIDAAS_JWKS_URL=${CIDAAS_BASE_URL}/.well-known/jwks.json
CIDAAS_ISSUER=${CIDAAS_BASE_URL}
# ==============================================
# PAYPAL (Payment Gateway)