Auto2FA is a Safari extension that automatically handles two-factor authentication (2FA) for your web accounts. It supports various authentication methods including OTP (One-Time Password), push notifications, and manual 2FA steps.
- 🔐 Automatic 2FA handling for supported websites
- 🔑 Secure credential storage using macOS Keychain
- 🔄 Support for multiple authentication methods:
- OTP (TOTP) with auto-refresh
- Push notifications
- Manual 2FA steps with user guidance
- 🌐 Domain-based account mapping
- ⚡ Auto-submit forms (configurable)
- 🔍 Smart field detection for login forms
- 🛡️ Secure handling of sensitive data
- 📱 Native macOS app for configuration
- Download the latest release from the Releases page
- Install the macOS app
- Open Safari Preferences
- Enable the Auto2FA extension
- Configure your accounts in the macOS app
Auto2FA is designed to work with any website that uses standard login forms. It includes special handling for:
- Microsoft accounts (Office 365, Azure, etc.)
- Google accounts
- GitHub
- And many more...
- Credentials are stored securely in the macOS Keychain
- Sensitive data is cleared from memory after use
- No data is sent to external servers
- All processing happens locally on your device
- macOS 12.0 or later
- Xcode 14.0 or later
- Safari 16.0 or later
-
Clone the repository:
git clone https://github.com/rogu3bear/Auto2FA.git cd Auto2FA
-
Open the project in Xcode:
open Auto2FA.xcodeproj
-
Build and run the project
Auto2FA/
├── Auto2FA/ # macOS App
│ ├── Views/ # SwiftUI Views
│ ├── Models/ # Data Models
│ └── Services/ # Business Logic
├── Auto2FAExtension/ # Safari Extension
│ ├── content.js # Content Script
│ ├── background.js # Background Script
│ └── popup/ # Extension Popup
└── Shared/ # Shared Resources
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- otpauth for TOTP implementation
- Safari App Extensions documentation
- All contributors and users of Auto2FA
If you encounter any issues or have questions, please open an issue.