FLAT
FLAT
Couper
Sevenval Technologies
Docker Image
Github
master
FLAT
Cookbook
How can I see what the client requested?
Increasing the Request Timeout
Performing Additional Checks on JWT Access Tokens
Logging Custom Fields
Proxying requests to Upstream APIs
Testing API Requests
Forwarding a Request to an Upstream API
Sending POST Requests
Using Swagger UI for API Documentation
Testing Templates
Using Environment Variables
File Serving
Passing Header Fields to the Client
Testing with Backend Requests
Processing Upstream Responses
Performing Additional Checks on JWT Access Tokens
Handling Errors with an Error Flow
Using the Built-in Mocking
How can I pass an arbitrary header field to an upstream system?
Extracting Common Initialization Flow Tasks
Encoding and Decoding JWT
Protecting Access using JWT Tokens
Reference
Administration
Tutorial
Changelog
Powered by GitBook

Performing Additional Checks on JWT Access Tokens

swagger.yaml:

swagger: "2.0"
basePath: /
securityDefinitions:
JWTCookie:
type: apiKey
in: header
name: Cookie
x-flat-cookiename: authtoken
x-flat-jwt:
key:
file: pubkey.pem
alg: RS256
claims:
iss: "The token provider"
scope-claim: sc # default: scope
out-var: $jwt
post-check-flow: check-jwt.xml
paths:
/projects/{p}:
x-flat-flow: ...
get:
security:
- JWTCookie: [ read ]
patch:
security:
- JWTCookie: [ write ]
Previous
Increasing the Request Timeout
Next
Logging Custom Fields
Last updated 2 months ago
Edit on GitHub