Announcement Announcement Module
Collapse
No announcement yet.
Spring-social-security Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring-social-security

    Hi,

    first of all... great work guys.

    I just have a couple of questions, hope you can point the way to go.
    Currently I just started working with spring social and so far I have integrated it into my web project. But what I really aim to do is to have a spring-social-security integration (that would be great). I just wanna know if you are planning to add this functionality in the 1.1 release and when is this release scheduled ?? Should I wait for the release or go with the code of the following links?

    http://blog.trickl.com/?p=51
    http://code.google.com/p/spring-security-social/

    Thanks so much

  • #2
    Tighter integration with Spring Security is on the roadmap for 1.1, but there has been no date scheduled for that release yet. I'll be considering the approach taken in those links as I design, but it's too early to tell how closely it will resemble those.

    Comment


    • #3
      Hi,

      I had been checking the code molindo's code at https://github.com/molindo/spring-social/tree/security (I know you aware of it). I wanna try to integrate this into an jsf architecture with spring security. So far I have download the code into my PC (not that much) ,I just wanna know if you could give any hint about how to do this.

      Thanks in advance.

      Comment


      • #4
        Hi

        I've been working on a spring-social-security module which integrates spring-social and spring security - still a work in progress but you may want to take a look to see if it supports the functionality you need. Code is at https://github.com/socialsignin/spring-social-security, with initial docs at http://socialsignin.github.com/spring-social-security/

        Comment


        • #5
          Hi Michael,
          I am thinking of using your work socialsignin/spring-social-security for my project.
          Do you have any stable version released? Basically I need to integrate spring-security for facebook login and I dont use Spring MVC.

          Thanks,
          Pravin

          Comment


          • #6
            Hi Pravin

            Thanks for your interest in spring-social-security - at the moment the module is still a work in progress, so no stable version as of yet I'm afraid.

            The module is really designed to work with the Spring MVC components provided by Spring Social - if you are not using Spring MVC then whether the module will be what you need for your application will depend on how you are using the other parts of Spring Social.

            With spring-social-security a SpringSocialSecurityAuthenticationFilter is registered with Spring Security - this filter authenticates a user after they sign in with a provider such as Facebook. A prerequisite for this filter is that access tokens obtained from providers are stored in a UserConnectionRepository (from Spring Social), and that this UserConnectionRepository is used as the primary source for local user accounts for your application.

            Spring Social provides MVC controllers out of the box, which manage the authentication flow with a provider and which store access tokens in the UsersConnectionRepository.

            If you are not using Spring MVC then you'll need to provide your own mechanism for managing user authentication flow. You may still be able to use the spring-social-security authentication filter if you:

            1) Store the access tokens obtained on authorisation into the UserConnectionRepository (from Spring Social), either using the Spring MVC components from Spring Social, or using your own controllers in an alternative framework.

            2) Intend to use this UserConnectionRepository as your primary user details source for your application (ie. you don't have a a separate user database outside of Spring Social)

            3) Place an instance of SpringSocialSecuritySignInDetails into the session after authentication from Facebook before redirecting to the authentication filter. (see SpringSocialSecuritySignInService )

            If your application is configured in this way then in theory you could register the SpringSocialSecurityAuthenticationFilter with your spring security configuration, but it may be easier to create your own filter which mimics the behaviour of SpringSocialSecurityAuthenticationFilter but hooks into your own MVC controllers/user details store.

            Hope this helps,

            Thanks,

            Michael

            Comment


            • #7
              Thanks a lot Michael. I think I will try to come with my own filter as I need to support other set of users also. I will update you with the progress.

              Thanks,
              Pravin

              Comment

              Working...
              X