Access Token Interceptor - getheimdall/heimdall GitHub Wiki

Definition

The Access Token interceptor is used to check if the request send the Access Token that is registered for the Api. For this interceptor to work an Access Token needs to be created in Heimdall and added to a Plan that is associated to the Api.

Details

AccessToken

Name: Simple name for your interceptor

Description: A simple description for your interceptor

Life Cycle: The appropriate life cycle for the interceptor

  • Life cycles allowed:
    • Api
    • Plan
    • Resource
    • Operation

Content: Configuration of the interceptor

JSON example:

{
  "location": "HEADER",
  "name": "access_token"
}

location: where in the request the access token will be sent. Allowed values: HEADER, QUERY_PARAM

name: name of the key for the access token