https://github.com/epilot-dev/poc-files-middle-layer
https://github.com/epilot-dev/poc-files-middle-layer
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/epilot-dev/poc-files-middle-layer
- Owner: epilot-dev
- Created: 2023-09-11T09:10:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-11T09:56:02.000Z (over 2 years ago)
- Last Synced: 2023-09-11T11:10:51.688Z (over 2 years ago)
- Language: Java
- Size: 188 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# poc-files-middle-layer
Proof of concept application to act as a middle layer for external file storage.
# Getting started
- Build the application: `./mvnw install`
- Run the application: `mvn spring-boot:run`
- Clean the build target: `./mvnw clean`
# Token authorization
In the `src/main/java/com/epilot/files/auth`:
- AccessTokenFilter.java shows an example filter implementation that reads the Bearer token and verifies it. The example uses `[java-jwt](https://github.com/auth0/java-jwt)` library for token validation.
- AwsCognitoRSAKeyProvider.java implements a custom RSA key provider that is initialized with a URL to the JSON Web Key Sets. It provides the public key needed for the token validation.
- src/main/resources/application.properties contains the configuration file where the JWKS URL is configured