aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/api/oauth.rst
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-08-15 10:34:20 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-08-15 10:34:20 -0500
commit4834ef8ec21e985290f5e0015ae9452070956170 (patch)
tree365b6043f4a18a40a01d5aa13700ab98ee031613 /docs/source/api/oauth.rst
parent29cd702e4776811a96c3c088bd9ba8fc6f9176f0 (diff)
parent89909bd6921efb4ec3296c908c5d57eba35ebd21 (diff)
downloadmediagoblin-4834ef8ec21e985290f5e0015ae9452070956170.tar.lz
mediagoblin-4834ef8ec21e985290f5e0015ae9452070956170.tar.xz
mediagoblin-4834ef8ec21e985290f5e0015ae9452070956170.zip
Merge remote-tracking branch 'refs/remotes/tsyesika/master'
New oauth tools! Heck yeah!
Diffstat (limited to 'docs/source/api/oauth.rst')
-rw-r--r--docs/source/api/oauth.rst36
1 files changed, 36 insertions, 0 deletions
diff --git a/docs/source/api/oauth.rst b/docs/source/api/oauth.rst
new file mode 100644
index 00000000..003ad492
--- /dev/null
+++ b/docs/source/api/oauth.rst
@@ -0,0 +1,36 @@
+.. MediaGoblin Documentation
+
+ Written in 2011, 2012 by MediaGoblin contributors
+
+ To the extent possible under law, the author(s) have dedicated all
+ copyright and related and neighboring rights to this software to
+ the public domain worldwide. This software is distributed without
+ any warranty.
+
+ You should have received a copy of the CC0 Public Domain
+ Dedication along with this software. If not, see
+ <http://creativecommons.org/publicdomain/zero/1.0/>.
+
+==============
+Authentication
+==============
+
+GNU MediaGoblin uses OAuth1 to authenticate requests to the API. There are many
+libraries out there for OAuth1, you're likely not going to have to do much. There
+is a library for the GNU MediaGoblin called `PyPump <https://github.com/xray7224/PyPump>`_.
+We are not using OAuth2 as we want to stay completely compatable with GNU MediaGoblin.
+
+
+We use :doc:`client_register` to get the client ID and secret.
+
+Endpoints
+---------
+
+These are the endpoints you need to use for the oauth requests:
+
+`/oauth/request_token` is for getting the request token.
+
+`/oauth/authorize` is to send the user to to authorize your application.
+
+`/oauth/access_token` is for getting the access token to use in requests.
+