Skip to content

Commit 0de1b0d

Browse files
committed
updating read me for redirect url
1 parent faa2a67 commit 0de1b0d

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,23 @@ exit
6262
There is also an example using sqlite, see 'configure settings'.
6363

6464

65+
## Get API Key
66+
We need to register API Tester as an App / Consumer of the API we are testing.
67+
68+
When the Consumer / App is created on the API, **the redirect URL MUST point to this host**, e.g. `http://localhost:8084`
69+
70+
Make sure you don't add a trailing slash to the redirect URL etc.
71+
72+
73+
74+
6575
## Configure settings
6676

6777
Create and edit `apitester/apitester/local_settings.py`:
6878

79+
80+
81+
6982
### Postgres Example
7083

7184
```python
@@ -75,8 +88,8 @@ SECRET_KEY = '<random string>'
7588
API_HOST = '<hostname>'
7689

7790
# Consumer key + secret to authenticate the _app_ against the API
78-
# When the app is created on the API, the redirect URL should point to this
79-
# host + /obp, e.g. `http://localhost:8000`
91+
92+
8093
OAUTH_CONSUMER_KEY = '<key>'
8194
OAUTH_CONSUMER_SECRET = '<secret>'
8295

0 commit comments

Comments
 (0)