aboutsummaryrefslogtreecommitdiff
path: root/clientapi
diff options
context:
space:
mode:
authorkegsay <kegan@matrix.org>2022-05-05 09:56:03 +0100
committerGitHub <noreply@github.com>2022-05-05 09:56:03 +0100
commitd86dcbef66dad344bc38c58762a9634ff126d5c7 (patch)
treea8c95692a64a6303e02911c9a2d6b00fec3c84c8 /clientapi
parent3c940c428d529476b6fa2cbf1ba28d53ec011584 (diff)
syncapi: define specific interfaces for internal HTTP communications (#2416)
* syncapi: use finer-grained interfaces when making the syncapi * Use specific interfaces for syncapi-roomserver interactions * Define query access token api for shared http auth code
Diffstat (limited to 'clientapi')
-rw-r--r--clientapi/auth/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/clientapi/auth/auth.go b/clientapi/auth/auth.go
index 575c5377..93345f4b 100644
--- a/clientapi/auth/auth.go
+++ b/clientapi/auth/auth.go
@@ -51,7 +51,7 @@ type AccountDatabase interface {
// Note: For an AS user, AS dummy device is returned.
// On failure returns an JSON error response which can be sent to the client.
func VerifyUserFromRequest(
- req *http.Request, userAPI api.UserInternalAPI,
+ req *http.Request, userAPI api.QueryAcccessTokenAPI,
) (*api.Device, *util.JSONResponse) {
// Try to find the Application Service user
token, err := ExtractAccessToken(req)