From 0de1b0d1eccb567ee903d57ca89abb3a54b8fe47 Mon Sep 17 00:00:00 2001 From: Simon Redfern Date: Fri, 1 Feb 2019 16:21:19 +0100 Subject: [PATCH] updating read me for redirect url --- README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9d72de9..301b9a0 100644 --- a/README.md +++ b/README.md @@ -62,10 +62,23 @@ exit There is also an example using sqlite, see 'configure settings'. +## Get API Key +We need to register API Tester as an App / Consumer of the API we are testing. + +When the Consumer / App is created on the API, **the redirect URL MUST point to this host**, e.g. `http://localhost:8084` + +Make sure you don't add a trailing slash to the redirect URL etc. + + + + ## Configure settings Create and edit `apitester/apitester/local_settings.py`: + + + ### Postgres Example ```python @@ -75,8 +88,8 @@ SECRET_KEY = '' API_HOST = '' # Consumer key + secret to authenticate the _app_ against the API -# When the app is created on the API, the redirect URL should point to this -# host + /obp, e.g. `http://localhost:8000` + + OAUTH_CONSUMER_KEY = '' OAUTH_CONSUMER_SECRET = ''