Overview of Flask-Security
mainFlask-Security is a library designed to quickly add security features to Flask applications. It aims to follow OWASP best practices and provides a 'batteries-included' experience by bundling support for common authentication and authorization use cases. Key features include:
- Multi-Factor Authentication: Support for SMS, email, and authenticator apps.
- Modern Auth Standards: WebAuthn/Passkey support, Refresh Tokens, and OAuth (via
authlib). - Identity Management: Username recovery, changing usernames, changing emails, and email normalization/validation.
- Unified Sign-in: Support for username, phone, and passwordless authentication.
- Security Decorators: A
freshnessdecorator to ensure sensitive operations require recent authentication.