feat: migrar a useAuthentik y configurar CI/CD con Gitea Actions
- 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:
@@ -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
|
||||
})
|
||||
Reference in New Issue
Block a user