Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小程序企业微信专有接口wx.qy.login临时登录凭证校验有提供实现吗? #997

Closed
CuriousRookie opened this issue Apr 9, 2019 · 5 comments

Comments

@CuriousRookie
Copy link

CuriousRookie commented Apr 9, 2019

接口文档地址
https://work.weixin.qq.com/api/doc#90000/90136/90289/%E7%99%BB%E5%BD%95%E5%87%AD%E8%AF%81%E6%A0%A1%E9%AA%8C
这个接口是通过企业access_token获取的

@binarywang
Copy link
Owner

你这个看起来像是个前端接口吧?

@CuriousRookie
Copy link
Author

CuriousRookie commented Apr 9, 2019

你这个看起来像是个前端接口吧?

不是的,和普通微信小程序类似,小程序端调用wx.qy.login拿到code传到后台,后台使用code请求
https://qyapi.weixin.qq.com/cgi-bin/miniprogram/jscode2session?access_token=ACCESS_TOKEN&js_code=CODE&grant_type=authorization_code
这个地址获取用户userid、corpid、session_key等,但是这个请求参数里的ACCESS_TOKEN是使用企业微信的corpid和corpsecret获取

@binarywang
Copy link
Owner

那你就是标题写的有问题,其实应该后端实现“登录凭证校验”这个接口?

@CuriousRookie
Copy link
Author

那你就是标题写的有问题,其实应该后端实现“登录凭证校验”这个接口?

......我改一下

@CuriousRookie CuriousRookie changed the title 企业微信模块有提供小程序的wx.qy.login登录实现吗? 企业微信模块有提供小程序企业微信专有接口wx.qy.login临时登录凭证校验实现吗? Apr 9, 2019
@CuriousRookie CuriousRookie changed the title 企业微信模块有提供小程序企业微信专有接口wx.qy.login临时登录凭证校验实现吗? 小程序企业微信专有接口wx.qy.login临时登录凭证校验有提供实现吗? Apr 9, 2019
@binarywang
Copy link
Owner

3.3.8.B测试版本 已加入该接口

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants