¶ SDK for Android
更新时间: 2022-03-11 11:21:01
Android App 通过 Guard 组件库接入。Guard 采用了全新的 语义化编程模型 (opens new window),可以快速构建自定义风格的认证流程。
¶ 代码地址
条目 | 说明 |
---|---|
支持版本 | Android 7.0 + |
仓库地址 | https://github.com/Authing/guard-android (opens new window) |
¶ 添加依赖
implementation 'cn.authing:guard:+'
¶ 初始化
在应用启动时调用:
Authing.init(appContext, "your_authing_app_id");
¶ 私有化部署
私有化部署的场景,在初始化之前,需要先调用:
Authing.setOnPremiseInfo(String host, String publicKey)
- host 是私有化域名,如:mycompany.com
- publicKey 是私有化版本的公钥
如果不清楚上述配置,请联系 Authing 售后。
¶ 模块列表
本文是否有解决您的问题?
如果遇到其他问题,你可以在 authing-chat/community 联系我们。