OBC Tokens API
- GET /health
- Microservice health status endpoint
- GET /.well-known/openid-configuration
- Endpoint to fetch the openid-configuration for this service.
- GET /.well-known/jwks.json
- Endpoint to fetch the JWKS file for this service.
- POST /jwt/create
- Endpoint for Routeware services to create a JWT on behalf of a OBC user.
- Requires header: Authorization Bearer $JWT
- Requires header: Content-Type: 'application/json'
- Request body must be JSON, with these parameters:
- user: username of the driver
- tenant: Routeware Tenant ID, starting with app name. Eg: encore:1234, rcc:abcdisposal
- scope: desired scope for this JWT.
- Returns JSON with { access_token: $jwt, token_type: 'Bearer', expires_in: 86400000 }
- GET /jwt/validate
- Endpoint to validate a OBC JWT and return the body. Helpful for debugging.
- Requires header: Authorization Bearer $JWT
- Returns JSON body containing the decoded JWT