mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-13 21:02:25 +03:00
mas: added "admin's replacement without uia" endpoint
i.e. /_synapse/admin/v1/users/{userID}/_allow_cross_signing_replacement_without_uia
This commit is contained in:
parent
63a199cec3
commit
9d9841d02e
10 changed files with 168 additions and 29 deletions
|
@ -96,6 +96,16 @@ func sanityCheckKey(key fclient.CrossSigningKey, userID string, purpose fclient.
|
|||
return nil
|
||||
}
|
||||
|
||||
func (a *UserInternalAPI) PerformAllowingMasterCrossSigningKeyReplacementWithoutUIA(
|
||||
ctx context.Context,
|
||||
req *api.PerformAllowingMasterCrossSigningKeyReplacementWithoutUIARequest,
|
||||
res *api.PerformAllowingMasterCrossSigningKeyReplacementWithoutUIAResponse,
|
||||
) error {
|
||||
var err error
|
||||
res.Timestamp, err = a.KeyDatabase.UpdateMasterCrossSigningKeyAllowReplacementWithoutUIA(ctx, req.UserID, req.Duration)
|
||||
return err
|
||||
}
|
||||
|
||||
// nolint:gocyclo
|
||||
func (a *UserInternalAPI) PerformUploadDeviceKeys(ctx context.Context, req *api.PerformUploadDeviceKeysRequest, res *api.PerformUploadDeviceKeysResponse) {
|
||||
// Find the keys to store.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue