App调用微信登录,AppSecret放哪?

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:21 1126 0 全屏看文

AI助手支持GPT4.0

App调用微信登录,AppSecret放哪?

之前产品只有小程序,现在需要开发app,并接入微信登录,看了官方的文档, 所交互都是app和微信服务器之间的,没有自己的后端参与。

之前小程序开发时,小程序值提供一个code,所有交互都是后端和微信服务器。怎么app端是app直接和微信交互?

就连access_token也是app自己获取,这样不会造成多个设备上的access_token冲突吗?还是说app登录的access_token和小程序的access_token不一样只能在当前app上使用?

另外AppSecret放不会有安全问题吗?


In the past, there were only small programs in the product. Now we need to develop an app and log in via wechat. After reading the official documents, all the interactions are between the app and the wechat server, without the participation of its own back-end. Before the development of the applet, the applet value provides a code, and all interactions are back-end and wechat server. How can app interact with wechat directly on the app side? Even access_ The token is also obtained by the app itself, which will not cause access on multiple devices_ Does token conflict? Or access for app login_ Token and access of small program_ Different token can only be used on the current app? In addition, will there be no security problems with appsecret?

回答:

微喵网络:

通过后端调用接口

寻己:

token是根据你的微信返回的,AppSecret可以让后台返回

-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
使用微信支付API v3 Postman脚本报错误的签名,验签失败
企业微信防骚扰怎么没有踢发图片的?
老是提示"你所提供的应用内容与所选类目不符",但是又没有符合的类目让我选,社交类的应该选择哪个?
小程序游戏BUG?
分享网页到朋友圈为什么没有标题图片?
随便看看
小程序测试号解绑之后,扫一扫小程序登录又回来了 2101
微信公众号openid? 2347
微信开放平台跟公众平台有什么区别? 3607
怎么添加小程序支付功能? 4516
教育科技公司申请微信支付被拒绝? 4798
微信公众号免300认证教程 5892
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 5299
小程序广告组件通过审核,但是小程序内没有显示广告? 5067
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9047