Skip to content

Instantly share code, notes, and snippets.

@toughrogrammer
Last active June 11, 2016 05:03
Show Gist options
  • Select an option

  • Save toughrogrammer/4d2a16c4004b28964130257199343aa9 to your computer and use it in GitHub Desktop.

Select an option

Save toughrogrammer/4d2a16c4004b28964130257199343aa9 to your computer and use it in GitHub Desktop.
def get_oauth_req_url():
params = {
'client_id': app.config.get('OAUTH_CLIENT_ID'),
'response_type': 'code',
'scope': 'god',
'next': urlparse(request.url).path
}
return "{0}/oauth/authorize?{1}".format(app.config.get('OAUTH_SERVER'), urlencode(params))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment