(core) Migrate to SRP and add change password dialog

Summary:
Moves some auth-related UI components, like MFAConfig, out
of core, and adds a new ChangePasswordDialog component for
allowing direct password changes, replacing the old reset password
link to hosted Cognito.

Updates all MFA endpoints to use SRP for authentication.

Also refactors MFAConfig into smaller files, and polishes up some parts
of the UI to be more consistent with the login pages.

Test Plan: New server and deployment tests. Updated existing tests.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D3311
This commit is contained in:
George Gevoian
2022-03-16 19:32:17 -07:00
parent 7ba4dff18f
commit 0f4f0d3dad
9 changed files with 44 additions and 1204 deletions

View File

@@ -0,0 +1,3 @@
export function buildChangePasswordDialog() {
return null;
}

View File

@@ -0,0 +1,8 @@
import {FullUser} from 'app/common/UserAPI';
import {Disposable} from 'grainjs';
export class MFAConfig extends Disposable {
constructor(_user: FullUser) { super(); }
public buildDom() { return null; }
}

View File

@@ -1,6 +1,7 @@
{
"extends": "../../buildtools/tsconfig-base.json",
"references": [
{ "path": "../../app/client" },
{ "path": "../../app/common" },
{ "path": "../../app/server" }
]