The goal of this project is to provide a ready to use Spring Security Web App skeleton that supports:
- multiple clients (Browser, Web Apps, Mobile Apps)
- to have a federated identity, e.g. users stored in a local "DB/Memory" and external OAuth provider, such as Facebook
- OAuth2 to be used a standard protocol for communication
mvn ....
[TBD]
curl -k -i -H "Accept: application/json" "localhost:8080/oauth/authorize?client_id=client&client_secret=secret&response_type=code"
curl -k -i -H "Accept: application/json" "localhost:8080/oauth/token?client_id=client&client_secret=secret&response_type=token&grant_typization_code&code="
http://projects.spring.io/spring-security-oauth/docs/oauth2.html
There are very good examples as part of the Spring Security OAuth Source , which is using a lot of XML that makes it hard to read.
Josh's awesome OAuth Project repo has most of it as well.