How to use OpenID to sign on with Google account
2009-02-19 10:11
435 查看
Recently Google announced its support for OpenID, called "Federated Login", to let any site enable their users to sign on by their Google accounts, without registrations.
This is really a good news, and for Java developers they can write some code to make the 3rd-part site to connect to Google. There are already lots of libaries that can be used in J2EE. However, after I do some evaluation of these libaries, I do not find a suitable libary. The well-known "OpenID4Java", is too large (46MB!), with dependencies on many other libaries. So I decided to write a small, but very lightweight libary to support OpenID 2.0 spec, called "JOpenID".
It is very small, with only 48KB including both source & binary. You can download from http://code.google.com/p/jopenid/downloads/list.
Sample code is also provided:
http://code.google.com/p/jopenid/source/browse/trunk/JOpenId/src/com/javaeedev/openid/Main.java
It has been fully tested based on Google accounts. However, I think it also can support Yahoo! OpenID, but with little information provided by Yahoo! I do not test yet.
This is really a good news, and for Java developers they can write some code to make the 3rd-part site to connect to Google. There are already lots of libaries that can be used in J2EE. However, after I do some evaluation of these libaries, I do not find a suitable libary. The well-known "OpenID4Java", is too large (46MB!), with dependencies on many other libaries. So I decided to write a small, but very lightweight libary to support OpenID 2.0 spec, called "JOpenID".
It is very small, with only 48KB including both source & binary. You can download from http://code.google.com/p/jopenid/downloads/list.
Sample code is also provided:
http://code.google.com/p/jopenid/source/browse/trunk/JOpenId/src/com/javaeedev/openid/Main.java
It has been fully tested based on Google accounts. However, I think it also can support Yahoo! OpenID, but with little information provided by Yahoo! I do not test yet.
相关文章推荐
- IntegrationWithDjango - modwsgi - How to use Django with mod_wsgi. - Python WSGI adapter module for Apache. - Google Project Hosting
- Web.py Cookbook 简体中文版 - How to use templates on Google App Engine
- How to Use Google AdSense Ads on Responsive Websites
- Howto Enable and Use A2DP Sink on Ubuntu Linux with Bluez
- How To Use MySQL with Your Ruby on Rails Application on Ubuntu 14.04
- How to Use Memcached With Ruby on Rails on Ubuntu 12.04 LTS
- how to sign in with Google
- How to use Google Test on Android-4.0.3_r1
- How to use the cut command with examples
- How to search All-In-OneCode Framework with google or Bing
- How To Set Up HTTP Authentication With Nginx On Ubuntu 12.10
- Mac如何通过Xcode安装GCC编译器 How to install gcc on mac with xcode
- How to find out why your account keeps getting locked with Windows Server, TMG and Webspy
- How To Install WordPress with LAMP on Ubuntu 16.04
- How to debug SceneLib with Eclipse and How to install SceneLib 1.0 on Ubuntu 10.04
- How to Load XML with JavaScript on an HTML5 Page
- How To Use the Spreadsheet Web Component with Visual Basic
- (转)How to use HttpSendRequestEx with password-protected URLs
- (转贴)How to use JDBC and transactions in Tomcat with JOTM
- How to populate the datagrid on background thread with data binding by using Visual C#