Skip to content

Instantly share code, notes, and snippets.

@idan
Created March 11, 2009 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idan/77592 to your computer and use it in GitHub Desktop.
Save idan/77592 to your computer and use it in GitHub Desktop.
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