Skip to content

Commit

Permalink
updating read me for redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
simonredfern committed Feb 1, 2019
1 parent faa2a67 commit 0de1b0d
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -75,8 +88,8 @@ SECRET_KEY = '<random string>'
API_HOST = '<hostname>'

# 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 = '<key>'
OAUTH_CONSUMER_SECRET = '<secret>'

Expand Down

0 comments on commit 0de1b0d

Please sign in to comment.