diff options
Diffstat (limited to 'doc/api/applications.md')
-rw-r--r-- | doc/api/applications.md | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/doc/api/applications.md b/doc/api/applications.md index bcd119d1969..549828a983e 100644 --- a/doc/api/applications.md +++ b/doc/api/applications.md @@ -22,11 +22,12 @@ POST /applications Parameters: -| Attribute | Type | Required | Description | -|:---------------|:-------|:---------|:---------------------------------| -| `name` | string | yes | Name of the application. | -| `redirect_uri` | string | yes | Redirect URI of the application. | -| `scopes` | string | yes | Scopes of the application. | +| Attribute | Type | Required | Description | +|:---------------|:--------|:---------|:---------------------------------| +| `name` | string | yes | Name of the application. | +| `redirect_uri` | string | yes | Redirect URI of the application. | +| `scopes` | string | yes | Scopes of the application. | +| `confidential` | boolean | no | The application will be used where the client secret can be kept confidential. Native mobile apps and Single Page Apps are considered non-confidential. Defaults to `true` if not supplied | Example request: @@ -42,7 +43,8 @@ Example response: "application_id": "5832fc6e14300a0d962240a8144466eef4ee93ef0d218477e55f11cf12fc3737", "application_name": "MyApplication", "secret": "ee1dd64b6adc89cf7e2c23099301ccc2c61b441064e9324d963c46902a85ec34", - "callback_url": "http://redirect.uri" + "callback_url": "http://redirect.uri", + "confidential": true } ``` @@ -68,7 +70,8 @@ Example response: "id":1, "application_id": "5832fc6e14300a0d962240a8144466eef4ee93ef0d218477e55f11cf12fc3737", "application_name": "MyApplication", - "callback_url": "http://redirect.uri" + "callback_url": "http://redirect.uri", + "confidential": true } ] ``` |