Skip to content

Integration of Spring4 REST services (through Spring MVC) and Oauth2-Spring Security.

License

Notifications You must be signed in to change notification settings

hcadavid/spring4-rest-oauth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimalist integration example for:

- Spring 4
- Spring MVC for REST Services
- Spring Security / OAuth2

In this example REST services (implemented with Spring MVC) with certain prefix 
are secured with a token-based authentication strategy (through Spring Security
Oauth2 modules).


Special thanks to techannotation:

http://techannotation.wordpress.com/2014/04/29/5-minutes-with-spring-oauth-2-0/

Also based on other online resources:

http://malalanayake.wordpress.com/2014/06/27/spring-security-on-rest-api/
http://www.hsc.com/Portals/0/Uploads/Articles/WP_Securing_RESTful_WebServices_OAuth2635406646412464000.pdf
http://www.programming-free.com/2014/01/spring-mvc-40-restful-web-services.html



Sample token request:
http://localhost:8080/oauth2-prueba/oauth/token?username=myuser&password=mypassword&client_id=mysupplycompany&client_secret=mycompanykey&grant_type=password&scope=read




[email protected]

About

Integration of Spring4 REST services (through Spring MVC) and Oauth2-Spring Security.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages