[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>
+<?xml version="1.0"?>
+<exception xmlns="http://www.wyona.org/neutron/1.0" type="authentication">
+ <message>Authentication failed!</message>
+ <authentication>
+ <original-request url="http://demo.yulup.org:80/editable-page-with-locking.xhtml?yanel.resource.usecase=checkout"/>
+ <login url="http://demo.yulup.org:80/editable-page-with-locking.xhtml?yanel.resource.usecase=checkout&yanel.usecase=neutron-auth" method="POST">
+ <form>
+ <message>Enter username and password for "Yulup Demo" at "/demo/"</message>
+ <param description="Username" name="username"/>
+ <param description="Password" name="password"/>
+ </form>
+ </login>
+ <logout url="http://demo.yulup.org:80/editable-page-with-locking.xhtml?yanel.resource.usecase=checkout&yanel.usecase=logout" realm="Yulup Demo"/>
+ </authentication>
+</exception>
+ </artwork>
+ </figure>
+
<t>Client Request: GET https://foo.bar/protected.xhtml</t>
<section title="Checkout">
More information about the Osr-101
mailing list