Skip to content

Instantly share code, notes, and snippets.

@reaneyk
Created September 18, 2012 16:47
Show Gist options
  • Save reaneyk/3744228 to your computer and use it in GitHub Desktop.
Save reaneyk/3744228 to your computer and use it in GitHub Desktop.
oauth2app update
--- authorize.py.orig 2012-09-18 09:45:28.150774353 -0700
+++ authorize.py 2012-09-18 09:45:54.117029452 -0700
@@ -310,7 +310,7 @@ class Authorizer(object):
fragments["token_type"] = "bearer"
access_token.save()
if self.state is not None:
- parameters['state'] = self.state
+ fragments['state'] = self.state
redirect_uri = add_parameters(self.redirect_uri, parameters)
redirect_uri = add_fragments(redirect_uri, fragments)
return HttpResponseRedirect(redirect_uri)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment