Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions chapter_9/oauth1-python-3legged/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def main():
oauth_token_secret = token_params['oauth_token_secret'][0]

#generate cookie with request token key and secret to pass through authorization process
cookie = Cookie.Cookie()
cookie = Cookie.SimpleCookie()
cookie_token = 'token=%s&token_secret=%s' % (oauth_token, oauth_token_secret)
cookie['request_token'] = cookie_token
cookie['timestamp'] = time.time()
Expand All @@ -39,4 +39,4 @@ def main():
print "Location: %s?oauth_token=%s" % (common.authorize_endpoint, oauth_token)

if __name__ == '__main__':
main()
main()