Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

spring-security integration (spring-social-security) #12

Merged
merged 49 commits into from

6 participants

@sfussenegger

spring-security integration allowing OAuth authentication for spring-security.

Using the sample configuration all it takes is redirecting the user to /auth/facebook or /auth/twitter to add a connection (signed out) or authenticate (signed out).

Note that providers don't exist yet, as they should go into the newly created sub projects (spring-social-facebook, ...) (pull requests upcoming as soon as this one is done)

@kdonald

Stefan,
Just wanted to get you an update here: we're working on getting RC1 out early this week, with a quick 1.0 to follow. I talked with Craig and we're gonna make integrating your Spring Security integration one of the top 1.1 priorities and expect the 1.1 cycle to move quickly as well.

@sfussenegger

Keith, thanks for the update. Too bad security isn't making it into 1.0. I'm looking forward to 1.1 though.

For everybody interested in spring-security integration pre 1.1:

I've deployed Maven artifacts from our molindo branch to Sonatype's OSS Snapshot repository (using groupId at.molindo.social).

I'm not planning to to do a release, only snapshots, only until this pull request is closed.

PS: Monitoring of builds (CI/TeamCity) is also possible.

@sfussenegger sfussenegger reopened this
@sfussenegger

I've now updated the sample conf too. I've even added the necessary POM snippets to use my custom builds.

sfussenegger and others added some commits
@sfussenegger sfussenegger ignore unknown providerIds allowing to handle them down the chain
f09cf16
@sfussenegger sfussenegger Merge branch 'master' into security
ff0c991
@sfussenegger sfussenegger fix for change of method name
2f90045
@sfussenegger sfussenegger Merge branch 'master' into security
f1b879f
@sfussenegger sfussenegger configure default connectionAddedRedirectUrl for filter
2370e50
@sfussenegger sfussenegger added failureHandler
4e48507
@sfussenegger sfussenegger Merge branch 'master' into security
d2e31b2
@sfussenegger sfussenegger fixed build error after merging
4a6ee2d
@sfussenegger sfussenegger changed addSignInAttempt(..) to replace existing, alwasy redirect to …
…signup url
81a9c98
@sfussenegger sfussenegger Merge branch 'master' into security
4072bcc
@sfussenegger sfussenegger optionaly update existing connections after auth success
1d9e3e2
@sfussenegger sfussenegger Merge branch 'master' into security
65363aa
@sfussenegger sfussenegger force UserDetails to remember userId
26a0d26
@sfussenegger sfussenegger force UserDetails to remember userId
7e909f7
@sfussenegger sfussenegger added possibility to remove SignInAttempt
1bf3bd5
@sfussenegger sfussenegger configurable scope property
6d1d2dd
@sfussenegger sfussenegger fixed possible NPE
b48bbf1
Dolan Halbrook Using COALESCE instead of IFNULL for Postgres 8.4 support.
53e10f8
Craig Walls Added default constructor for InsufficientPermissionsException for ti…
…mes when the required permission is unknown.
8e0736a
Craig Walls Added some tests around ConnectionKey's equals(), hashCode(), and toS…
…tring() methods as well as fixed symmetric bug in equals()
fbe87d5
@bbaia bbaia Polishing while porting to .NET
c8c24eb
Craig Walls Updated H2 and Jackson dependency versions
4d08940
Craig Walls Return redirect URL from SignInAdapter and redirect to it in Provider…
…SignInController if it's not null. In this way it's possible for the SignInAdapter implementation to tell PSIC to redirect to the original target URL when the user was forced to sign in. SOCIAL-227
119b92a
Craig Walls Updated H2 version to 1.3.158
7dc8b56
Keith Donald polishing
0870acf
Keith Donald polish
7f81143
Craig Walls Update connection after provider sign in. SOCIAL-222
f5a36c2
Craig Walls ProviderSignInControllerTest
a1bb632
Craig Walls Set Cache-Control: no-cache header in ConnectController for connectio…
…n status pages. SOCIAL-224
a5f1365
Craig Walls Set more cache-controlling headers to prevent caching of connection s…
…tatus pages. SOCIAL-224
2742a31
Craig Walls ConnectionKey implements Serializable. SOCIAL-225.
9a1a342
Craig Walls updated changelog.txt
9117603
Craig Walls Unified DuplicateTweetException and DuplicateStatusException into a c…
…ommon DuplicateStatusException
dd5b9f2
@sfussenegger sfussenegger handle client errors while exchanging for access
f4a45b6
@sfussenegger sfussenegger throw exception if explicit auth fails
ccfcc6f
@sfussenegger sfussenegger fixed some bugs
2caf4ae
@AlBaker

Any status on this pull request? Lots of folks looking for a more straight forward integration of Spring Security and Spring Social, such that social logins hook into the providers and create a login within spring security as well

sfussenegger added some commits
@sfussenegger sfussenegger Merge branch 'master' into security
Conflicts:
	build.gradle
	docs/src/info/changelog.txt
	spring-social-web/src/main/java/org/springframework/social/connect/web/ConnectController.java
	spring-social-web/src/main/java/org/springframework/social/connect/web/ProviderSignInController.java
	spring-social-web/src/test/java/org/springframework/social/connect/web/ProviderSignInControllerTest.java
9533974
@sfussenegger sfussenegger fixed after merging
6e6bb56
@bfd
bfd commented

I second this request, it would be very helpful to have this in an official form and repository of some kind.

@sfussenegger

@kdonald @habuma Any news on spring-social integration plans?

@habuma
Owner

It's on the roadmap for 1.1 and I hope to be able to focus more on that in the next several weeks. But at the moment I'm tied up with some unrelated stuff and just haven't had the opportunity to focus on this with the attention it deserves. I hope to have a more complete update for you soon.

@habuma habuma merged commit 6e6bb56 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 24, 2011
  1. @sfussenegger

    initial commit

    sfussenegger authored
  2. @sfussenegger

    added TODOs

    sfussenegger authored
  3. @sfussenegger
  4. @sfussenegger

    fixed javadoc warnings

    sfussenegger authored
  5. @sfussenegger
  6. @sfussenegger
  7. @sfussenegger

    use SocialAuthenticationRegistry in SocialAuthenticationFitler to

    sfussenegger authored
    avoid 2nd mapping, reuse ConnectionFactoryLocator instead
  8. @sfussenegger

    redirect to configurable signupUrl (default "/signup") for yet unknown

    sfussenegger authored
    connections for unauthenticated users
  9. @sfussenegger

    - allow simpler configuration of postLoginUrl

    sfussenegger authored
    - don't redirect if implicit auth succeeds
  10. @sfussenegger
  11. @sfussenegger
Commits on Jun 14, 2011
  1. @sfussenegger
  2. @sfussenegger
  3. @sfussenegger
Commits on Jun 15, 2011
  1. @sfussenegger
Commits on Jun 22, 2011
  1. @sfussenegger
  2. @sfussenegger

    added failureHandler

    sfussenegger authored
  3. @sfussenegger
  4. @sfussenegger
Commits on Jun 27, 2011
  1. @sfussenegger
  2. @sfussenegger
Commits on Jun 28, 2011
  1. @sfussenegger
  2. @sfussenegger
  3. @sfussenegger
  4. @sfussenegger
Commits on Jun 29, 2011
  1. @sfussenegger
Commits on Jul 1, 2011
  1. @sfussenegger
Commits on Jul 6, 2011
  1. @sfussenegger

    fixed possible NPE

    sfussenegger authored
Commits on Jul 22, 2011
  1. @sfussenegger

    Using COALESCE instead of IFNULL for Postgres 8.4 support.

    Dolan Halbrook authored sfussenegger committed
  2. @sfussenegger

    Added default constructor for InsufficientPermissionsException for ti…

    Craig Walls authored sfussenegger committed
    …mes when the required permission is unknown.
  3. @sfussenegger

    Added some tests around ConnectionKey's equals(), hashCode(), and toS…

    Craig Walls authored sfussenegger committed
    …tring() methods as well as fixed symmetric bug in equals()
  4. @bbaia @sfussenegger

    Polishing while porting to .NET

    bbaia authored sfussenegger committed
  5. @sfussenegger

    Updated H2 and Jackson dependency versions

    Craig Walls authored sfussenegger committed
  6. @sfussenegger

    Return redirect URL from SignInAdapter and redirect to it in Provider…

    Craig Walls authored sfussenegger committed
    …SignInController if it's not null. In this way it's possible for the SignInAdapter implementation to tell PSIC to redirect to the original target URL when the user was forced to sign in. SOCIAL-227
  7. @sfussenegger

    Updated H2 version to 1.3.158

    Craig Walls authored sfussenegger committed
  8. @sfussenegger

    polishing

    Keith Donald authored sfussenegger committed
  9. @sfussenegger

    polish

    Keith Donald authored sfussenegger committed
  10. @sfussenegger

    Update connection after provider sign in. SOCIAL-222

    Craig Walls authored sfussenegger committed
  11. @sfussenegger

    ProviderSignInControllerTest

    Craig Walls authored sfussenegger committed
  12. @sfussenegger

    Set Cache-Control: no-cache header in ConnectController for connectio…

    Craig Walls authored sfussenegger committed
    …n status pages. SOCIAL-224
  13. @sfussenegger

    Set more cache-controlling headers to prevent caching of connection s…

    Craig Walls authored sfussenegger committed
    …tatus pages. SOCIAL-224
  14. @sfussenegger

    ConnectionKey implements Serializable. SOCIAL-225.

    Craig Walls authored sfussenegger committed
  15. @sfussenegger

    updated changelog.txt

    Craig Walls authored sfussenegger committed
  16. @sfussenegger

    Unified DuplicateTweetException and DuplicateStatusException into a c…

    Craig Walls authored sfussenegger committed
    …ommon DuplicateStatusException
  17. @sfussenegger
  18. @sfussenegger
Commits on Aug 8, 2011
  1. @sfussenegger

    fixed some bugs

    sfussenegger authored
Commits on Sep 9, 2011
  1. @sfussenegger

    Merge branch 'master' into security

    sfussenegger authored
    Conflicts:
    	build.gradle
    	docs/src/info/changelog.txt
    	spring-social-web/src/main/java/org/springframework/social/connect/web/ConnectController.java
    	spring-social-web/src/main/java/org/springframework/social/connect/web/ProviderSignInController.java
    	spring-social-web/src/test/java/org/springframework/social/connect/web/ProviderSignInControllerTest.java
  2. @sfussenegger

    fixed after merging

    sfussenegger authored
Something went wrong with that request. Please try again.