summaryrefslogtreecommitdiff
path: root/doc/api/applications.md
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-22 18:08:47 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-22 18:08:47 +0000
commit3832718d895bf8268f3e3aac85948e2792769345 (patch)
tree4a322399af568b6203e732ae2e2f3efc39b23a67 /doc/api/applications.md
parent180cd023a11c0eb413ad0de124d9758ea25672bd (diff)
downloadgitlab-ce-3832718d895bf8268f3e3aac85948e2792769345.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/applications.md')
-rw-r--r--doc/api/applications.md17
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
}
]
```