forked from apigrove/apigrove
-
Notifications
You must be signed in to change notification settings - Fork 1
apigrove GUI API basic authentication
bradleywangia edited this page Sep 28, 2012
·
3 revisions
This tutorial demonstrates how to restrict access to your API to apiGrove using an basic authentication
Please ensure the following prerequites are met
- A working install of apiGrove and apiGroveGUI
- A web browser
- Open your installed apiGrove GUI url in a browser
- Login to apiGroveGUI /dev/images/apiGroveGUI_Login.png
- Click on API in the top menu
- Click Create New
- Enter a Name for your API 'myBasicAuthTweets'
- Enter an Endpoint
- Enter the target host where this API is hosted
- Click Advanced button
- Click The Enabled button (makes your API active immediately upon creation)
- Click the ‘Basic’ button for Authenitcation Type
- Leave the HTTPS button unclicked
- Enter 9 for the Transactions Per Second (TPS) Threshold
- Enter 10 for the Transactions Per Minute (TPM) Threshold
- Select the GET button for allowed HTTP calls
- Click Save /dev/images/apiGroveGUI_APIBasic2.png
- apiGrove GUI returns a success message and lists your onboarded API
- Click on Auth in the top menu
- Click Create New
- Enter an ID 'basictwitter' for this auth
- Enter username test
- Enter password tester
- Click Save
- 'basictwitter' is displayed in a listing of your auths
The policy associates the auth with your API.
- Click on Policy in the top menu
- Click Create New
- Enter ID twittterBasicPolicy
- Select the API created in earlier steps
- Select the Auth created
- Click submit query /dev/images/apiGroveGUI_Policy_Basic.png
- Attempting to access the API without supplying username and password returns a unauthorized message
- Accessing the API with the correct username and password returns search results from the twitter API