# MFA **Repository Path**: donghfcn/MFA ## Basic Information - **Project Name**: MFA - **Description**: Google Authenticator demo MFA demo - **Primary Language**: Java - **License**: MPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 4 - **Created**: 2022-02-28 - **Last Updated**: 2022-02-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### Java 集成 Google Authenticator 示例 ![软件示例](https://images.gitee.com/uploads/images/2021/1011/094628_2d72ba03_1450539.jpeg "demo.jpeg") #### MFA 集成示例 客户端需要 | ios 下载 | https://apps.apple.com/cn/app/google-authenticator/id388497605 | |---|---| | 安卓下载 | 请自行百度,应用市场太乱了,推荐使用微信小程序 | #### 程序安装启动 `git clone https://gitee.com/haobo56/MFA.git` `cd MFA` `mvn clean package` `java -jar target/google-authenticator-integration-1.0.0.jar` 看见启动成功信息后,会有对应的访问url输出,直接测试即可 #### 测试流程 ##### 接口说明 1. http://localhost:8080 直接访问,会使用默认秘钥生成各时间检点对应的totpCode 2. http://localhost:8080/qr_code 直接访问,可以生成手机软件要扫的二维码 3. http://localhost:8080/bind_verification?totpCode=软件上的数字 //账号和秘钥绑定时的接口 4. http://localhost:8080/login?totpCode=软件上的数字 //登录示例接口