W3C home > Mailing lists > Public > public-xg-webid@w3.org > November 2011

new sequence diagram

From: Henry Story <henry.story@bblfish.net>
Date: Sun, 20 Nov 2011 14:04:28 +0100
Message-Id: <DA851C61-C807-4FEA-821D-5C49AD8D90A7@bblfish.net>
Cc: foaf-protocols@lists.foaf-project.org
To: WebID Incubator Group WG <public-xg-webid@w3.org>
Peter Williams had some criticism about the sequence diagram, which it is true whilst being simple is perhaps merging too many things together.

So I propose the following much more precise diagram. I plan to also create a state diagram that would show interactions 
more clearly. Here we are looking at a request that succeeds.

1. We set up a TLS session. The server authenticates.
2. The application layer protocol starts. It passes a guard which can look at the application layer protocol metadata
   and request the client certificate if needed. (the guard can have access to ACL information to make this decision)
3. the Guard decides 
    a. client authentication is needed  (it's not available in cache) and asks the TLS layer to do that
    b. the TLS layer sends a client authentication request
    c. the client selects a certificate
    d. the TLS agent verifies only that the public sent in the certificate can decrypt the encoded token
       ( we need to find the technical jargon for this)
    e. if it does the guard ends up with the client certificate
 



4 . The Guard needs to verify the WebID claims in the certificate, so it sends those to the WebID verifier that follows the
   well known procedure, either going through a cache or fetching directly the information on the web (5)

6. given the identities the guard can decide whether the user with that identity has access to the resource requested by considering
its ACLs and the graph of trusted information. (out of scope of detailed study here)

7. the resource is given access to and the server can send the application layer response to the client

-----

The good thing in this diagram is that
 
 1. we can make clear that the TLS agent can be bog standard - it just needs to not throw an exception if it does not recognise the issuer.
 2. The guard is working at the application layer, and can communicate with the underlying TLS layer.
 3. we don't need to specify what the protocol of the request is - but we can give examples of HTTP requests
 4. the above makes clear how we can get around any browser issues, and how we can get rid of the most problematic user interface problems: namely the automatic request of the client certificate
 
Henry



Social Web Architect
http://bblfish.net/
Received on Sunday, 20 November 2011 13:05:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 20 November 2011 13:05:01 GMT