# google-auth(二次身份验证器) **Repository Path**: caoweiwei/google-auth ## Basic Information - **Project Name**: google-auth(二次身份验证器) - **Description**: SpringBoot 整合谷歌身份验证器实现两步认证 - **Primary Language**: Java - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 21 - **Created**: 2023-04-15 - **Last Updated**: 2023-04-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # google-auth #### 介绍 Springboot 整合谷歌身份验证器实现两步认证 ### 目录说明 - google-apk ``` google官方提供的apk ``` - google-auth-admin ``` 服务后台,提供生成秘钥、生成二维码、生成验证码、校验验证码等接口 ``` - google-auth-app ``` 根据官方app自己写的一套基于uni-app的App,方便用于业务扩展 ``` #### 使用说明 提供了两种绑定方式: 1. 密钥绑定 ``` http://localhost:8080/google-auth/getSecretKey ``` 获取密钥后,打开谷歌身份验证器输入账户名,密钥完成绑定 2. 扫码绑定 ``` http://localhost:8080/google-auth/getQrcode?name=xxxx ``` 获取二维码后,打开谷歌身份验证器扫描二维码完成绑定 3. 获取验证码 ``` http://localhost:8080/google-auth/getCode ``` 4. 验证 ``` http://localhost:8080/google-auth/checkCode?code=xxxxxx ``` 返回 success 则表示成功,返回 error 则表示失败 #### 谷歌身份验证器APP下载 ``` http://d7.xiaotongqq.com/googe.apk ```