diff options
author | reivilibre <oliverw@matrix.org> | 2021-11-04 17:10:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 17:10:11 +0000 |
commit | 499c44d69685c1c1e347ff252ad08f5dfe089a83 (patch) | |
tree | 8cf93492811fb2e7b3944e61b882d71403d713c2 | |
parent | Additional test for `cachedList` (#11246) (diff) | |
download | synapse-499c44d69685c1c1e347ff252ad08f5dfe089a83.tar.xz |
Make minor correction to type of auth_checkers callbacks (#11253)
Diffstat (limited to '')
-rw-r--r-- | changelog.d/11253.misc | 1 | ||||
-rw-r--r-- | docs/modules/password_auth_provider_callbacks.md | 2 | ||||
-rw-r--r-- | synapse/handlers/auth.py | 4 |
3 files changed, 5 insertions, 2 deletions
diff --git a/changelog.d/11253.misc b/changelog.d/11253.misc new file mode 100644 index 0000000000..71c55a2751 --- /dev/null +++ b/changelog.d/11253.misc @@ -0,0 +1 @@ +Make minor correction to the type of `auth_checkers` callbacks. diff --git a/docs/modules/password_auth_provider_callbacks.md b/docs/modules/password_auth_provider_callbacks.md index 0de60b128a..e53abf6409 100644 --- a/docs/modules/password_auth_provider_callbacks.md +++ b/docs/modules/password_auth_provider_callbacks.md @@ -11,7 +11,7 @@ registered by using the Module API's `register_password_auth_provider_callbacks` _First introduced in Synapse v1.46.0_ ```python - auth_checkers: Dict[Tuple[str,Tuple], Callable] +auth_checkers: Dict[Tuple[str, Tuple[str, ...]], Callable] ``` A dict mapping from tuples of a login type identifier (such as `m.login.password`) and a diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py index d508d7d32a..60e59d11a0 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py @@ -1989,7 +1989,9 @@ class PasswordAuthProvider: self, check_3pid_auth: Optional[CHECK_3PID_AUTH_CALLBACK] = None, on_logged_out: Optional[ON_LOGGED_OUT_CALLBACK] = None, - auth_checkers: Optional[Dict[Tuple[str, Tuple], CHECK_AUTH_CALLBACK]] = None, + auth_checkers: Optional[ + Dict[Tuple[str, Tuple[str, ...]], CHECK_AUTH_CALLBACK] + ] = None, ) -> None: # Register check_3pid_auth callback if check_3pid_auth is not None: |