javaoauthopenidmsn

login with msn for java website


I am creating a website whichi have various login options like login with facebook, google, msn etc.. I need your help for login with msn. Basically what I want is that user will click on login with msn link and msn ligin page will open where user will enter his msn credentials and after successfull login java api will fetch his profile info like name, gender, date of birth etc, after successfull login on msn and fetching user's info user will be redirected back to my website which will popup his info that I fetched. So I need some links and suggestions on how I can achieve this.


Solution

  • All you wanted is either use Oauth or OpenId. There are various Java based library which will do the heavy lifting for you and all you need to do is to

    OAuth

    1. Create redirect URL for authorization
    2. Send the code you get when user authorize your application to get access_token
    3. use the access_token to get the required information

    There are lots of API which will give you start-up

    Oauth API's

    1. scribe-java oauth
    2. oauth.googlecode

    for list of Oauth library refer to this page oauth.net.

    OpenID library

    1. jopenid
    2. dyuproject
    3. openid4java

    For more details refer to wiki.openid.net