[PATCH] Add OAuth endpoints, and require OAuth for accessing api/* URLs



---
 notes/templates/notes/note_authorize_token.html |   13 +++++++++++++
 notes/templates/oauth/challenge.html            |    1 +
 2 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 notes/templates/notes/note_authorize_token.html
 create mode 100644 notes/templates/oauth/challenge.html

diff --git a/notes/templates/notes/note_authorize_token.html b/notes/templates/notes/note_authorize_token.html
new file mode 100644
index 0000000..49c5768
--- /dev/null
+++ b/notes/templates/notes/note_authorize_token.html
@@ -0,0 +1,13 @@
+{% extends 'notes/base.html' %}
+
+{% block title %}Notes | {{ block.super }}{% endblock %}
+{% block content %}
+<p>
+        <form action="{% url piston.authentication.oauth_user_auth %}" method="POST">
+            <table>
+            {{ form.as_table }}
+            </table>
+            <input type="submit">
+        </form>
+{% endblock %}
+
diff --git a/notes/templates/oauth/challenge.html b/notes/templates/oauth/challenge.html
new file mode 100644
index 0000000..71b948f
--- /dev/null
+++ b/notes/templates/oauth/challenge.html
@@ -0,0 +1 @@
+OAuth authentication required
-- 
1.6.0.4


--------------030909080107080905060704
Content-Type: text/x-patch;
 name="0001-Require-OAuth-and-patch-piston-to-do-OAuth-properly.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename*0="0001-Require-OAuth-and-patch-piston-to-do-OAuth-properly.pat";
 filename*1="ch"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]