mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-20 21:33:19 -06:00
Cleanup
This commit is contained in:
parent
88c73e9e36
commit
61e34d0184
|
|
@ -25,7 +25,6 @@ import (
|
||||||
|
|
||||||
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
|
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
|
||||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||||
"github.com/matrix-org/dendrite/internal/config"
|
|
||||||
"github.com/matrix-org/dendrite/userapi/api"
|
"github.com/matrix-org/dendrite/userapi/api"
|
||||||
"github.com/matrix-org/util"
|
"github.com/matrix-org/util"
|
||||||
)
|
)
|
||||||
|
|
@ -46,14 +45,6 @@ type AccountDatabase interface {
|
||||||
GetAccountByLocalpart(ctx context.Context, localpart string) (*authtypes.Account, error)
|
GetAccountByLocalpart(ctx context.Context, localpart string) (*authtypes.Account, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Data contains information required to authenticate a request.
|
|
||||||
type Data struct {
|
|
||||||
AccountDB AccountDatabase
|
|
||||||
DeviceDB DeviceDatabase
|
|
||||||
// AppServices is the list of all registered AS
|
|
||||||
AppServices []config.ApplicationService
|
|
||||||
}
|
|
||||||
|
|
||||||
// VerifyUserFromRequest authenticates the HTTP request,
|
// VerifyUserFromRequest authenticates the HTTP request,
|
||||||
// on success returns Device of the requester.
|
// on success returns Device of the requester.
|
||||||
// Finds local user or an application service user.
|
// Finds local user or an application service user.
|
||||||
|
|
|
||||||
|
|
@ -140,6 +140,7 @@ listen:
|
||||||
edu_server: "localhost:7778"
|
edu_server: "localhost:7778"
|
||||||
key_server: "localhost:7779"
|
key_server: "localhost:7779"
|
||||||
server_key_api: "localhost:7780"
|
server_key_api: "localhost:7780"
|
||||||
|
user_api: "localhost:7781"
|
||||||
|
|
||||||
# The configuration for tracing the dendrite components.
|
# The configuration for tracing the dendrite components.
|
||||||
tracing:
|
tracing:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue