Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jinagamvasubabu/spring-oauth2-redis-resourceserver-docker
Oauth2 Resource Server aka Resource server which can be accessed only after getting the token with respective roles from Authorization Server
https://github.com/jinagamvasubabu/spring-oauth2-redis-resourceserver-docker
oauth2 oauth2-autoconfigure oauth2-resource-server redistokenstore
Last synced: about 1 month ago
JSON representation
Oauth2 Resource Server aka Resource server which can be accessed only after getting the token with respective roles from Authorization Server
- Host: GitHub
- URL: https://github.com/jinagamvasubabu/spring-oauth2-redis-resourceserver-docker
- Owner: jinagamvasubabu
- Created: 2018-10-07T15:12:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-06T12:03:30.000Z (almost 4 years ago)
- Last Synced: 2024-10-15T13:41:12.989Z (3 months ago)
- Topics: oauth2, oauth2-autoconfigure, oauth2-resource-server, redistokenstore
- Language: Java
- Size: 23.4 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Resource Server:
Implemented Resource server using Spring boot and Oauth2 AutoConfigure.Refer [Authorization Server](`https://github.com/jinagamvasubabu/Spring-Oauth2-Redis-AuthorizationServer-Docker`) who is responsible of creating tokens with different roles and scopes.
## Features:
* Docker compatable, just execute startup.sh to start the APP. (Simplified Start)
* It has two endpoints with different scopes and different roles, refer: [Endpoints](https://github.com/jinagamvasubabu/Spring-Oauth2-Redis-ResourceServer-Docker/blob/master/src/main/java/com/vasu/ResourceServer/api/SecuredController.java)## Sample Curl Requests:
```
curl -X GET \
http://localhost:8083/resource/secure/read \
-H 'Authorization: Bearer 60122134-e39c-4838-ac29-75441e9d660d' \
-H 'Cache-Control: no-cache'
```