Oauth2_spring_security_example is a project mainly written in ..., it's free.
Example of Spring Security with OAuth 2 (slides)