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-3] Добавление эндпоинтов авторизации на backend [WIP] #31

Open
artemptushkin opened this issue Apr 27, 2022 · 0 comments

Comments

@artemptushkin
Copy link
Collaborator

artemptushkin commented Apr 27, 2022

Все юзеры создаются администратором (мной) через liquibase.

Критерии проверки:

  1. POST запрос на определенный эндпоинт авторизует пользователя:
    https://developer.mozilla.org/ru/docs/Web/HTTP/Headers/Set-Cookie
    Ожидаем заголовок set-cookie
  2. Настраиваем эндпоинты, чтобы они падали с 401, если запрос не аутентифицирован. Вызываем любой эндопинт на сервере, установив куки из первого пункта.
  3. Опционально. Авторизация. админу доступны все ресурсы (придумать).

Эндпоинт /login
см. документацию https://docs.spring.io/spring-security/reference/index.html и пример https://github.com/Himal99/SpringBoot-Role-Based-authentication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant