oauth - Spring Security 3 using OAuth2 for SSO -


has used oauth2 sso within spring security 3?

scenario: need users redirected oauth2 url when try access url on site first time. once authenticated there, redirect them url on site, need authorize them , create session stay authorized on site until log out or time out.

i have tried several configurations in spring security using custom pre-auth filters, custom user details services, etc., cannot flow work properly. i've not attached code because i've gone through many possibilities i'm not sure post.

i'd appreciate direction can give. thanks!

oauth2 isn't intended sso solution. it's delegating right access resources on behalf other parties (applications, example). if that's not need perhaps should looking @ simpler solution.

it's possible use oauth2 allow access resource provides information on identity, in case can expanded authentication use. how openid connect uses (by adding userinfo endpoint resource).

you might want take @ uaa project within cloudfoundry built on spring security oauth , uses oauth2 in way provide authentication services , issue access tokens applications within system.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -