Tuesday, May 29, 2007

OpenID examples

clipped from code.google.com

QuickStart
Brief introduction to OpenID-enabling your webapp

Quick Start

Once you have installed the library and have obtained the user's OpenID identifier, you have to put in the following code to have your webapp perform authentication using OpenID:

Instantiate a ConsumerManager Object

Define a ReturnURL

Create an Authentication Request

Redirect the User to Their OpenID Provider

Verify the OpenID Provider's Authentication Response

You can see all the above put together in the SampleConsumer class.

0 comments: