feat: migrar a useAuthentik y configurar CI/CD con Gitea Actions
Some checks failed
build-and-deploy / build (push) Failing after 6s
build-and-deploy / deploy (push) Has been skipped
deploy-analiticaNucleo / deploy (push) Failing after 2s

- Migrar de useAuth() a useAuthentik() para autenticación SSR
- Actualizar componentes UserMenu, AppSidebar y profile.vue
- Configurar docker-compose.yml con variables dinámicas
- Agregar Gitea Actions workflow para build y deploy automático
- Implementar hook de monitoreo de Gitea Actions
- Configurar secrets y variables para deploy seguro
- Actualizar configuración de Traefik con Authentik Forward Auth
This commit is contained in:
2025-10-13 11:25:40 -06:00
parent 052d73920b
commit d32b3e8db3
13 changed files with 934 additions and 124 deletions

View File

@@ -1,15 +0,0 @@
export default defineEventHandler((event) => {
const headers = getHeaders(event)
// Authentik envía información del usuario en headers específicos
const user = {
username: headers['x-authentik-username'] || null,
email: headers['x-authentik-email'] || null,
name: headers['x-authentik-name'] || null,
uid: headers['x-authentik-uid'] || null,
groups: headers['x-authentik-groups'] ? headers['x-authentik-groups'].split(',') : [],
authenticated: !!headers['x-authentik-username']
}
return user
})