Skip to content

Commit

Permalink
feat(authenticator): TOTP MFA (#3609)
Browse files Browse the repository at this point in the history
Adds TOTP MFA feature to The Authenticator package.
  • Loading branch information
Equartey authored and Dillon Nys committed Aug 28, 2023
1 parent 40be7cb commit ca1e497
Show file tree
Hide file tree
Showing 78 changed files with 1,713 additions and 32 deletions.
12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Thank you for your interest in contributing to our project! <3 Whether it's a bu
- [Unit Tests](#unit-tests)
- [Integration Tests](#integration-tests)
- [Provision Resources For Integration Tests](#provision-resources-for-integration-tests)
- [Screenshot Tests](#screenshot-tests)
- [Code of Conduct](#code-of-conduct)
- [Security issue notifications](#security-issue-notifications)
- [Licensing](#licensing)
Expand Down Expand Up @@ -248,6 +249,17 @@ $ tool/provision_integration_test_resources.sh

This script can be re-run anytime the environments need to be updated. Further information can be found in the [infra](infra/README.md) package.

## Screenshot Tests

The Amplify Authenticator package contains a screenshot test suite called `goldens`. If your changes include UI changes within this package please regenerate the goldens.

To regenerate, navigate to the root of the Authenticator package and run:

```bash
$ cd packages/authenticator/amplify_authenticator
$ flutter test --update-goldens
```

## Code of Conduct

This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import 'package:checks/checks.dart';
import 'package:flutter_test/flutter_test.dart';

import 'test_runner.dart';
import 'utils/totp_utils.dart';

void main() {
testRunner.setupTests();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import 'package:checks/checks.dart';
import 'package:flutter_test/flutter_test.dart';

import 'test_runner.dart';
import 'utils/totp_utils.dart';

void main() {
testRunner.setupTests();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import 'package:checks/checks.dart';
import 'package:flutter_test/flutter_test.dart';

import 'test_runner.dart';
import 'utils/totp_utils.dart';

void main() {
testRunner.setupTests();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import 'package:checks/checks.dart';
import 'package:flutter_test/flutter_test.dart';

import 'test_runner.dart';
import 'utils/totp_utils.dart';

void main() {
testRunner.setupTests();
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import 'http_test.dart' as http_tests;
import 'reset_password_test.dart' as reset_password_tests;
import 'sign_in_force_new_password_test.dart'
as sign_in_force_new_password_tests;
import 'sign_in_mfa_test.dart' as sign_in_mfa_tests;
import 'sign_in_mfa_sms_test.dart' as sign_in_mfa_sms_tests;
import 'sign_in_mfa_sms_totp_test.dart' as sign_in_mfa_sms_totp_tests;
import 'sign_in_mfa_totp_test.dart' as sign_in_mfa_totp_tests;
import 'sign_in_with_email_test.dart' as sign_in_with_email_tests;
import 'sign_in_with_phone_test.dart' as sign_in_with_phone_tests;
import 'sign_in_with_username_test.dart' as sign_in_with_username_tests;
Expand All @@ -37,7 +39,9 @@ void main() {
http_tests.main();
reset_password_tests.main();
sign_in_force_new_password_tests.main();
sign_in_mfa_tests.main();
sign_in_mfa_sms_tests.main();
sign_in_mfa_sms_totp_tests.main();
sign_in_mfa_totp_tests.main();
sign_in_with_email_tests.main();
sign_in_with_phone_tests.main();
sign_in_with_username_tests.main();
Expand Down
Loading

0 comments on commit ca1e497

Please sign in to comment.