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

Authorization #10

Open
Jagerente opened this issue Mar 13, 2023 · 0 comments
Open

Authorization #10

Jagerente opened this issue Mar 13, 2023 · 0 comments
Assignees
Labels
api API related database Database related

Comments

@Jagerente
Copy link
Member

Jagerente commented Mar 13, 2023

Цель:

  • Добавить авторизацию для взаимодействия с данными с помощью API.

Ожидаемый результат:

  • Есть репозиторий для управления пользователями в DB.

  • Пароли хранятся в БД захэшировано.

  • С помощью API можно авторизоваться:

  • POST api/auth:
    Request body

{
  "username": "username",
  "password": "password"
}

Response 200

{
  "token":"dashiufAIFHjksdhf423140ads"
}
@Jagerente Jagerente added api API related database Database related labels Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api API related database Database related
Projects
None yet
Development

No branches or pull requests

2 participants