apigee / microgateway-plugins

Plugins for microgateway, oauth, analytics, spike arrest, etc...
Other
30 stars 54 forks source link

140025210 add failOpen config to oauth #146

Closed gaonkar18y closed 5 years ago

gaonkar18y commented 5 years ago

add failOpen and failopenGraceInterval configuration to oauth. If failOpen is true and failopenGraceInterval is set the old token is used in case of 5xx errors in verifyApiKey call. To use this feature set in oauth config as:

oauth: failopenGraceInterval: 5 (in seconds, old token will be used for this time duration) failOpen: true

This feature is applicable only if oauth.cacheKey is set to true.