W3C home > Mailing lists > Public > public-xg-webid@w3.org > January 2012

Re: WebIDRealm - Modes - UsageScenarios

From: Jürgen Jakobitsch <j.jakobitsch@semantic-web.at>
Date: Mon, 02 Jan 2012 21:04:10 +0100 (CET)
To: Kingsley Idehen <kidehen@openlinksw.com>
Cc: public-xg-webid@w3.org
Message-ID: <4e779f68-39b8-4bb5-9582-27b923e0ed23@zcs>
hi,

to clarify from where the depiction and the dummy-webID come :

to be able to get debug-information to the web page i need to create a principal,
even if login and authentication fail due to some reason (parse error, certExpirationException, whatever)

the only docking-point i have (and that i can override whithout rewriting half of tomcat) 
from the catalina api is a getPrincipal() method [1]. this method doesn't throw any exception
(by interface) and the only possibility i have is to either return null or a principal.

for debugging reasons i'm creating a WebIDPrincipal [2] with triplified exceptions and return
this one in case an exception occurs. It will be possible to conf this behaviour (either return a
dummy WebIDPrincipal or null) sometimes soon (either by some sort of setting or by the log4 debug level)

now a dummy user apparently hasn't any depiction but is still displayed by my profile template.

the profile template uses miss universe in case a foaf:gender is found and equals to female or in case
there's no foaf:gender present.

you can find out about the male-dummy image - by removing foaf:depiction (or temporarily renaming it to foaf:Xdepiction) 
from your webProfile and add (if you haven't done so) <foaf:gender>male</foaf:gender>

wkr http://www.turnguard.com/turnguard

[1] http://docs.turnguard.com/webid/2.0/com/turnguard/webid/tomcat/security/WebIDPrincipal.html (docu still needs to be done)
[2] http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/realm/RealmBase.html

----- Original Message -----
From: "Kingsley Idehen" <kidehen@openlinksw.com>
To: public-xg-webid@w3.org
Sent: Monday, January 2, 2012 8:31:12 PM
Subject: Re: WebIDRealm - Modes - UsageScenarios

On 1/2/12 11:15 AM, Peter Williams wrote:
> I think it worked http://tinyurl.com/7c8l7s5, though took 2 tries. This is a good first trial (taking me only 30m to find an interworking solution).
>
>
>
> There are some confusions about http and https on the address bar, which will make the solution struggle with consumer if the adopting tomcat site is intending to make the browser use "green address bars" (and associated anti-phishing countermeasures). 		 	   		
>
"The webid claim is not of my making, and the depiction of a drama queen 
at least fits the persona. Where these facts come from (technically), I 
don’t know"

PRICELESS !

LOL.

-- 

Regards,

Kingsley Idehen	
Founder&  CEO
OpenLink Software
Company Web: http://www.openlinksw.com
Personal Weblog: http://www.openlinksw.com/blog/~kidehen
Twitter/Identi.ca handle: @kidehen
Google+ Profile: https://plus.google.com/112399767740508618350/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen







-- 
| Jürgen Jakobitsch, 
| Software Developer
| Semantic Web Company GmbH
| Mariahilfer Straße 70 / Neubaugasse 1, Top 8
| A - 1070 Wien, Austria
| Mob +43 676 62 12 710 | Fax +43.1.402 12 35 - 22

COMPANY INFORMATION
| http://www.semantic-web.at/

PERSONAL INFORMATION
| web   : http://www.turnguard.com
| foaf  : http://www.turnguard.com/turnguard
| skype : jakobitsch-punkt
Received on Monday, 2 January 2012 20:07:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 2 January 2012 20:07:13 GMT