Skip to content

Commit

Permalink
Update api_authentication.md
Browse files Browse the repository at this point in the history
  • Loading branch information
k-anderson committed Mar 29, 2017
1 parent 66de557 commit b89410f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion applications/crossbar/doc/api_authentication.md
Expand Up @@ -4,7 +4,7 @@ Generating an auth token from your API token

Use your account's API token to instruct Crossbar to create an authentication token to be used on subsequent requests requiring authentication.

#### About API Authentication
#### Getting your API key from the API (must already authenticate as a user):

Get your API key for your account:

Expand All @@ -26,6 +26,18 @@ curl -v -X GET \
}
```

#### Getting the API Key from the database:

Get your API key by requesting the account document directly from the database (through haproxy):
```shell
curl http://127.0.0.1:15984/accounts/{ACCOUNT_ID} 2> /dev/null | egrep -o '"pvt_api_key":"[0-9a-f]+"'
```


```
"pvt_api_key":"{API_KEY}"
```

#### Schema

Provides an auth-token via an Account API key
Expand Down

0 comments on commit b89410f

Please sign in to comment.