Documentation
¶
Overview ¶
A Gozerian plugin that validates an API Key passed in a header by contacting the localhost apid server. If the API Key is valid, the key will be deleted from the header, the data from the server will be stored in the control.FlowData and the request will continue.
Sample Configuration:
- verifyAPIKey: apidUri: http://localhost:8181/verifiers/apikey organization: radical-new environment: test keyHeader: X-Apigee-API-Key
Index ¶
Constants ¶
View Source
const DEFAULT_APID_URI = "http://localhost:8181/verifiers/apikey"
View Source
const DEFAULT_KEY_HEADER = "X-Apigee-API-Key"
View Source
const UNAUTHORIZED_MESSAGE = "Unauthorized"
Variables ¶
This section is empty.
Functions ¶
func CreateFitting ¶
CreateFitting exported function to create the fitting
Types ¶
type ErrResultDetail ¶
type KMSResponseFail ¶
type KMSResponseFail struct { Errinfo ErrResultDetail `json:"result"` Type string `json:"type"` }
type KMSResponseSuccess ¶
Click to show internal directories.
Click to hide internal directories.