huayi_fution_auth 0.0.21 copy "huayi_fution_auth: ^0.0.21" to clipboard
huayi_fution_auth: ^0.0.21 copied to clipboard

This is a plug-in for one click login in the alicloud fusion authentication service. Alibaba cloud is also used in the one click login function 未完成

huayi_fution_auth #

A aliyun funsion auth project.

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

插件名称 #

huayi_fusion_auth是基于阿里云号码认证服务中融合认证SDK的Flutter插件 请注意如遇问题请先下载源码跑DEMO,如果还是有问题,请提issues, 本插件集成alibaba

插件版本 #

platform support version
Android YES V1.0.8
Ios YES V1.0.8

集成步骤 #

  • 1、集成阿里云SDK到客户端中,初始化并调用阿里云SDK。
  • 2、对接阿里云API接口 GetFusionAuthToken -> 融合认证获取鉴权Token,下发至客户端后传入SDK进行鉴权。
  • 3、唤起场景授权页面,部分场景需要用户授权(同意隐私协议、获取短信验证码等)。
  • 4、用户授权后,从SDK回调接口获取到换号Token后, 上传到开发者的服务器
  • 5、对接阿里云的服务端API接口 VerifyWithFusionAuthToken -> 融合认证获取认证结果,将Token转换为用户的手机号。

最佳实践 #

准备工作 #

注意事项 #

  • 关于授权页面唤起成功后点击事件穿透问题,本插件提供的方案是在唤起页面后通过添加蒙层已实现点击事件的隔离,具体实现请参考DEMO, 格式如下:

    Stack(
       children: [
         ..........
         isCurrentLogin ? Positioned(
           top: 0,
           right: 0,
           bottom: 0,
           left: 0,
           child: Container( color: Colors.transparent ),
         ) : Container(),
       ]
     )
    
0
likes
135
points
46
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

This is a plug-in for one click login in the alicloud fusion authentication service. Alibaba cloud is also used in the one click login function 未完成

Homepage

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, json_annotation, plugin_platform_interface

More

Packages that depend on huayi_fution_auth