my dog learned polymorphism*
The moose likes Spring and the fly likes How to authenticate a user using open Id after logging in the system Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How to authenticate a user using open Id after logging in the system" Watch "How to authenticate a user using open Id after logging in the system" New topic
Author

How to authenticate a user using open Id after logging in the system

salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

I am using Spring Security in our application

My requirement intially was to allow a user to login to our application using open id.
I was able to do so referring to online tutorials on using open id in Spring sercurity.

eg:




and a class as:


I now have a requirement to allow an existing user to "attach" his open id to our application.
meaning that a user that is logged in, will add his open id into the system so that next time he can login using that open id.

So, given that i know the open id url eg: https://www.google.com/accounts/o8/id
How do I prompt user to login to the third party such as google and then return to our app and extract the open id url?

Will roles help me here ?

My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to authenticate a user using open Id after logging in the system