Google Kaptcha
HMYDK opened this issue · comments
HMYDK commented
5.1.5如何集成google的kaptcha 期待更新
Kawhi Carl commented
@PARANOIA-ZK
谷歌的验证码将不会集成到本项目,当前还没有计划会出教程,因为国内用谷歌验证的比较少,但自定义验证码的有必要的情况下会讲
谷歌验证码教程
-
到谷歌开放平台申请appid以及秘钥
-
添加依赖
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-captcha</artifactId>
<version>${cas.version}</version>
</dependency>
- 配置
application.properties
cas.googleRecaptcha.verifyUrl=https://www.google.com/recaptcha/api/siteverify
cas.googleRecaptcha.siteKey=申请得到的siteKey
cas.googleRecaptcha.secret=申请得到的秘钥
- 打开默认主题即会显示谷歌验证码
HMYDK commented
谢谢回复