[Osr-101] rev 25085 - public/osr-101/trunk

michi at wyona.com michi at wyona.com
Wed Jun 13 11:21:29 CEST 2007


Author: michi
Date: 2007-06-13 11:21:28 +0200 (Wed, 13 Jun 2007)
New Revision: 25085

Modified:
   public/osr-101/trunk/draft-neutron-protocol-v0.xml
Log:
authentication failed response added

Modified: public/osr-101/trunk/draft-neutron-protocol-v0.xml
===================================================================
--- public/osr-101/trunk/draft-neutron-protocol-v0.xml	2007-06-13 08:58:33 UTC (rev 25084)
+++ public/osr-101/trunk/draft-neutron-protocol-v0.xml	2007-06-13 09:21:28 UTC (rev 25085)
@@ -336,8 +336,28 @@
 
       <t>(Please note that the above POST request by the client would actually be encrypted since https/SSL is being used, but for illustration plain text is displayed)</t>
 
-      <t>Server Response: HTTP/1.1 200 OK..</t>
+      <t>Server Response: HTTP/1.1 200 OK.. or Server Response: HTTP/1.1 401 Unauthorized which gives a response body like</t>
+      <figure>
+        <artwork>
+&lt;?xml version="1.0"?>
 
+&lt;exception xmlns="http://www.wyona.org/neutron/1.0" type="authentication">
+  &lt;message>Authentication failed!&lt;/message>
+  &lt;authentication>
+    &lt;original-request url="http://demo.yulup.org:80/editable-page-with-locking.xhtml?yanel.resource.usecase=checkout"/>
+    &lt;login url="http://demo.yulup.org:80/editable-page-with-locking.xhtml?yanel.resource.usecase=checkout&amp;yanel.usecase=neutron-auth" method="POST">
+      &lt;form>
+        &lt;message>Enter username and password for "Yulup Demo" at "/demo/"&lt;/message>
+        &lt;param description="Username" name="username"/>
+        &lt;param description="Password" name="password"/>
+      &lt;/form>
+    &lt;/login>
+    &lt;logout url="http://demo.yulup.org:80/editable-page-with-locking.xhtml?yanel.resource.usecase=checkout&amp;yanel.usecase=logout" realm="Yulup Demo"/>
+  &lt;/authentication>
+&lt;/exception>
+        </artwork>
+      </figure>
+
       <t>Client Request: GET https://foo.bar/protected.xhtml</t>
 
       <section title="Checkout">




More information about the Osr-101 mailing list