Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Track ips and token usage when delegating auth
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Nov 21, 2023
1 parent 9f7a844 commit cde18ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions synapse/api/auth/msc3861_delegated.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ async def get_user_by_req(
# TODO: we probably want to assert the allow_guest inside this call
# so that we don't provision the user if they don't have enough permission:
requester = await self.get_user_by_access_token(access_token, allow_expired)
await self._record_request(request, requester)

if not allow_guest and requester.is_guest:
raise OAuthInsufficientScopeError([SCOPE_MATRIX_API])
Expand Down

0 comments on commit cde18ba

Please sign in to comment.