[jopenid-discussion-group] Yahoo namespace

7 views
Skip to first unread message

John

unread,
Apr 22, 2010, 12:17:30 PM4/22/10
to JOpenID Discussion Group
Hi all,

Thanks for all of your work! A quick, easy recommendation for
jopenid, with code:

For reasons I don't understand, Google uses the default namespace,
while Yahoo uses "ax". Is there a better way to discover the default
namespace? Maybe it would be nice to build this into the
OpenIdManager?

/**
* Get authentication information from HTTP request and key.
*/
public Authentication getAuthentication(HttpServletRequest
request, byte[] key)
{
String claimedId = request.getParameter("openid.claimed_id");
if (claimedId != null && claimedId.contains("yahoo.com"))
{
return getAuthentication(request, key, "ax");
}
else
{
return getAuthentication(request, key,
ExtNamespace.DEFAULT_ALIAS);
}
}



--
Subscription settings: http://groups.google.com/group/jopenid-discussion-group/subscribe?hl=en

Erwin Quinto

unread,
Apr 23, 2010, 1:05:47 AM4/23/10
to JOpenID Discussion Group
Hi John,

Thank you again for your comment, well try to consider it on our
future releases.

I would just like to know if you happen to use JOpenID on your
projects?
If yes, could you may be share us your experience on it? I would be
delighted to hear your story.

Michael Liao

unread,
Apr 23, 2010, 1:20:15 AM4/23/10
to jopenid-disc...@googlegroups.com
Hi John

I think the latest version already contains "alias" in "openid-providers.properties":

Google.alias = ext1

Yahoo.alias = ax

you can add more providers and use the following code to get alias:

manager.getAuthentication(request, key, endpoint.getAlias());
--
 Best regards,

Michael Liao
Reply all
Reply to author
Forward
0 new messages