Starter template for protected micro-service.
- Node.js 12.x
- ECDSA JWKS endpoint (ex: Gandalf)
Note: these steps are only for non-docker users
-
Download all dependencies:
npm install
-
Build service (only for production)
npm run build
- TOKEN_ISSUER - UID of signing endpoint
- TOKEN_AUDIENCE - UID of this app
- JWK_URL - JWKS endpoint which exposes your signing keys
- APP_PORT - Application port
- HTTP_TIMEOUT - Waiting time before requests get cancelled (in seconds)
Note: these steps are only for non-docker users
npm run start:debug
npm run start:prod
Not listed right now ;(
- Cache invalidation when public key not found
- Algorithm configuration