Home > Backend Development > PHP Tutorial > javascript - WeChat, QQ, Weibo third-party login, how to cancel authorization after logging out?

javascript - WeChat, QQ, Weibo third-party login, how to cancel authorization after logging out?

WBOY
Release: 2016-08-04 09:22:00
Original
3106 people have browsed it

WeChat, QQ, Weibo third-party login, how to cancel authorization after logging out?

Reply content:

WeChat, QQ, Weibo third-party login, how to cancel authorization after logging out?

Web page authorization? It seems that third-party authorization does not include cancellation of authorization. Generally, we make our own cancellation logic, such as WeChat authorization. If the authorization is canceled, a record will be made for the openid. When encountering the openid again, we will use scope=user_info to pop up the authorization. page.

First of all, the client cannot cancel third-party authorization. For example, if you log in to your application with qq, but if you want to cancel the authorization, you can only cancel the authorization for your application in qqauthorization management,

After third-party login, a unique identification ID will generally be returned. Your application uses this ID to associate the user and save the user name, avatar and other information. If you want to cancel the authorization, just delete the record. However, the qq authorization center still retains the authorization for your application.

Such as qq authorization management center

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template