[Osr-101] rev 20874 - public/osr-101/trunk
michi at wyona.com
michi at wyona.com
Fri Dec 15 00:09:11 CET 2006
Author: michi
Date: 2006-12-15 00:09:10 +0100 (Fri, 15 Dec 2006)
New Revision: 20874
Modified:
public/osr-101/trunk/draft-neutron-protocol-v0.xml
Log:
authentication clarified
Modified: public/osr-101/trunk/draft-neutron-protocol-v0.xml
===================================================================
--- public/osr-101/trunk/draft-neutron-protocol-v0.xml 2006-12-14 22:00:44 UTC (rev 20873)
+++ public/osr-101/trunk/draft-neutron-protocol-v0.xml 2006-12-14 23:09:10 UTC (rev 20874)
@@ -261,28 +261,40 @@
<t>The second element is defined by the exception type (for details, see the various exception types below).</t>
<section title="Authentication">
<t>Note that this section is basically the specification of Neutron-Auth, a separate protocol which allows the authentication of clients using arbitrary inputs.</t>
- <t>Server response upon a client request which requires authentication:</t>
+
+ <t>A client supporting Neutron-Auth should always add "WWW-Authenticate: Neutron-Auth" to the HTTP header (beside the version of Neutron, e.g. Neutron: 1.0-dev) such that a server can respond accordingly.</t>
+
+ <t>An example of a client-server coversation is as follows:</t>
+
+ <t>Client Request: GET http://foo.bar/protected.xhtml HTTP/1.1..WWW-Authenticate: Neutron-Auth..Neutron: 1.0-dev..</t>
+
+ <t>Server Response: HTTP/1.1 301 (or 307) https://foo.bar/protected.xhtml</t>
+
+ <t>Client Request: GET https://foo.bar/protected.xhtml HTTP/1.1..WWW-Authenticate: Neutron-Auth..Neutron: 1.0-dev..</t>
+
+ <t>Server Response: HTTP/1.1 401 Unauthorized..</t>
<figure>
<artwork>
<?xml version="1.0"?>
<exception xmlns="http://www.wyona.org/neutron/1.0" type="authorization">
- <message>Authorization denied for "URL" ...</message>
+ <message>Authorization denied for https://foo.bar/protected.xhtml ...</message>
<authentication>
- <login url="https://demo.phoenix.wyona.org/protected/?action=login-neutron">
- <message>Login for realm 'phoenix-demo' ...</message>
+ <login url="https://foo.bar/protected.xhtml?action=login-neutron">
+ <message>Login for realm 'Foo Bar' ...</message>
<form>
<param description="Username" name="username"/>
<param description="Password" name="passwd"/>
</form>
</login>
- <logout url="http://demo.phoenix.wyona.org/?action=logout"/>
+ <logout url="http://foo.bar/?action=logout"/>
</authentication>
</exception>
</artwork>
</figure>
- <t>New client request:</t>
+
+ <t>Client Request: POST https://foo.bar/protected.xhtml?action=login-neutron</t>
<figure>
<artwork>
<?xml version="1.0"?>
@@ -290,11 +302,16 @@
<authentication xmlns="http://www.wyona.org/neutron/1.0">
<param name="username">lenya</param>
<param name="passwd">levi</param>
+ <original-request url="https://foo.bar/protected.xhtml"/>
</authentication>
</artwork>
</figure>
</section>
+ <t>Server Response: HTTP/1.1 200 OK..</t>
+
+ <t>Client Request: GET https://foo.bar/protected.xhtml</t>
+
<section title="Checkout">
<figure>
<artwork>
More information about the Osr-101
mailing list