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

Verified user group #227

Merged
merged 2 commits into from
Dec 1, 2024
Merged

Verified user group #227

merged 2 commits into from
Dec 1, 2024

Conversation

DaymasS
Copy link
Contributor

@DaymasS DaymasS commented Nov 28, 2024

Изменения

Добавлена группа верифицированных пользователей. Туда попадают пользователи, авторизовавшиеся через oauth lkmsu

Детали реализации

При регистрации или логине через lkmsu происходит добавление юзера в группу верифицированных пользователей.
При отвязывании аккаунта, юзера удаляют из группы верифицированных пользователей.
Все пользователи с уже привязанными аккаунтами lkmsu будут добавлены в группу верифицированных пользователей во время миграции

Check-List

  • Вы проверили свой код перед отправкой запроса?
  • Вы написали тесты к реализованным функциям?
  • Вы не забыли применить форматирование black и isort для Back-End или Prettier для Front-End?

@DaymasS DaymasS requested a review from Temmmmmo November 28, 2024 07:54
@DaymasS DaymasS self-assigned this Nov 28, 2024
Copy link

Code Coverage

Coverage Report
FileStmtsMissCoverMissing
auth_backend
   __main__.py330%1–5
   base.py12467%6–9
   exceptions.py39587%32, 47–49, 54
auth_backend/auth_method
   base.py63494%52, 54, 61, 143
   method_mixins.py32294%27, 50
   oauth.py561770%38, 44, 49–54, 58–69, 95–100
   outer.py1142975%27, 34, 41, 48, 99, 105, 114, 168–173, 186–194, 206–212
   userdata_mixin.py19574%32, 37–40
auth_backend/auth_plugins
   airflow.py331652%26–37, 42–65
   authentic.py19010346%53–65, 70–83, 87–102, 106–112, 116–122, 129–131, 141–197, 204–254, 259, 264–265, 275–282, 311–317, 326, 331–341, 346–359
   coder.py321650%25–34, 39–52
   email.py2521494%91, 231, 316, 318, 323, 334–340, 387, 428, 479, 489
   github.py1046339%57–116, 127–171, 178, 183, 189–201
   google.py1126443%65–124, 135–163, 170, 176–180, 184–189, 193–202
   keycloak.py1046240%53–115, 122–172, 179, 184, 190–195
   lkmsu.py16411232%60–113, 128–166, 173–195, 200, 205, 211–221, 225–239, 243–272, 276–285
   mailu.py341847%25–34, 39–54
   postgres.py432053%29–35, 40–46, 51–63
   telegram.py1116145%56–90, 102–120, 127, 133, 143–163, 167–181
   vk.py1288236%71–123, 134–172, 179, 184, 190–207, 214–240
   yandex.py1278335%58–128, 138–176, 184, 190, 196–222
auth_backend/cli
   group.py13130%1–17
   process.py56560%1–72
   scope.py11110%1–20
   user.py20200%1–40
   user_group.py12120%1–25
auth_backend/kafka
   kafka.py502060%30–33, 42–44, 56–59, 72–82, 85, 93, 103
   kafkameta.py9278%8, 12
auth_backend/models
   base.py83594%79, 100–102, 106
   db.py136398%52, 209, 213
   dynamic_settings.py27774%24–31
auth_backend/routes
   base.py26292%20–21
   exc_handlers.py37586%29, 54, 67, 93, 105
   groups.py84396%85, 135, 137
   scopes.py36392%24, 53–54
   user.py942771%54, 56, 58–67, 73–79, 91–111, 162, 179
   user_session.py84693%76–85, 114, 116, 174, 181
auth_backend/schemas
   models.py98397%148–150
auth_backend/schemas/types
   scopes.py24675%30–32, 37, 40, 42
auth_backend/utils
   security.py43295%36, 61
   smtp.py771877%76–79, 101–120
   string.py7186%12
   user_session_control.py33197%28
TOTAL2941100966% 

Summary

Tests Skipped Failures Errors Time
59 6 💤 0 ❌ 0 🔥 10.495s ⏱️

@Temmmmmo Temmmmmo merged commit d42cd5a into main Dec 1, 2024
2 checks passed
@Temmmmmo Temmmmmo deleted the Verified-user-group branch December 1, 2024 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Верифицирование пользователей через LKMSU
2 participants