-
Notifications
You must be signed in to change notification settings - Fork 27
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
♻️ Is3318/refactoring websever.login plugin (2/3) #3590
♻️ Is3318/refactoring websever.login plugin (2/3) #3590
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3590 +/- ##
========================================
- Coverage 82.3% 79.9% -2.4%
========================================
Files 763 880 +117
Lines 33745 37179 +3434
Branches 778 785 +7
========================================
+ Hits 27792 29728 +1936
- Misses 5746 7243 +1497
- Partials 207 208 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
e86c61d
to
51a6df3
Compare
06a7d85
to
9db9205
Compare
de74f9a
to
defa89d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great! and thanks for moving the tests to their own folder
services/web/server/src/simcore_service_webserver/login/handlers.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/login/handlers.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/login/handlers_change.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/login/handlers_confirmation.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/login/handlers_registration.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
ee69f86
to
bd01628
Compare
dbe7f61
to
81fbd9f
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
What do these changes do?
Follows from #3577 and is mostly a refactoring of the
login
plugin and some preparations to send 2FA codes via email.login
pluginlogin._constants
ValidationError
to 422openapi-core
:routes=RouteTableDef()
decorators to login handlers.extract_and_validate
withservicelib.aiohttp.requests_validation
and pydantic models which in addition are used to create the OAStest_login
toservices/web/server/tests/unit/with_dbs/03/login
, cleaned and extended.email
plugin setupweb-server
API0.12.0 → 0.12.2
services/web/server/src/simcore_service_webserver/templates/common/new_2fa_code.jinja2
email templateNext PR will implement
login_2fa
,register_phone
andphone_confirmation
handlers (via temporary access codes in session cookies)Further improvements (subsequent PRs)
auto_add_user_to_groups
toemail_confirmation
when the latter is required.Related issue/s
How to test
cd services/web/server make install-dev pytest tests/unit/with_dbs/03/login
Checklist
_get_user_name
auto_add_user_to_groups
with @sandereggmake version-*
make openapi.json
cd packages/postgres-database
,make setup-commit
,sc-pg review -m "my changes"