diff options
author | David Robertson <davidr@element.io> | 2023-11-23 12:35:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-23 12:35:37 +0000 |
commit | 32a59a6495f8d463f82ae52283159359a9961c25 (patch) | |
tree | 44824e6214f748c4ed576af7a4d3986e398a6983 /tests/config | |
parent | Enable refreshable tokens on the admin registration endpoint (#16642) (diff) | |
download | synapse-32a59a6495f8d463f82ae52283159359a9961c25.tar.xz |
Keep track of `user_ips` and `monthly_active_users` when delegating auth (#16672)
* Describe `insert_client_ip` * Pull out client_ips and MAU tracking to BaseAuth * Define HAS_AUTHLIB once in tests sick of copypasting * Track ips and token usage when delegating auth * Test that we track MAU and user_ips * Don't track `__oidc_admin`
Diffstat (limited to 'tests/config')
-rw-r--r-- | tests/config/test_oauth_delegation.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/config/test_oauth_delegation.py b/tests/config/test_oauth_delegation.py index 5c91031746..b1a9db0210 100644 --- a/tests/config/test_oauth_delegation.py +++ b/tests/config/test_oauth_delegation.py @@ -22,15 +22,7 @@ from synapse.types import JsonDict from tests.server import get_clock, setup_test_homeserver from tests.unittest import TestCase, skip_unless -from tests.utils import default_config - -try: - import authlib # noqa: F401 - - HAS_AUTHLIB = True -except ImportError: - HAS_AUTHLIB = False - +from tests.utils import HAS_AUTHLIB, default_config # These are a few constants that are used as config parameters in the tests. SERVER_NAME = "test" |