p2-inc / phasetwo

Phase Two public repo for feature requests and issue tracking
0 stars 0 forks source link

Login via Magic Code sent by Email #3

Closed thebestgin closed 1 year ago

thebestgin commented 1 year ago

Magic Code feature, which send a login / register code via email.

Idea: Hash(creation time of the code + code + salt) = hash. You save this hash and the creation time of the code as cookies or response it with the Magic Code input form to check against after submit.

Simular extensions to integrate in phase two or use as inspiration : https://github.com/mesutpiskin/keycloak-2fa-email-authenticator https://gitlab.com/niroj.adhikary/keycloak-email-otp/-/tree/master

xgp commented 1 year ago

This is released as part of our magic link extension:

xgp commented 1 year ago

https://github.com/p2-inc/keycloak-magic-link/commit/50b72560e4d772e660e517d34373e0099c2baf6c