Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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'
```