Keycloak通过短信进行用户验证

huangapple go评论96阅读模式
英文:

Keycloak with user verification using SMS

问题

After looking at keycloak I could not find a way to do any SMS verification.

Do you guys have any extension or setup in order to allow user verification with SMS.

Thanks for your help.

Jonathan.

英文:

After looking at keycloak I could not find a way to do any SMS verification.

Do you guys have any extension or setup in order to allow user verification with SMS.

Thanks for your help.

Jonathan.

答案1

得分: 2

以下是要翻译的内容:

这是官方 GitHub 上的示例代码,现在的 Keycloak 版本是 11+。

https://github.com/keycloak/keycloak-quickstarts/tree/latest/action-token-authenticator

https://github.com/keycloak/keycloak/tree/master/examples/providers/authenticator

英文:

Here is the sample code from official github, now the keycloak version is 11+

https://github.com/keycloak/keycloak-quickstarts/tree/latest/action-token-authenticator

https://github.com/keycloak/keycloak/tree/master/examples/providers/authenticator

答案2

得分: 1

以下是已翻译的内容:

我找到的最佳示例是这个。他有一篇博客文章和一个20分钟的视频来解释它。这是在2020年12月完成的,直接构建并运行。

博客文章的代码链接:
https://github.com/dasniko/keycloak-2fa-sms-authenticator

甚至还有一个视频链接:
https://youtu.be/GQi19817fFk

英文:

The best example I found was this one. He has a blog post and a 20 minute video to explain it. It was done December of 2020 and it built and ran right out of the box.

https://www.n-k.de/2020/12/keycloak-2fa-sms-authentication.html

code for the above blog post:
https://github.com/dasniko/keycloak-2fa-sms-authenticator

there's even a video
https://youtu.be/GQi19817fFk

答案3

得分: 0

我相信这需要在Keycloak中成为一个自定义认证SPI

有一些很好的示例似乎可以解决您的问题。如果keycloak-sms-authenticator不能满足您的目的,那么您可以查看源代码并根据您的需要进行调整。

英文:

I believe this needs to be a custom authentication SPI in Keycloak.

There are a couple of nice examples that seem to solve your problem. In case keycloak-sms-authenticator doesn't solve your purpose, then you can take a look at the source code and tweak it according to your need.

huangapple
  • 本文由 发表于 2020年7月30日 03:23:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/63161013.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定