My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Introduction  
Introduction to JOID.
Featured
Updated Feb 4, 2010 by treeder

JOID is an OpenID 1.x/2.0 Java library that lets you implement providers as well as relying parties. JOID compiles under JDK 1.4 or later.

Flows

UsageFlows describes the common usage flows.

Usage

The over-riding design goal of JOID is simplicity of use. The javadocs will tell you more, but the main use case is:

// Get a store implementation (used to handle associations).
Store store = ...

// Get an OpenID implementation
OpenId openId = new OpenId(store);

// Process the request into a response
String response = openid.handleRequest(query);

JOID processes messages by using a factory to parse the request, and then use this request to generate a response.

If you wish, you can also drop down to a slightly lower level, for example, should you need to specify which type of crypto implementation to use, or if you need to inspect incoming requests or outgoing responses.

It's still a very simple API:

// Parse the incoming message
Request req = RequestFactory.parse(string);

// Get a store implementation (used to handle associations) and a 
// crypto implementation (to handle the OpenID protocol crypto)
Store store = ...
Crypto crypto = ...

// Use the request and process with the store and crypto to
// produce a response
Response resp = req.processUsing(store, crypto);

JOID Enabling Your Application

OpenIDConsumer

Setting Up A JOID Server

ServerInstallation

Mailing lists

JOID has two mailing lists, both public to join:

Type URL
General http://groups.google.com/group/joid-general
Developer http://groups.google.com/group/joid-dev

Comment by vincent....@gmail.com, Jul 17, 2007

I would like to use this sample but it would be easier to have store creation sample.

Comment by dom.figl...@gmail.com, Jul 9, 2008

Where are the javadocs?

Comment by araich...@gmail.com, Dec 30, 2008

Please let me know where is working example to implement providers as well as relying parties, thanks

Comment by araich...@gmail.com, Dec 30, 2008

when I tried with .war files installation, and used for yahoo aunthentication, yahoo displays error saying this is old version of Openid, we support OpenId? 2.0

Comment by pega...@gmail.com, Feb 15, 2009

Worked nicely - I wrote a simple user manager backed by an LDAP directory, and it all went off like a charm. Thank you!

- pegacat
Comment by steve.ha...@gmail.com, Oct 8, 2009

There is a mistake in build.propeties regarding a missing httpclient jar in the joid war lib. e.g.

commons_httpclient_jar=${lib.hibernate}/commons-httpclient-3.1-rc1.jar

should be

commons_httpclient_jar=${lib}/commons-httpclient-3.1-rc1.jar

because that is where the jar lives.

Comment by LilianeS...@gmail.com, May 27, 2010

Hi , i am a new developer in this field and

I have a question: As i know that the user information is shared with the relying party if the user agree on that so where is this part in the source code , the part that the Identity provider send the user information to the relying party?

waiting for ur replies

thank you, Liliane


Sign in to add a comment
Powered by Google Project Hosting