Example application for login with GitHub by GitHub-Flask
Switch branches/tags
Nothing to show
Clone or download
Latest commit f02bbf2 Aug 23, 2018
Permalink
Failed to load latest commit information.
static Move project from helloflask Jul 19, 2018
templates Fix GitHub url again Aug 12, 2018
.flaskenv Move project from helloflask Jul 19, 2018
.gitignore Move project from helloflask Jul 19, 2018
LICENSE Initial commit Jul 19, 2018
Pipfile Add pipfile Jul 19, 2018
README.md Fix typo Aug 23, 2018
app.py Move project from helloflask Jul 19, 2018

README.md

GitHub-Login

Example application for login with GitHub by GitHub-Flask

Online Demo

https://helloflask.pythonanywhere.com

Installation

$ git clone https://github.com/helloflask/github-login
$ cd github-login

Register Your OAuth Application on GitHub

Go to https://github.com/settings/applications/new

Fill the form, then you will get your Client ID and Client Secret, write them into app.py:

app.config['GITHUB_CLIENT_ID'] = 'your_client_id'
app.config['GITHUB_CLIENT_SECRET'] = 'your_clent_secret'

Warning: You normally need to save this values as enviroment variable in production.

Run

Just excute:

$ flask run

Then go to http://localhost:5000

For Readers of Hello, Flask!

这个示例程序的介绍文章为《使用GitHub-Flask实现GitHub第三方登录》