diff options
author | David Baker <dbkr@users.noreply.github.com> | 2016-06-02 14:31:35 +0100 |
---|---|---|
committer | David Baker <dbkr@users.noreply.github.com> | 2016-06-02 14:31:35 +0100 |
commit | fb2193cc63c8297238423f0df547d4527a41eefc (patch) | |
tree | c62b3850a6fefbde1e8ab3bf63b8f279dd3075f0 /synapse/rest/client/v2_alpha/tokenrefresh.py | |
parent | Disable INCLUDE_ALL_UNREAD_NOTIFS (diff) | |
parent | Split out the auth handler (diff) | |
download | synapse-fb2193cc63c8297238423f0df547d4527a41eefc.tar.xz |
Merge pull request #817 from matrix-org/dbkr/split_out_auth_handler
Split out the auth handler
Diffstat (limited to 'synapse/rest/client/v2_alpha/tokenrefresh.py')
-rw-r--r-- | synapse/rest/client/v2_alpha/tokenrefresh.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/tokenrefresh.py b/synapse/rest/client/v2_alpha/tokenrefresh.py index a158c2209a..8270e8787f 100644 --- a/synapse/rest/client/v2_alpha/tokenrefresh.py +++ b/synapse/rest/client/v2_alpha/tokenrefresh.py @@ -38,7 +38,7 @@ class TokenRefreshRestServlet(RestServlet): body = parse_json_object_from_request(request) try: old_refresh_token = body["refresh_token"] - auth_handler = self.hs.get_handlers().auth_handler + auth_handler = self.hs.get_auth_handler() (user_id, new_refresh_token) = yield self.store.exchange_refresh_token( old_refresh_token, auth_handler.generate_refresh_token) new_access_token = yield auth_handler.issue_access_token(user_id) |