-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(vue): refactor Authenticator #4246
Conversation
* Remove dependency on mock facade * Update comment * Remove //@ts-ignore * useAuthenticatorValue cleanup * Update packages/vue/src/composables/useAuth.ts * Update packages/vue/src/composables/useAuth.ts * Update packages/vue/src/composables/useAuth.ts * Update tests * fix typo * Update packages/vue/src/composables/__tests__/useAuthenticator.spec.ts
* sign in refactor * sign-in tests * Federated Sign In tests * FederatedSignInButton refactor * Bump jest threshold * revert unrelated change * Remove unrelated slot change * Add casting disclaimer * Don't use facadeValues * Remove dependency on mock facade * Update comment * Remove //@ts-ignore * useAuthenticatorValue cleanup * Update packages/vue/src/composables/useAuth.ts * Update packages/vue/src/composables/useAuth.ts * Update packages/vue/src/composables/useAuth.ts * Update tests * fix typo * Share mockServiceFacade value * Ignore __mock__ dir * Update threshold * Remove typo * update mockServiceFacade usage * Rename baseMockServiceFacade * Update jest ignorePath * jest cleanup * Update packages/vue/src/components/__tests__/federated-sign-in-button.spec.ts * Add @deprecate * Update packages/vue/src/components/federated-sign-in-button.vue
) * WIP * Add qrFields to `useAuthenticator` * SetupTOTP tests * add confirm sign in refactor + tests * Bump jest thresholds * Update packages/vue/src/components/setup-totp.vue * Update packages/vue/src/components/setup-totp.vue * Update packages/vue/src/components/setup-totp.vue * Use type annotation
* refactor confirm reset password * refactor ForceNewPassword * Bump threshold * in progress code * composable tests * alias-control tests * Use ! instead * Turn off non-null assertion * Clean up Authenticator * Update packages/vue/src/components/authenticator.vue * Authenticator cleanup * Update packages/vue/src/components/authenticator.vue * Update comment * Define interface in the file * Update packages/vue/src/components/authenticator.vue * Update packages/vue/src/types/index.ts * Update packages/vue/src/types/index.ts
|
branches: 22, | ||
functions: 22, | ||
lines: 46, | ||
statements: 45, | ||
branches: 89, | ||
functions: 90, | ||
lines: 93, | ||
statements: 93, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WOW
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description of changes
Refactors Vue Authenticator components, primarily to use
useAuthenticator
instead of internaluseAuth
. Also adds unit test coverage.All commits other than temporary setups were reviewed through PRs:
Description of how you validated changes
New unit tests, existing e2e test, and smoke tests (done against the latest commit):
sign-in.mov
sign-up+confirm-sign-up.mov
setup-totp+confirm-sign-in.totp.mov
reset-password+confirm-reset-password.mov
force-new-password.mov
verify-user+confirm-verify-user.mov
federated-sign-in.mov
Checklist
yarn test
passes and tests are updated/addedsideEffects
field updatedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.