Skip to content

zhengquantao/ProxyLogin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

ProxyLogin PyPI version

A project for Third party login

目前只支持 腾讯QQ,微信,微博 第三方登录

安装

$ pip install AgentLogin

QQ登录

  from AgentLogin import AgentLogin

  qq_url = AgentLogin.qq_url(client_id, redirect_uri)

  # 把这个qq_url链接放到你的html页面上 <a href="{{ qq_url }}">QQ登录<a>

  (user, user_id) = AgentLogin.qq(client_id, client_secret, redirect_uri, code)

参数

  • code: 用户授权登录回调参数code
  • client_id:腾讯开放平台上app的APPID名
  • client_secret: 腾讯开放平台上app的secret名
  • redirect_uri: 腾讯开放平台上app的回调url
  • user: 返回qq的用户名
  • user_id: 服务器返回的唯一用户ID

有使用AgentLogin的项目:http://120.78.176.77, http://101.132.132.181:8080

如有疑问不会使用 请联系作者:1483906080@qq.com

About

My project for Third party login

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages