https://github.com/settings/applications
2. 在 Authorization callback URL 填入授權成功後要返回的網址
github = OAuth2Service(name='github',
authorize_url='https://github.com/login/oauth/authorize',
access_token_url='https://github.com/login/oauth/access_token',
client_id=CLIENT_ID,
client_secret=CLIENT_SECRET,
base_url='https://api.github.com/',
)
沒有留言:
張貼留言