Run the sample scripts

API Gateway includes sample Jython scripts for all supported OAuth flows in the following directory of your API Gateway installation:

INSTALL_DIR/samples/scripts/oauth

To run a sample script:

  1. Open a UNIX shell or DOS command prompt in the following directory:
  2. INSTALL_DIR/samples/scripts
  3. Use the run.sh or run.bat utility to execute the appropriate script.

The following examples show how to run the implicit_grant.py sample script:

Windows

run.bat oauth\implicit_grant.py

UNIX/Linux

sh run.sh oauth/implicit_grant.py

Related Links