Adfsmfa
MFA for ADFS (2012r2 -> 2025)
Install / Use
/learn @redhook62/AdfsmfaREADME
Multi-Factor Authentication for ADFS 2025/2022/2019/2016/2012r2 (with biometric authentication)
This project can help you to implement multi-factor authentication without requiring any additional provider.
You can download a fully functional solution or modify the source code to build your own solution.
MFA helps secure user sign-ins for on-premise or cloud services beyond just a single password. With MFA, users are required to enter a confirmation code, which is send to their phones, email account or via an authenticator application (Microsoft authentication, Google Authentication)after correctly entering their passwords.
What I Know (password) and What I Hold (device) or What I Am (biometrics) are the keys of MFA.
For example, if you user password is compromised by a hacker, he can’t activate your application (business email) because You have the code that can grant access to the app.
This extension, allow to use second factor with secondary email code transmission, or TOTP code (Time-based One Time Password) compatible with the Google’s (and others) standard.
This extension works with Active Directory or an SQL Server Database for storing secret keys.
Installation & Documentation
Downloads
Building Solution
Features
- Localized UI French/English/Spanish/Italian/German/Dutch/Portuguese/Polish/Swedish/Romanian/Russian/Danish/Japanese/Quebec/Ukrainian
- TOTP, Email, Phone, Biometric, Azure Providers for MFA
- Run with ADFS 2012 R2, 2016, 2019, 2022 and 2025
- Secret Keys length (Guid, 128, 256, 384 & 512 bytes) RNG generator
- Secret Keys RSA asymmetric encryption length (2048 bytes) RSA
- Secret Keys AES symmetric encryption length (256 bytes) AES256, ECDH_P256
- Secret Keys custom encryption (when implementing ISecretKeyManager and ISecretKeyManagerActivator)
- PowerShell Cmdlets for managing MFA properties and MFA Users
- MMC Console for managing MFA properties and MFA Users
- Can use ADDS customizable attributes or SQL-Server Database, or develop a Custom Storage component
- Can send TOTP code by email (customizable template in resources)
- Can send TOTP code by SMS (customizable and extensible with API (IExternalProvider interface))
- Can use TOTP code using Authenticator Apps like MS Authenticator, Google Authentication and more
- Biometric authentication (Anders Åberg, Alex Seigler and others)
- Enable self-registration
- Enable self-registration with QR code (George Mamaladze and his team)
- Enable custom change password.
- Can work with ADDS multi-forests with trust relationships
- Can work with LDAP 3.0 Providers (ADFS 2016/2019/2022/2025) when using SQL Storage mode
- Full sample for Azure MFA (additional configuration tasks and costs implied)
- Developers can easily extend this component for other verification modes (Azure MFA, RSA,…) with the IExternalProvider, ISecretKeyManager interfaces
- Developers can easily extend this component for other storages modes (AD & SQL by default)
- Developers can easily replace the default UI, subclassing BasePresentation or BaseMFAPresentation classes
- Full support for ADFS 2019/2022/2025 themes
Remarks
- Due to security, Developers must sign their Visual Studio solution with their own generated .pfx certificate (see custom development)
- You must deploy the solution on each of your ADFS servers, not on Proxy Servers.
- To work with ADDS, the ADFS Service account must have read and write to users properties (or use the superaccount feature).
- To work with SQL Server Database, you must deploy the database on a separate SQL Server
- Working with ADFS Windows server 2012r2, 2016, 2019, 2022 and 2025
Related Skills
oracle
343.1kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
prose
343.1kOpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.
Command Development
90.0kThis skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
Plugin Structure
90.0kThis skill should be used when the user asks to "create a plugin", "scaffold a plugin", "understand plugin structure", "organize plugin components", "set up plugin.json", "use ${CLAUDE_PLUGIN_ROOT}", "add commands/agents/skills/hooks", "configure auto-discovery", or needs guidance on plugin directory layout, manifest configuration, component organization, file naming conventions, or Claude Code plugin architecture best practices.
