Snippets

nginxluaauthentication

Customize error messages and codes after 3scale Authorization Failure

Add additional error codes and messages based on the 3scale...

htmljsdeveloperportal

Pull multiple swagger spec on single cms page

This snippet allows you to pull mulitple swagger json spec...

reporting

Extract Applications including keys in CSV format

Get a CSV extract of all applications including their keys....

nginxluaauthentication

Troubleshooting Authorization Failures

Add additional logging to the nginx error log to view...

nginxluaauthentication

Basic Auth. Extracting AppId & AppKey from BASE64 encoded Authorization header

By replacing the lua call to the get_auth_params function with...

nginxluareporting

Variable Usage Reporting

How to report a variable usage based on a header...

htmlliquiddeveloperportal

Showing pricing rules for appliation plans

This snippet will show the pricing rules for a specific...

nginx

Enabling referrer filtering in Nginx

Using this snippet in your nginx.conf, 3scale will check during...

nginx

Enable CORS in nginx

This snippet will help you to enable CORS at nginx...

htmlliquiddeveloperportal

Hiding deleted applications in the developer portal

Applications cannot be deleted in 3scale unless the account that...

js

Signup Express in Node

Adding "Signup Express" function as called in the 3scale API...

nginxluas.o.a.p.

SOAP based API integration through NGinx

By default when you download NGinx Config files from the...

nginxluacaching

Use cache in case 3scale cannot be reached

In case the proxy is not able to reach the...

htmlliquidjsdeveloperportal

Redirect to external login

Using this snippet in any page in the developer portal...

varnishreporting

VCL report error code

Keep a counter of the number of error with 400...

nginx

Makefile for working with a remote Nginx

Use make to control a remote Nginx. Includes some useful...

nginx

Openresty init.d script

An init.d script to configure Openresty as a system service....

nginxluareporting

Error 404 and report if app plan doesn't match

Check if the application plan of an incoming API request...

nginxluaauthentication

Basic HTTP Auth with user_key

By replacing the default get_auth_params function by the one in...

subscribe via RSS