feat(auth): integra Keycloak e protege sessões - #173
Merged
Merged
Conversation
Configura o Keycloak no Docker, protege a API com JWT e associa jobs ao usuário autenticado. Adiciona sessão com Keycloak no frontend, guarda de rotas, logout, token Bearer nas requisições e redirecionamento após resposta 401. Atualiza CORS para Authorization, migration de vínculo de usuários, contrato, documentação, testes e tema de login.
- cobre renovação de tokens em chamadas REST e SSE - alinha configuração de segurança, testes e documentação local
pedro-fs-garcia
approved these changes
Sep 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementa autenticação completa com Keycloak, tanto no frontend quanto no backend. As telas de negócio agora exigem uma sessão válida e os jobs passam a respeitar o usuário autenticado.
Alterações realizadas
synapsee tema de login customizado.subdo token e impede acesso a jobs de outros usuários.Authorization: Bearer <token>em chamadas autenticadas.401.Authorization.Como testar
docker compose --env-file deploy/.env -f deploy/docker-compose.yml up -d.synapse.