Results 1 to 4 of 4

Thread: Spring Social and Spring Security

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    151

    Default Spring Social and Spring Security

    I thought Spring Social was based on the early Spring Security Facebook integration, and that all of the oatuh/login would be integrated/exposed via the Spring Security framework.

    Are there any plans to provide this level of integration?

  2. #2
    Join Date
    Mar 2011
    Location
    Dornbirn, Austria
    Posts
    17

    Default

    Hi Jabberz, see this thread http://forum.springsource.org/showthread.php?t=105565 Nothing offical though, but maybe helpful.

  3. #3
    Join Date
    Feb 2008
    Posts
    12

    Default Security

    I have my signin controller in social working and signin method of singinservice doesn't do anything :

    Code:
    public void signIn(String accountId) {
    		ArrayList<GrantedAuthority> roles = new ArrayList<GrantedAuthority>();
    		roles.add(new GrantedAuthorityImpl("ROLE_USER"));
    		SecurityContextHolder.getContext().setAuthentication(new FacebookAuthenticationToken(accountId, null, roles));
    		
    	}

    What is the best way to mark the user as authenticated from spring social??

  4. #4
    Join Date
    Mar 2011
    Posts
    4

    Default

    Quote Originally Posted by sfussenegger View Post
    Hi Jabberz, see this thread http://forum.springsource.org/showthread.php?t=105565 Nothing offical though, but maybe helpful.
    I read information from this link really good.
    Thanks for sharing this informative link.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •