{"id":15050862,"url":"https://github.com/codegather/fusion_auth","last_synced_at":"2026-03-01T11:31:16.386Z","repository":{"id":209589561,"uuid":"724460336","full_name":"CodeGather/fusion_auth","owner":"CodeGather","description":"Flutter阿里云号码认证的融合认证","archived":false,"fork":false,"pushed_at":"2024-06-30T12:16:15.000Z","size":57699,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T10:35:13.638Z","etag":null,"topics":["android","auth","flutter","fusion","ios","objective-c","phone","sms"],"latest_commit_sha":null,"homepage":"https://pub-web.flutter-io.cn/packages/fusion_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.md","contributing":"CONTRIBUTING.md","funding":".github/funding.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":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":"2023-11-28T05:48:35.000Z","updated_at":"2024-06-30T12:15:58.000Z","dependencies_parsed_at":"2024-04-01T09:43:04.210Z","dependency_job_id":null,"html_url":"https://github.com/CodeGather/fusion_auth","commit_stats":null,"previous_names":["codegather/fusion_auth"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeGather%2Ffusion_auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeGather%2Ffusion_auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeGather%2Ffusion_auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeGather%2Ffusion_auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeGather","download_url":"https://codeload.github.com/CodeGather/fusion_auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240266856,"owners_count":19774075,"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","flutter","fusion","ios","objective-c","phone","sms"],"created_at":"2024-09-24T21:29:32.362Z","updated_at":"2026-03-01T11:31:16.332Z","avatar_url":"https://github.com/CodeGather.png","language":"Objective-C","readme":"[![Pub](https://img.shields.io/pub/v/fusion_auth.svg)](https://pub.flutter-io.cn/packages/fusion_auth)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/CodeGather/fusion_auth/publish.yml)\n\n\n[![GitHub license](https://img.shields.io/github/license/CodeGather/fusion_auth?style=social)](https://github.com/CodeGather/fusion_auth/blob/master/LICENSE)\n[![GitHub issues](https://img.shields.io/github/issues/CodeGather/fusion_auth?style=social)](https://github.com/CodeGather/fusion_auth/issues)\n[![GitHub forks](https://img.shields.io/github/forks/CodeGather/fusion_auth?style=social)](https://github.com/CodeGather/fusion_auth/network)\n[![GitHub stars](https://img.shields.io/github/stars/CodeGather/fusion_auth?style=social)](https://github.com/CodeGather/fusion_auth/stargazers)\n[![GitHub size](https://img.shields.io/github/repo-size/CodeGather/fusion_auth?style=social)](https://github.com/CodeGather/fusion_auth)\n[![GitHub release](https://img.shields.io/github/v/release/CodeGather/fusion_auth?style=social)](https://github.com/CodeGather/fusion_auth/releases)\n\n## 目录\n* [插件名称](#插件名称)\n* [插件版本](#插件版本)\n* [效果图](#效果图)\n    * [IOS](#IOS)\n    * [Android](#Android)\n* [集成步骤](#集成步骤)\n* [最佳实践](#最佳实践)\n* [准备工作](#准备工作)\n* [插件使用](#插件使用)\n    * [添加监听](#1-添加监听)\n    * [初始化SDK配置密钥与UI](#2初始化sdk-initsdk)\n    * [检查环境](#3一键登录获取token-login)\n    * [预取号](#4检查认证环境-checkverifyenable)\n    * [调起授权页面，获取Token](#5一键登录预取号-accelerateloginpage)\n* [注意事项](#注意事项)\n* [打赏-技术支持](#打赏-技术支持)\n* [成长历程](#成长历程)\n\n\n## 插件名称\n\nFusion_auth是基于阿里云号码认证服务中融合认证SDK的Flutter插件 **请注意如遇问题请先下载源码跑DEMO，如果还是有问题，请提issues**, 本插件集成alibaba\n\n## 插件版本\n\n| platform | support |                                          version                                          |\n|:--------:|:-------:|:-----------------------------------------------------------------------------------------:|\n| Android  |   YES   | [V1.0.8](https://help.aliyun.com/zh/pnvs/developer-reference/the-android-client-access-3) |\n|   Ios    |   YES   |   [V1.0.8](https://help.aliyun.com/zh/pnvs/developer-reference/the-ios-client-access-3)   |\n\n## 效果图\n\n### IOS\n\n| 全屏                      | 底部弹窗               | 中间弹窗                   |\n|-------------------------|--------------------|------------------------|\n| ![]( \"full_screen_ios\") | ![]( \"dialog_ios\") | ![]( \"bottomShot_ios\") |\n\n### Android\n\n| 全屏                          | 底部弹窗                   | 中间弹窗                       |\n|-----------------------------|------------------------|----------------------------|\n| ![]( \"full_screen_android\") | ![]( \"dialog_android\") | ![]( \"bottomShot_android\") |\n\n## 集成步骤\n\n  - 1、集成阿里云SDK到客户端中，初始化并调用阿里云SDK。\n  - 2、对接阿里云API接口 [GetFusionAuthToken](https://help.aliyun.com/zh/pnvs/developer-reference/api-dypnsapi-2017-05-25-getfusionauthtoken) -\u003e 融合认证获取鉴权Token，下发至客户端后传入SDK进行鉴权。\n  - 3、唤起场景授权页面，部分场景需要用户授权（同意隐私协议、获取短信验证码等）。\n  - 4、用户授权后，从SDK回调接口获取到换号Token后, 上传到开发者的服务器\n  - 5、对接阿里云的服务端API接口 [VerifyWithFusionAuthToken](https://help.aliyun.com/document_detail/2384478.html) -\u003e 融合认证获取认证结果，将Token转换为用户的手机号。\n\n## 最佳实践\n - [最佳实践](https://help.aliyun.com/zh/pnvs/use-cases/best-practices-for-user-authentication)\n\n## 准备工作\n\n - 请登录阿里云控制台 [号码认证服务-\u003e融合认证](https://dypns.console.aliyun.com/fusionSolution/All)\n - 开通融合认证服务\n - 创建认证方案 分别添IOS和Android的认证方案，分别获取到方案Code。\n   - IOS只需要输入绑定`Bundle name`即可，\n   - Android则需要包名和和签名。[如何获取App的签名](https://help.aliyun.com/document_detail/87870.html) \n - 添加短信模版、签名 (** 注意如果认证策略没有添加短信可以不添加 **)\n   - [添加短信签名](https://dysms.console.aliyun.com/domestic/text/sign/add) \n   - [添加短信模版](https://dysms.console.aliyun.com/domestic/text/template/add) \n\n## 插件使用\n\n## 注意事项\n\n - 关于授权页面唤起成功后点击事件穿透问题，本插件提供的方案是在唤起页面后通过添加蒙层已实现点击事件的隔离，具体实现请参考DEMO, 格式如下：\n\n   ``` dart\n   Stack(\n      children: [\n        ..........\n        isCurrentLogin ? Positioned(\n          top: 0,\n          right: 0,\n          bottom: 0,\n          left: 0,\n          child: Container( color: Colors.transparent ),\n        ) : Container(),\n      ]\n    )\n    ``` \n\n## 打赏-技术支持\n| Wechat                                                                                        | Alipay                                                                                        |\n|-----------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|\n| ![](https://github.com/CodeGather/fusion_auth/blob/master/screenshots/play_wechat.png \"Wechat\") | ![](https://github.com/CodeGather/fusion_auth/blob/master/screenshots/play_alipay.png \"Alipay\") |\n\n## 知识星球\n### 为了不浪费大家宝贵的时间，也迫于现实的压力，如果你想获取更优质的服务欢迎加入知识星球，提供的服务远比一杯咖啡更有性价比\n\n\u003cimg src=\"https://raw.githubusercontent.com/CodeGather/fusion_auth/master/screenshots/zsxq.png\" width=\"400\"\u003e  \n\n## 成长历程\n[![Stargazers over time](https://starchart.cc/CodeGather/fusion_auth.svg)](https://starchart.cc/CodeGather/fusion_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%2Ffusion_auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodegather%2Ffusion_auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodegather%2Ffusion_auth/lists"}