openid4java sample_openid4java

96b5e7e7e5e5a0a20034df055adc3b1a.png

What is this package?

This library allows you to OpenID-enable your Java webapp.

The following specifications are supported:

What is OpenID?

OpenID starts with the concept that anyone can identify themselves on the

Internet the same way websites do - with a URI. Since URIs are at the very

core of Web architecture, they provide a solid foundation for user-centric

identity.

The first piece of the OpenID framework is authentication -- how you prove

ownership of a URI. Today, websites require usernames and passwords to

login, which means that many people use the same password everywhere. With

OpenID Authentication, your username is your URI, and your password (or

other credentials) stays safely stored on your OpenID Provider (which you

can run yourself, or use a third-party identity provider).

For more information about the OpenID protocol please refer to the

specification at: http://openid.net/specs.bml

Quick Start

To OpenID-enable a website - a Relying Party (RP) in OpenID terms, or Consumer at code-level, you need to do the following:

Install the libraries

Instead (or as an alternative to) prompting the user for their username/password, obtain their OpenID (URL) identifier

Create an authentication request for this identifier, and redirect the user to their OpenID Provider (with this request)

Receive the OpenID Provider's authentication response at your webapp's ReturnURL, and verify it

Have a look at the QuickStart page for a code-level walk-through the above, and at the SampleConsumer class for the full code.

The bulk of the action amounts to about a dozen lines of code.

Simple-OpenID

A working example of a simple (6 JSP files) OpenID Provider and Relying Party can be found under samples/simple-openid/.

Start it with:

mvn jetty:run

For more details see the README.txt file included in that folder.

See also

BuildFromSource

SampleConsumer

SampleServer

Package contents

CHANGELOG

Version highlight changes.

INSTALL

Installation and usage instructions.

LICENSE

OpenID4Java Library license (Apache 2.0).

MAINTAINERS

List of code and documentation maintainers.

README.md

This file!

TODO

Tasks remaining and/or ongoing.

VERSION

The released version of this package.

apidoc/

JavaDoc API documentation.

samples/

Sample implementation projects. See samples/README for details.

src/

Source code.

test/

Test cases source code and test data.

lib/

Library dependencies.

build.xml

Ant build file; see INSTALL / Building the package.

project.properties

Build properties file.

pom.xml

Maven POM.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值