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

[Auth][Login] - Expor endpoint para realizar login #32

Closed
Alecell opened this issue Apr 29, 2024 · 1 comment · Fixed by #60
Closed

[Auth][Login] - Expor endpoint para realizar login #32

Alecell opened this issue Apr 29, 2024 · 1 comment · Fixed by #60
Assignees

Comments

@Alecell
Copy link

Alecell commented Apr 29, 2024

Depende da issue: #15

Criar um AuthController que terá a rota POST /auth/login recebendo o username e password do usuário que irá logar.

Sugestões:

Requisição

  • classe: AuthController
  • Rota: /api/auth/login
  • Método HTTP: POST
  • Corpo da Requisição:
{
  "username": "johndoe123",
  "password": "001@Mypassword",
}

Resposta

  • Código HTTP: 200
  • Corpo da resposta:
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
  "issuedAt": "1714233677",
  "expireAt": "1714237277"
}
@Lukasveiga
Copy link
Contributor

Eu quero!!!

@kvnbg kvnbg moved this from Todo to In Progress in Octopost Backend May 6, 2024
@kvnbg kvnbg moved this from In Progress to Pending Approval in Octopost Backend May 8, 2024
@kvnbg kvnbg moved this from Pending Approval to Done in Octopost Backend May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants