Implemented Resource server using Spring boot and Oauth2 AutoConfigure.
Refer Authorization Server who is responsible of creating tokens with different roles and scopes.
- Docker compatable, just execute startup.sh to start the APP. (Simplified Start)
- It has two endpoints with different scopes and different roles, refer: Endpoints
curl -X GET \
http://localhost:8083/resource/secure/read \
-H 'Authorization: Bearer 60122134-e39c-4838-ac29-75441e9d660d' \
-H 'Cache-Control: no-cache'