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

app接口后台授权问题 #46

Closed
JJS857012499 opened this issue Sep 2, 2019 · 5 comments
Closed

app接口后台授权问题 #46

JJS857012499 opened this issue Sep 2, 2019 · 5 comments

Comments

@JJS857012499
Copy link

JJS857012499 commented Sep 2, 2019

app授权后拿到的是openId,如果app这边传递过来是type和openId
后台根据type从对应第三方验证openId是否合法已经获取用户的基本信息。
是否能添加进这些功能

@zhangyd-c
Copy link
Member

已经登录过的用户,信息应该已经保存下来了,包括type和openid。 你们app传过来的openid,你不可以直接去库里查吗?

@JJS857012499
Copy link
Author

已经登录过的用户,信息应该已经保存下来了,包括type和openid。 你们app传过来的openid,你不可以直接去库里查吗?

我意思是说在是客户端集成sdk,不在后台做授权回调,客户端传递到后台是openId+type,如果是第一次,库是没有这个openId记录的,后台需要根据openId+appkey+secretKey去第三方api获取用户信息

@sendtion
Copy link

android可以使用这个库吗

@JJS857012499
Copy link
Author

android可以使用这个库吗

不建议用,这个本来是给后台用的,安卓应该用share sdk这些,毕竟secretKey等敏感信息不应该暴露在前端

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

No branches or pull requests

4 participants
@JJS857012499 @sendtion @zhangyd-c and others