Spring security stateless restful samples
Stateless restful architecture on based spring-security
- jdk1.8
- spring 4.1+
- spring-security 3.2+
- spring-data-mongodb 1.6+
- ehcache 2.9+
- hibernate 4.3+
- groovy 2.3+
First,run test package ServiceTest.seed() method seed data.
Post "/authorizations"
with uid
and passwd
value to get X-AUTH-TOKEN
header
Get "/users/id"
with X-AUTH-TOKEN
header to get user info
:)
Pull requests are welcome