Skip to content
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

fix: Improve 2FA views. #98

Merged
merged 1 commit into from
Jun 5, 2019
Merged

fix: Improve 2FA views. #98

merged 1 commit into from
Jun 5, 2019

Conversation

jwag956
Copy link
Member

@jwag956 jwag956 commented Jun 5, 2019

as documented in Issue #90:

  • add initialization and tests for the 3 2FA form context processors.
  • for 2fa login - improve JSON response so can decide what next state is.
  • add 2FA URL configurations and documentation.
  • allow for both 2FA and normal logins - see below.

All logins now go through /login - however if SECURITY_TWO_FACTOR is true - all login's
require 2FA. Next step is to make this per-user. No change in behavior.

Backwards compat:
Other 2FA views have changed default endpoint URLS:

/two_factor_setup_function -> /tf-setup
/two_factor_token_validation -> tf-validate
/change/two_factor_password_confirmation -> /tf-confirm
/two_factor_rescue_function -> /tf-rescue

closes: #90

as documented in Issue #90:

- add initialization and tests for the 3 2FA form context processors.
- for 2fa login - improve JSON response so can decide what next state is.
- add 2FA URL configurations and documentation.
- allow for both 2FA and normal logins - see below.

All logins now go through /login - however if SECURITY_TWO_FACTOR is true - all login's
require 2FA. Next step is to make this per-user. No change in behavior.

Backwards compat:
Other 2FA views have changed default endpoint URLS:

/two_factor_setup_function -> /tf-setup
/two_factor_token_validation -> tf-validate
/change/two_factor_password_confirmation -> /tf-confirm
/two_factor_rescue_function -> /tf-rescue

closes: #90
@jwag956 jwag956 added this to the 3.2.0 milestone Jun 5, 2019
@jwag956 jwag956 requested a review from TillerBurr June 5, 2019 05:35
@jwag956 jwag956 self-assigned this Jun 5, 2019
Copy link
Collaborator

@TillerBurr TillerBurr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good. I say merge it.

@jwag956
Copy link
Member Author

jwag956 commented Jun 5, 2019

Thanks for your quick review.

@jwag956 jwag956 merged commit 2eb7b33 into master Jun 5, 2019
@jwag956 jwag956 deleted the views90 branch June 6, 2019 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve 2FA views
2 participants