Giter Site home page Giter Site logo

Comments (10)

cys85 avatar cys85 commented on August 23, 2024

我在真机上进行了测试, 同样的问题。

from aliyun-oss-react-native.

luozhang002 avatar luozhang002 commented on August 23, 2024

@cys85 其实这个底层接口调用的也是安卓iOSSDK底层的,实际上这个直接传明文的AK SK的接口已经置为废弃,建议使用STS。后期JS 端也会慢慢把这个接口废弃的.事实上android端这边的代码我的逻辑还是有点问题,因为当时考虑到直接传入AK SK的方式不支持我就没动, 我这边也可以改一发的,以后我的文档上会建议不使用这个授权api,移动端应用来说明文不安全

from aliyun-oss-react-native.

cys85 avatar cys85 commented on August 23, 2024

@luozhang002 是的, 我这边看到了, 我已经改为了 STS, 实测 好用, 已经通过了, 非常感谢。

from aliyun-oss-react-native.

luozhang002 avatar luozhang002 commented on August 23, 2024

@cys85 因为处于alpha阶段,目前官网还没正式挂,后期修复用户反馈的问题后,会慢慢的发正式版本,同时文档也会同步到阿里云官网

from aliyun-oss-react-native.

luozhang002 avatar luozhang002 commented on August 23, 2024

@cys85 虽然我们不建议使用initWithPlainTextAccessKey接口授权,但是你本地测试也是OK的, 你提的这个问题也已经修复,版本1.0.0-alpha.6,有问题也欢迎加入项目开发

from aliyun-oss-react-native.

cys85 avatar cys85 commented on August 23, 2024

@luozhang002 非常感谢

from aliyun-oss-react-native.

cys85 avatar cys85 commented on August 23, 2024

@luozhang002
AliyunOSS.initWithSecurityToken(signature, accessKey, endPoint, configuration);
这里面的参数 ‘signature’ 是个对象还是字符串呢,里面是不是包含了 securityToken、accessKeyId、accessKeySecret、expiration

from aliyun-oss-react-native.

cys85 avatar cys85 commented on August 23, 2024

@luozhang002
我看了源码, 发现 initWithSecurityToken 参数 与文档中所描述的不一致, 正确的参数如下:
AliyunOSS.initWithSecurityToken(securityToken, accessKeyId, accessKeySecret, endPoint, configuration);

from aliyun-oss-react-native.

luozhang002 avatar luozhang002 commented on August 23, 2024

@cys85 正确的是这种AliyunOSS.initWithSecurityToken(securityToken, accessKeyId, accessKeySecret, endPoint, configuration); 文档我这边需要修改下的。感谢反馈

from aliyun-oss-react-native.

luozhang002 avatar luozhang002 commented on August 23, 2024

@cys85 文档已更新

from aliyun-oss-react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.