-
Notifications
You must be signed in to change notification settings - Fork 917
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Authentication Emulator Supports MFA for Simple Read/Write User Opera…
…tions (Fixes #3170) (#3173) * Authentication Emulator Supports MFA Info for Simple Read/Write User Operations (#3170) * throw NotImplementedError if an MFA user attempts to login using the Authentication Emulator * bring validation into operations layer and extend MFA related support to the `updateUser` path + add test cases for validation of `signUp` MFA flows * 1. simplify state handling for MFA 2. match SDK behavior with respect to MFA ID uniqueness constraints 3. stylistic updates to test code 4. add TODOs regarding import/export MFA support * match the SDK behavior for duplicated phone numbers and duplicated MFA Enrollment IDs on create and update * change import for brevity * update constants and IDs used in tests + simplify ID generation * update variables in test * Update CHANGELOG.md Co-authored-by: Yuchen Shi <yuchenshi@google.com>
- Loading branch information
1 parent
718e5a7
commit be0d2b6
Showing
15 changed files
with
924 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
- Fixes an issue where `ext:dev:init` failed when Typescript was chosen. | ||
- Add support for reading/writing mfaInfo field in Auth Emulator (#3173). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import * as schema from "./schema"; | ||
export type Schemas = schema.components["schemas"]; | ||
export type MfaEnrollment = Schemas["GoogleCloudIdentitytoolkitV1MfaEnrollment"]; | ||
export type MfaEnrollments = MfaEnrollment[]; | ||
export type CreateMfaEnrollmentsRequest = Schemas["GoogleCloudIdentitytoolkitV1MfaFactor"][]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.