You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,31 @@
2
2
3
3
This library was born out of pain while using the existing python oauth libraries. It simply makes some helper classes to reduce the mistakes that are made with using the existing library.
4
4
5
-
Here is how to do 3-legged OAuth in Google App Engine.
5
+
# 3 Methods to care about
6
+
7
+
## def start():
8
+
9
+
Starts the process with your provider. @return (user, url). Give the `user.get_key()` string as a cookie, and redirect them to the url.
10
+
11
+
## def verify(user, token, verifier):
12
+
13
+
Verifies the user authorized your correctly. The parameters are
14
+
* user - The `user.get_key()` from the `start()` method
15
+
* token - The GET parameter `oauth_token`
16
+
* verifier - The GET parameter `oauth_verifier`
17
+
18
+
## def fetch(url, user):
19
+
20
+
Does an oauth authenticated fetch. @return a file-like object from `urllib2.urlopen()`. The paremters
21
+
22
+
* url - The remote url to request
23
+
* user - The `user.get_key()` from the `start()` method
0 commit comments