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



commit b4bc5d4583a20f3ddbea083306896180e22ef538
Author: Stuart Langridge <stuart langridge canonical com>
Date:   Fri Jun 5 11:17:43 2009 +0100

    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(-)
---
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



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