mesutpiskin / keycloak-2fa-email-authenticator

🔒 Keycloak Authentication Provider implementation to get a two factor authentication with a OTP/code/token send via Email (through SMTP)
https://medium.com/@mesutpiskin/two-factor-authentication-via-email-in-keycloak-custom-auth-spi-935bbb3952a8
Apache License 2.0
165 stars 91 forks source link

Added configurability, time-to-live and improved code generation #26

Closed TheSlimvReal closed 1 year ago

TheSlimvReal commented 1 year ago

First of all great job with this repo. I think 2FA with email is a very crucial feature and it was nice to see what work has already been done here. I would like to make this repo extremely easy to use for anyone that wants to add 2FA to their project.

Therefore I am suggesting the following improvements which should make this feature more secure and more easy to adjust to different use cases:

Some inspiration regarding the TTL and configurability was taken from this repo https://github.com/stratumn/keycloak-2fa-email-authenticator