Announcement Announcement Module
No announcement yet.
How do I specify Open ID Realm in spring security ? Page Title Module
Move Remove Collapse
This topic is closed
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I specify Open ID Realm in spring security ?

    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.

    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,"");

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

    our configuration:
    <http auto-config="false"> 
    	<!-- <intercept-url> tags are here  --> 
    	<remember-me user-service-ref="someRememberedService" key="some key" /> 
    	<form-login login-page="/Login.html" authentication-failure-url="/Login.html?error=true" always-use-default-target="false" default-target-url="/MainPage.html"/> 
    	<openid-login authentication-failure-url="/Login.html?error=true" always-use-default-target="true" default-target-url="/MainPage.html" user-service-ref="someOpenIdUserService"/> 
    <beans:bean id="openIdAuthenticationProvider" class="">
    	<custom-authentication-provider />
    	<beans:property name="userDetailsService" ref="openIdUserService"/>
    <beans:bean id="openIdUserService" class="some.package.OpenIDUserDetailsService">
    Last edited by salvin18; Apr 7th, 2010, 08:01 AM.