aspose file tools*
The moose likes Spring and the fly likes How do I specify Open ID Realm in spring security ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How do I specify Open ID Realm in spring security ? " Watch "How do I specify Open ID Realm in spring security ? " New topic
Author

How do I specify Open ID Realm in spring security ?

salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

We are using Spring security in our application with support for username / password based authentication as well as Open id based authentication.

The issue is that google gives a different open id for the return url specified and we have at least 2 different entry points in our application from where open id is configured into our system.

Hence we decided to use open id realm.

http://blog.stackoverflow.com/2009/0...ue-per-domain/

http://groups.google.com/group/googl...unts-api?pli=1


how is it possible to integrate realm into our spring configuration/code ?
This is how we are doing it in traditional openid library code:

AuthRequest authReq = consumerManager.authenticate(discovered, someReturnToUrl,"http://www.example.com");

This works and gives same open id for different urls from our site.


our configuration:


I have cross posted this question in :
http://forum.springsource.org/showthread.php?t=87421
http://stackoverflow.com/questions/2591901/how-do-i-specify-open-id-realm-in-spring-security


My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How do I specify Open ID Realm in spring security ?
 
Similar Threads
How to authenticate a user using open Id after logging in the system
Spring security: pass additional parameter when performing login
“j_spring_security_check” not found after configuring spring security without http namespace
https in spring security
Using other Authentication Providers