{"id":18762006,"url":"https://github.com/codegather/flutter_ali_auth","last_synced_at":"2025-04-13T04:14:02.662Z","repository":{"id":37436819,"uuid":"280063558","full_name":"CodeGather/flutter_ali_auth","owner":"CodeGather","description":"阿里云一键登录，提供接近原生的参数配置，自定义UI界面，配置效果详见实例演示图片，如果插件对你有帮助请帮忙点亮你的小星星予以支持。","archived":false,"fork":false,"pushed_at":"2025-03-12T15:02:50.000Z","size":208672,"stargazers_count":165,"open_issues_count":12,"forks_count":61,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-13T02:25:04.909Z","etag":null,"topics":["android","auth","dart","flutter","ios","java","objective-c"],"latest_commit_sha":null,"homepage":"https://pub.flutter-io.cn/packages/ali_auth","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeGather.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG-zh.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://tunderly.com","https://jokui.com"]}},"created_at":"2020-07-16T05:36:18.000Z","updated_at":"2025-04-12T16:14:29.000Z","dependencies_parsed_at":"2024-04-18T04:28:00.243Z","dependency_job_id":"6fd880a4-58fd-4b53-8c4f-79734803aa70","html_url":"https://github.com/CodeGather/flutter_ali_auth","commit_stats":{"total_commits":307,"total_committers":10,"mean_commits":30.7,"dds":0.03583061889250816,"last_synced_commit":"b3288b19a9539f43ec2780a82caf019bfa5cd986"},"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeGather%2Fflutter_ali_auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeGather%2Fflutter_ali_auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeGather%2Fflutter_ali_auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeGather%2Fflutter_ali_auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeGather","download_url":"https://codeload.github.com/CodeGather/flutter_ali_auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248661719,"owners_count":21141451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","auth","dart","flutter","ios","java","objective-c"],"created_at":"2024-11-07T18:18:42.506Z","updated_at":"2025-04-13T04:14:02.628Z","avatar_url":"https://github.com/CodeGather.png","language":"Objective-C","readme":"[![Pub](https://img.shields.io/pub/v/ali_auth.svg)](https://pub.flutter-io.cn/packages/ali_auth)\n![example workflow](https://github.com/CodeGather/flutter_ali_auth/actions/workflows/build.yml/badge.svg)\n![example workflow](https://github.com/CodeGather/flutter_ali_auth/actions/workflows/release.yml/badge.svg)\n![example workflow](https://github.com/CodeGather/flutter_ali_auth/actions/workflows/publish.yml/badge.svg)\n\n\n[![GitHub license](https://img.shields.io/github/license/CodeGather/flutter_ali_auth?style=social)](https://github.com/CodeGather/flutter_ali_auth/blob/master/LICENSE)\n[![GitHub issues](https://img.shields.io/github/issues/CodeGather/flutter_ali_auth?style=social)](https://github.com/CodeGather/flutter_ali_auth/issues)\n[![GitHub forks](https://img.shields.io/github/forks/CodeGather/flutter_ali_auth?style=social)](https://github.com/CodeGather/flutter_ali_auth/network)\n[![GitHub stars](https://img.shields.io/github/stars/CodeGather/flutter_ali_auth?style=social)](https://github.com/CodeGather/flutter_ali_auth/stargazers)\n[![GitHub size](https://img.shields.io/github/repo-size/CodeGather/flutter_ali_auth?style=social)](https://github.com/CodeGather/flutter_ali_auth)\n[![GitHub release](https://img.shields.io/github/v/release/CodeGather/flutter_ali_auth?style=social)](https://github.com/CodeGather/flutter_ali_auth/releases)\n\n## :large_blue_circle: 国际化\n\n中文文档 | [English](README_en.md)\n\n这是一个阿里云号码认证服务中的一键登录的插件\n\n由于项目的其他功能都采用阿里云的服务，在一键登录的功能上也采用阿里云利于后期的更好维护。\n本插件免费开源，高定制，如果在使用中有什么问题，欢迎反馈，如果觉得本插件还不够好可以提供您的宝贵意见，\n如果你想在自己项目中定制，请将本插件clone为本地进行修改，但是通过本插件进行修改后发布其他版本的插件也欢迎，\n但是在使用或者参考了本插件的思路或者相关内容，\n\n# 请注明出处并且链接到本插件，谢谢您的配合。  \n\n# v1.1.9版本同步更新阿里云的sdk升级，请注意升级，否则不能使用原来的密钥升级方案请参考 [升级文档](https://help.aliyun.com/zh/pnvs/product-overview/upgrade-phone-number-verification-service-sdk-standard-edition)\n\n```\n\u003c!-- 全屏时使用主题 android:theme=\"@android:style/Theme.NoTitleBar.Fullscreen\" --\u003e\n\u003c!-- 弹窗时使用主题 android:theme=\"@style/authsdk_activity_dialog\" --\u003e\n\u003c!-- 如果不需要使用窗口模式，不要使用authsdk_activity_dialog主题，会出现异常动画--\u003e\n\u003c!-- 如果需要使用authsdk_activity_dialog主题，则screenOrientation一定不能指定明确的方向，\n比如portrait、sensorPortrait，在8.0的系统上不允许窗口模式指定orientation，会发生crash，需要指定为behind，\n然后在授权页的前一个页面指定具体的orientation--\u003e\n\n\u003c!--协议页面webview--\u003e\n\u003cactivity\n    android:name=\"com.mobile.auth.gatewayauth.activity.AuthWebVeiwActivity\"\n    android:configChanges=\"orientation|keyboardHidden|screenSize\"\n    tools:replace=\"android:theme\"\n    android:exported=\"false\"\n    android:launchMode=\"singleTop\"\n    android:screenOrientation=\"behind\"\n    android:theme=\"@style/authsdk_activity_dialog\" /\u003e\n\n\u003c!--联通电信授权页--\u003e\n\u003cactivity\n    android:name=\"com.mobile.auth.gatewayauth.LoginAuthActivity\"\n    android:configChanges=\"orientation|keyboardHidden|screenSize\"\n    tools:replace=\"android:configChanges\"\n    android:exported=\"false\"\n    android:launchMode=\"singleTop\"\n    android:screenOrientation=\"behind\"\n    android:theme=\"@style/authsdk_activity_dialog\"/\u003e\n\n\u003c!--移动授权页--\u003e\n\u003cactivity\n    android:name=\"com.cmic.sso.sdk.activity.LoginAuthActivity\"\n    android:configChanges=\"orientation|keyboardHidden|screenSize\"\n    tools:replace=\"android:configChanges\"\n    android:exported=\"false\"\n    android:launchMode=\"singleTask\"\n    android:screenOrientation=\"behind\"\n    android:theme=\"@style/authsdk_activity_dialog\" /\u003e\n```\n\n## 相关支持\n\n|    平台  | 支持  |\n| :------:|:----:|\n| Android  | YES |\n| Ios      | YES |\n\n\n## 授权⻚点击事件响应码 \n\n|    响应码  | 响应码描述  |\n| :--------:|:----------:|\n| 700000    | 点击返回按钮，⽤户取消免密登录（android 物理按钮/虚拟返回按钮暂未实现）请自行使用flutter替代 |\n| 700001    | 点击切换按钮，⽤户取消免密登录 |\n| 700002    | 点击登录按钮事件 |\n| 700003    | 点击check box事件 |\n| 700004    | 点击协议富⽂本⽂字事件 |\n| 700005    | 点击点击第三方按钮事件 |\n\n## 步骤\n- 1、配置APP的签名安装于手机\n- 2、获取签名APK文件下载地址：[点击下载快速获取签名工具](https://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/attach/87870/cn_zh/1534313766610/AppSignGet.apk)\n- 3、使用签名APP获取签名\n- 4、配置appid+秘钥，阿里云后台配置签名，注意签名要和APP配置的签名一致，否则无法使用\n- [帮助文档](https://help.aliyun.com/product/75010.html)\n- [前往添加号码认证方案-获取秘钥](https://dypns.console.aliyun.com/?spm=5176.12818093.favorites.ddypns.488716d0ttKe13#/)\n- 使用秘钥初始化环境 AliAuthPlugin.initSdk()\n- [号码认证服务合规指南](https://help.aliyun.com/zh/pnvs/security-and-compliance/number-certification-service-compliance-guidelines)\n\n## 注意事项\n\n关于点击事件穿透问题\n## [参考一](https://www.jianshu.com/p/88d45977d482) [参考二](https://github.com/flutter/flutter/issues/35784)\n\n1、 针对移动闪退问题：\n在示范工程，pods -\u003e TARGETS -\u003e ali_auth -\u003e Build Settings -\u003e Linking -\u003e Other Linker Flags 里面加上 -ObjC（因为AuthSDK是通过pod依赖进去的，所有对应的target里面要加这个配置，不然移动网络会crash）\n如下图所示：  \n\u003cimg src=\"https://raw.githubusercontent.com/CodeGather/flutter_ali_auth/master/screenshots/error_add.jpg\" alt=\"cmcc_crash\" width=\"100\"\u003e\n\n2、该插件已添加ATAuthSDK.framework，在编译时请勿将ATAuthSDK.framework重复添加，以免出现未知错误\n如下图所示添加的为错误操作  \n\u003cimg src=\"https://raw.githubusercontent.com/CodeGather/flutter_ali_auth/master/screenshots/error_add.jpg\" alt=\"cmcc_crash\" width=\"110\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/CodeGather/flutter_ali_auth/master/screenshots/error_add2.png\" alt=\"cmcc_crash\" width=\"200\"\u003e\n\n## 实验安装    \n```\ndependencies:\n   ali_auth:\n      git:\n        url: https://github.com/CodeGather/flutter_ali_auth.git\n```\n\n## DEMO截图    \n  \n\u003cimg src=\"https://raw.githubusercontent.com/CodeGather/flutter_ali_auth/master/screenshots/Screenshot_20220517_123128.jpg\" width=\"100\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/CodeGather/flutter_ali_auth/master/screenshots/Screenshot_20220517_120625.jpg\" width=\"100\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/CodeGather/flutter_ali_auth/master/screenshots/Screenshot_20220517_120629.jpg\" width=\"100\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/CodeGather/flutter_ali_auth/master/screenshots/Screenshot_20220517_120634.jpg\" width=\"100\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/CodeGather/flutter_ali_auth/master/screenshots/Screenshot_20220517_120649.jpg\" width=\"100\"\u003e \n  \n## 演示\n  \n\u003cimg src=\"https://raw.githubusercontent.com/CodeGather/flutter_ali_auth/master/screenshots/SVID_20220517_120504.gif\" width=\"100\"\u003e \n\n## 如果你觉得不错欢迎打赏\n\n\u003cimg src=\"https://raw.githubusercontent.com/CodeGather/flutter_ali_auth/master/screenshots/play_al.jpg\" width=\"200\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/CodeGather/flutter_ali_auth/master/screenshots/play_wx.jpg\" width=\"222\"\u003e  \n\n## 知识星球\n### 为了不浪费大家宝贵的时间，也迫于现实的压力，如果你想获取更优质的服务欢迎加入知识星球，提供的服务远比一杯咖啡更有性价比\n\n\u003cimg src=\"https://raw.githubusercontent.com/CodeGather/flutter_ali_auth/master/screenshots/zsxq.png\" width=\"400\"\u003e  \n\n## 关注趋势\n\n[![Stargazers over time](https://starchart.cc/CodeGather/flutter_ali_auth.svg)](https://starchart.cc/CodeGather/flutter_ali_auth)\n","funding_links":["https://tunderly.com","https://jokui.com"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodegather%2Fflutter_ali_auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodegather%2Fflutter_ali_auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodegather%2Fflutter_ali_auth/lists"}