Announcement Announcement Module
Collapse
No announcement yet.
Concurrent Session Control with Spring Blaze DS M2 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Concurrent Session Control with Spring Blaze DS M2

    Hi

    I am using Spring BlazeDS Integration 1.0.0.M2, I have implemented UserDetailsService and UserDetails. Now I am able to authenticate
    and remote method access is provided based on role
    But now I would like to have Concurrent Session Control, but I get an error
    "There was an unhandled failure on the server. Authentication.getDetails() required"


    I added the below code in my security config file.

    HTML Code:
     <security:http auto-config="true">
    		<security:intercept-url pattern="/*html" access="IS_AUTHENTICATED_ANONYMOUSLY"  />
    		<security:concurrent-session-control max-sessions="1" exception-if-maximum-exceeded="true" />
    	</security:http>
     <security:authentication-provider user-service-ref="customUserDetailsService"/>

    and in my application config

    HTML Code:
    <bean id="customUserDetailsService" class="com.MyUserDetailsService">
            <property name="sessionFactory" ref="mySessionFactory" />
    </bean>
    <bean id="concurrentSessionController"
    		class="org.springframework.security.concurrent.ConcurrentSessionControllerImpl">
    		<property name="maximumSessions" value="1" /> 
    		<property name="exceptionIfMaximumExceeded" value="true"/>
    			<property name="sessionRegistry" ref="sessionRegistry"/>
    		</bean>
           
    	<bean id="sessionRegistry" class="org.springframework.security.concurrent.SessionRegistryImpl"/>



    and also in my web.xml I have the listener added

    HTML Code:
    <listener>
      		<listener-class>org.springframework.security.ui.session.HttpSessionEventPublisher</listener-class>
    	</listener>
    I have also added the error log below, there is no error on server log, only Debug message, I may have missed out many things, but please help me and excuse me for putting the complete log.

    I have not implemented any method like getDetails but I have loadUserByUsername and getAuthorities implemented and they work fine, by fetching data from Oracle DB.


    Now Flex client application on create completion, calls the login module.
    when i try to login it throws error

    HTML Code:
    (mx.messaging.messages::ErrorMessage)#0
      body = (null)
      clientId = "7DDB920A-4C1B-CF43-2C44-89C3E2C32BD6"
      correlationId = "69992508-A699-A0D8-9723-8F4D3C704EBA"
      destination = "auth"
      extendedData = (null)
      faultCode = "Server.Processing"
      faultDetail = (null)
      faultString = "There was an unhandled failure on the server. Authentication.getDetails() required"
      headers = (Object)#1
      messageId = "7DDB9A16-D80D-74DB-9E31-E38E11A3FDAD"
      rootCause = (null)
      timestamp = 1239354785880
      timeToLive = 0

    I have attached the server log also.


    Any help is appreciated..
    Thanks in Advance

  • #2
    Any Help ?

    Hi,

    Do I need to post this question in Security forum, to get any response ?
    Any help is appreciated.

    Thanks

    Comment

    Working...
    X