-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2424 from kuzzleio/2.20.0-proposal
# [2.20.0](https://github.com/kuzzleio/kuzzle/releases/tag/2.20.0) (2023-01-17) #### New features - [ [#2423](#2423) ] Add action to generate single use token ([Aschen](https://github.com/Aschen)) #### Enhancements - [ [#2413](#2413) ] Bump segfault handler to 1.4.2 ([Shiranuit](https://github.com/Shiranuit)) - [ [#2415](#2415) ] Add Inflector.snakeCase method ([Aschen](https://github.com/Aschen)) ---
- Loading branch information
Showing
659 changed files
with
1,876 additions
and
1,844 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../framework/src/.vuepress | ||
../framework/src/.vuepress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: dump | ||
title: dump | API | Core | ||
--- | ||
|
||
# dump | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
type: branch | ||
title: admin | ||
title: admin | API | Core | ||
description: API v2.x Admin controller | ||
code: true | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: loadFixtures | ||
title: loadFixtures | API | Core | ||
--- | ||
|
||
# loadFixtures | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: loadMappings | ||
title: loadMappings | API | Core | ||
--- | ||
|
||
# loadMappings | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: loadSecurities | ||
title: loadSecurities | API | Core | ||
--- | ||
|
||
# loadSecurities | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
type: page | ||
|
||
code: true | ||
title: resetCache | ||
title: resetCache | API | Core | ||
--- | ||
|
||
# resetCache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
type: page | ||
|
||
code: true | ||
title: resetDatabase | ||
title: resetDatabase | API | Core | ||
--- | ||
|
||
# resetDatabase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
type: page | ||
|
||
code: true | ||
title: resetSecurity | ||
title: resetSecurity | API | Core | ||
--- | ||
|
||
# resetSecurity | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
type: page | ||
|
||
code: true | ||
title: shutdown | ||
title: shutdown | API | Core | ||
--- | ||
|
||
# shutdown | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: checkRights | ||
title: checkRights | API | Core | ||
--- | ||
|
||
# checkRights | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: checkToken | ||
title: checkToken | API | Core | ||
--- | ||
|
||
# checkToken | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: createApiKey | ||
title: createApiKey | API | Core | ||
--- | ||
|
||
# createApiKey | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: createToken | API | Core | ||
--- | ||
|
||
# createToken | ||
|
||
<SinceBadge version="2.20.0"/> | ||
|
||
Creates a token for the currently loggued user. | ||
|
||
::: info | ||
It is not possible to create token that does not expire to prevent memory leaks. | ||
For this you should use [auth:createApiKey](/core/2/api/controllers/auth/create-api-key) instead. | ||
::: | ||
|
||
--- | ||
|
||
## Query Syntax | ||
|
||
### HTTP | ||
|
||
```http | ||
URL: http://kuzzle:7512/_createToken[&expiresIn=900][&singleUse] | ||
Method: POST | ||
Body: | ||
``` | ||
|
||
```js | ||
{ | ||
} | ||
``` | ||
|
||
### Other protocols | ||
|
||
```js | ||
{ | ||
"controller": "auth", | ||
"action": "createToken", | ||
|
||
|
||
// optional arguments | ||
"singleUse": true, | ||
"expiresIn": 900 | ||
} | ||
``` | ||
|
||
--- | ||
|
||
## Arguments | ||
|
||
### Optional | ||
|
||
- `expiresIn`: set the expiration duration (`-1` by default) | ||
- if a raw number is provided (not enclosed between quotes), then the expiration delay is in milliseconds. Example: `86400000` | ||
- if this value is a string, then its content is parsed by the [ms](https://www.npmjs.com/package/ms) library. Examples: `"6d"`, `"10h"` | ||
- `singleUse`: if set to `true`, then the token can be used only once | ||
|
||
--- | ||
|
||
## Body properties | ||
|
||
--- | ||
|
||
## Response | ||
|
||
Returns an object containing the token: | ||
|
||
- `expiresAt`: expiration date in UNIX micro-timestamp format | ||
- `ttl`: original ttl | ||
- `token`: authentication token associated with this API key | ||
- `singleUse`: `true` if single use token | ||
|
||
```js | ||
{ | ||
"status": 200, | ||
"error": null, | ||
"controller": "auth", | ||
"action": "createToken", | ||
"requestId": "<unique request identifier>", | ||
"result": { | ||
"expiresAt": -1, | ||
"ttl": -1, | ||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiJNeSIsImlhdCI6MTU3MzE4NTkzNSwiZXhwIjoxNTczMTg1OTM0fQ.08qAnSD03V0N1OcviGVUAZEjjv4DxULTgoQQwojn1PA", | ||
"singleUse": true, | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: credentialsExist | ||
title: credentialsExist | API | Core | ||
--- | ||
|
||
# credentialsExist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: deleteApiKey | ||
title: deleteApiKey | API | Core | ||
--- | ||
|
||
# deleteApiKey | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: getCurrentUser | ||
title: getCurrentUser | API | Core | ||
--- | ||
|
||
# getCurrentUser | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: getMyCredentials | ||
title: getMyCredentials | API | Core | ||
--- | ||
|
||
# getMyCredentials | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: getMyRights | ||
title: getMyRights | API | Core | ||
--- | ||
|
||
# getMyRights | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: getStrategies | ||
title: getStrategies | API | Core | ||
--- | ||
|
||
# getStrategies | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
type: branch | ||
code: true | ||
title: auth | ||
title: auth | API | Core | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: login | ||
title: login | API | Core | ||
--- | ||
|
||
# login | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: logout | ||
title: logout | API | Core | ||
--- | ||
|
||
# logout | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: refreshToken | ||
title: refreshToken | API | Core | ||
--- | ||
|
||
# refreshToken | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: searchApiKeys | ||
title: searchApiKeys | API | Core | ||
--- | ||
|
||
# searchApiKeys | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: updateSelf | ||
title: updateSelf | API | Core | ||
--- | ||
|
||
# updateSelf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: deleteByQuery | ||
title: deleteByQuery | API | Core | ||
--- | ||
|
||
# deleteByQuery | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: import | ||
title: import | API | Core | ||
--- | ||
|
||
# import | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
type: branch | ||
code: true | ||
title: bulk | ||
title: bulk | API | Core | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: mWrite | ||
title: mWrite | API | Core | ||
--- | ||
|
||
# mWrite | ||
|
Oops, something went wrong.