Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autenticar Usuário #124

Closed
2 of 3 tasks
kairon-v opened this issue Oct 12, 2019 · 3 comments
Closed
2 of 3 tasks

Autenticar Usuário #124

kairon-v opened this issue Oct 12, 2019 · 3 comments
Assignees
Labels
technical debt It wasn't finished in its expected Sprint
Milestone

Comments

@kairon-v
Copy link
Collaborator

kairon-v commented Oct 12, 2019

Descrição

Como usuário, preciso me autenticar na plataforma do Vsign para gerenciar os contratos e assinaturas.

Critérios de aceite

  • Integrar página de login com backend via GraphQL
  • Bloquear acesso de usuários não autenticados a páginas restritas
  • Permitir autenticação com token (para login sem usuário e senha, direto do email)

DÍVIDA TÉCNICA DESDE A SPRINT 7

@kairon-v kairon-v added the enhancement New feature or request label Oct 12, 2019
@kairon-v kairon-v added this to the Sprint 7 milestone Oct 12, 2019
@kairon-v kairon-v assigned kairon-v and Foxtrot40 and unassigned kairon-v Oct 12, 2019
@williamtpv williamtpv self-assigned this Oct 12, 2019
@victoralvesgomide victoralvesgomide added technical debt It wasn't finished in its expected Sprint and removed enhancement New feature or request labels Oct 19, 2019
@victoralvesgomide victoralvesgomide modified the milestones: Sprint 7, Sprint 8 Oct 21, 2019
@Foxtrot40
Copy link
Collaborator

Quais são essas páginas restritas?

@kairon-v
Copy link
Collaborator Author

kairon-v commented Nov 2, 2019

  1. Criar rota no frontend /sign/:token, onde :token é o token do contrato.
  2. Criar mutation no GraphQL para fazer o login.
mutation DirectLogin {
    directLogin(token: 'MY_TOKEN') {
      contractId,
      token
    }
}

Essa mutation irá fazer o login do usuário, quando ele entrar na URL acima. O token retornado, é o token JWT criado para chamadas subsequentes na API.

@kairon-v
Copy link
Collaborator Author

Implementado em #161 e melhorado em #163 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
technical debt It wasn't finished in its expected Sprint
Projects
None yet
Development

No branches or pull requests

4 participants