Created
March 11, 2009 17:27
-
-
Save idan/77592 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def auth_return(request): | |
# this is the view which google returns the browser to after getting an authsub token | |
token = request.REQUEST['token'] | |
request.session['token'] = token | |
return HttpResponseRedirect('/someotherview/') | |
def some_other_view(request): | |
token = session['token'] | |
# .. use the token |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment