onefC logo picture

onefC demo application: usage

The demo application for onefC is a very sophisticated web application: it shows a personalised greeting with any name of your choice! Ain't that exciting? Well, most people would say "no". But the trick is: this web application does not ask you for your name via a HTML form, but it uses the onefC identity and session infrastructure. It runs on a special web server, which accepts onefC sessions. A local proxy (on your side) initiates the session and associates it to your request. The server application then asks your local identity manager for your name: that's the place you have to answer it. Once you answered, the personalised greeting is sent back to your browser. Of course, it really is not that exciting, but it demonstrates how sessions are set up and how attributes can be requested. Just imagine, it could also ask for your favourite colour! ;-)

But before you can try it out yourself, you need to install a few software and configure your system (onefC is quite invasive).

Using the demo application

Once you're done installing and configuring your system,

Now, several things happen, before you can see the result.

Now you can start playing with the tools. If you hit the reload button, you will get the greeting instantly, because the server caches the identity information. If you want to try again, type "quit" in the proxy console and restart it, then reload the page. But before you do that, try the "Choose Identity" button in the "Local Session Member" pane of the identity management client. You'll get an empty list jut like the one you got when answering the request. Type a nick for a new identity into the "Create a new Identity" text field (it may very well be the same as your name, like in the screenshot), hit OK, and you have created your first persistent digital identity! You can see it in the "Profile Management" tab once you have restarted the client (sorry about that...), but there actually is no need for that.
onefC screenshot: your first digital identity!
Now you have the chance to aquire the "Name" property of the session identity to your persistant, digital identity. Just hit the "Aquire" button. The next time anyone asks for your Name, you can choose to use this identity for that session (by using the "Choose Identity" button of course), and you'll be offered the aquired name in the "answer property" dialog. Try this out by restarting your proxy and visiting the demo application again.

Sourcecode

The complete source code for this example is available, with the exception of the WBI library used by Scone (which is free for non-commercial use... and we would not recommend to make money with this example ;-)). The source code for Scone can be found on the Scone Homepage. The source code for the onefC scone plugin is available here. The source code for the onefC session API (used by the Scone plugin and the web server session adapter), the mozidm identity and session management Firefox extension and the example web application can be received via CVS from our onefC sourceforge project page. Binary and source releases will follow soon.

Troubleshooting

Of course, several things can go wrong using this demo application. Please, first make sure you followed the instructions to install the software and configure your system closely. Then, check your proxy settings. Then, check whether the demo server actually is alive (it should redirect you to http://vsis-www.informatik.uni-hamburg.de/projects/onefc/).

Valid XHTML 1.1 Imprint, Written by Toby Baier
Last update: 08 Feb 2005 - 13:16:22
Login