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

Security - additional security with two factor authentication #47

Merged
merged 5 commits into from
Jan 30, 2023

Conversation

dahal
Copy link
Member

@dahal dahal commented Jan 28, 2023

This feature adds additional security

Here are some summary

  • If it's a bot, redirect to forbidden page
  • If token, user or sessionId is not present, redirect to login page
  • If sessionStore is not present, add it to Redis with geo data
  • If user is logged in but does not have 2fa enabled, redirect to verify auth
  • If current page is auth, 2fa or verify auth page, skip
  • If two factor is enabled but not verified, redirect to 2fa page
  • If two factor is not enabled and verified, skip
  • If two factor is not enabled, skip

components/twoFactorForm.tsx Outdated Show resolved Hide resolved
models/SessionHistory.ts Outdated Show resolved Hide resolved
@dahal dahal merged commit 3127527 into main Jan 30, 2023
@dahal dahal deleted the session/log branch January 30, 2023 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant