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

网页授权$auth->authorize() 后还需要保存access_token吗? #53

Closed
iScript opened this issue Jul 1, 2015 · 5 comments
Closed

Comments

@iScript
Copy link

iScript commented Jul 1, 2015

如果 Session 中没有登录信息,则跳转到授权页并获取用户信息($auth->authorize() 一个方法全搞定)

文档上写着一个方法全搞定,这样自己还需要保存access_token或session吗?

@overtrue
Copy link
Collaborator

overtrue commented Jul 1, 2015

@overtrue overtrue closed this as completed Jul 1, 2015
@iScript
Copy link
Author

iScript commented Jul 2, 2015

不是, 我的意思是用户信息我保存了,但wiki上说不保存assess_token. 当独立用户访问大于2000的时候,是不是也会出错。 尽管用户信息保存在session了。

@overtrue
Copy link
Collaborator

overtrue commented Jul 2, 2015

我是说我没有保存,你需要保存(assess_token)啊。。。

@iScript
Copy link
Author

iScript commented Jul 2, 2015

自己保存token, $auth->authorize() 这个方法是不是不好用了。因为该方法没有token参数。
需要自己将token保存在缓存中,然后用这个方法?$auth->getUser($openId, $accessToken);

@overtrue
Copy link
Collaborator

overtrue commented Jul 2, 2015

“ $auth->authorize() 这个方法是不是不好用了” 不是不好用了,这只是一个简写方法。。。

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

2 participants