-
Notifications
You must be signed in to change notification settings - Fork 5
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
Use ASAB auth and tenant services #440
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # seacatauth/authz/role/service.py
@@ -45,7 +45,7 @@ RUN apk add --no-cache \ | |||
pyyaml \ | |||
pymongo \ | |||
sentry-sdk \ | |||
git+https://github.com/TeskaLabs/asab.git |
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.
remove this before merging
@@ -60,7 +60,7 @@ jobs: | |||
pip install bcrypt | |||
pip install argon2 | |||
pip install jwcrypto | |||
pip install git+https://github.com/TeskaLabs/asab.git#egg=asab[encryption] | |||
pip install "asab[encryption] @ git+https://github.com/TeskaLabs/asab.git@feature/auth-providers" |
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.
remove dev branch before merging
seacatauth/auth_provider.py
Outdated
|
||
|
||
@contextlib.contextmanager | ||
def system_authz( |
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.
Proposed name: local_authz
|
||
|
||
# TODO: Deprecated. Replace with ASAB auth functions entirely. |
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.
Propose a date of when this code is to be removed ... or consider Deprecation at all.
Summary
asab.contextvars.Authz
.system_authz
context manager for providing authorization in service-internal context (provisioning, maintenance...).asab.web.auth.authorization
.TODO