Skip to main content

Flask Extension for wechat oauth2.0.

Project description

使用方式:

wx_oauth = WXOAuth()
wx_oauth.init_app(app)

配置 WX_APPID 和 WX_SECRET

在view中调用:

next = request.args.get('next', '/')
redirect_uri = url_for('.authorized', next=next, _external=True)
params = {
    'redirect_uri': redirect_uri,
    'scope': 'snsapi_base',
}
return redirect(wx_oauth.get_authorize_url(**params))

Project details


Release history Release notifications

This version
History Node

0.1.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Flask-WX-OAuth-0.1.1.tar.gz (3.4 kB) Copy SHA256 hash SHA256 Source None Apr 21, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page