Skip to content

Latest commit

ย 

History

208 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Keycloak 2FA Email Authenticator

A Keycloak Authentication Provider for two-factor authentication (2FA) via email OTP. Supports Keycloak SMTP, SendGrid, AWS SES, and Mailgun.

Maven Central Java Version License

Documentation

Full documentation โ€” installation, configuration, template customization, and contribution guide โ€” is available at:

https://mesutpiskin.github.io/keycloak-2fa-email-authenticator/

Highlights

  • Email OTP login for Keycloak browser flows
  • Configurable code length, TTL, resend cooldown, and max attempts
  • Optional masked email display on the OTP form for better UX after the code is sent
  • Multiple email delivery backends: Keycloak SMTP, SendGrid, AWS SES, and Mailgun

Related projects

Need OTP via SMS, Telegram, WhatsApp, or Signal? See the sibling project: keycloak-2fa-messaging-authenticator โ€” same approach, different channel.

Quick Start

The easiest way to get the JAR is via Maven Central. Use the version matching your Keycloak installation:

Maven:

<dependency>
  <groupId>io.github.mesutpiskin</groupId>
  <artifactId>keycloak-2fa-email-authenticator</artifactId>
  <version>26.3.0-KC26.6.1</version>
</dependency>

Gradle:

implementation 'io.github.mesutpiskin:keycloak-2fa-email-authenticator:26.3.0-KC26.6.1'

Version format: <plugin-version>-KC<keycloak-version> โ€” all versions on Maven Central.

Contributing

Contributions are welcome โ€” bug reports, feature requests, translations, and pull requests. Please open an issue first for significant changes.

Sponsor

This project is developed and maintained voluntarily. If you'd like to support it, donations go to KACUV โ€” a non-profit supporting children in need.

Donate

License

Licensed under the Apache License 2.0.

About

๐Ÿ”’ Keycloak Authentication Provider implementation to get a two factor authentication with a OTP/code/token send via Email (SMTP, SendGrid, AWS SES, Mailgun)

Topics

Resources

Stars

280 stars

Watchers

7 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages