Other updates
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
f889230905
commit
6c7d97b230
|
@ -66,7 +66,7 @@ API available as Swagger documentation, markdown version is below.
|
|||
|
||||
|
||||
|
||||
### o_cserv
|
||||
### ocserv
|
||||
|
||||
| Method | URI | Name | Summary |
|
||||
|---------|---------|--------|---------|
|
||||
|
@ -163,9 +163,9 @@ DELETE /auth/tokens
|
|||
|
||||
#### Parameters
|
||||
|
||||
| Name | Source | Type | Go type | Separator | Required | Default | Description |
|
||||
|------|--------|------|---------|-----------| :------: |---------|-------------|
|
||||
| token | `body` | [DeleteAuthTokensBody](#delete-auth-tokens-body) | `DeleteAuthTokensBody` | | ✓ | | Token's name to delete |
|
||||
| Name | Source | Type | Required | Default | Description |
|
||||
|------|--------|------| :------: |---------|-------------|
|
||||
| token | `body` | [DeleteAuthTokensBody](#delete-auth-tokens-body) | ✓ | | Token's name to delete |
|
||||
|
||||
#### All responses
|
||||
| Code | Status | Description |
|
||||
|
@ -180,9 +180,9 @@ DELETE /auth/tokens
|
|||
|
||||
**Properties**
|
||||
|
||||
| Name | Type | Go type | Required | Default | Description | Example |
|
||||
|------|------|---------|:--------:| ------- |-------------|---------|
|
||||
| token | string| `string` | ✓ | | Token name to delete | |
|
||||
| Name | Type | Required | Default | Description | Example |
|
||||
|------|------|:--------:| ------- |-------------|---------|
|
||||
| token | string| ✓ | | Token name to delete | |
|
||||
|
||||
|
||||
|
||||
|
@ -197,10 +197,10 @@ DELETE /services/ssh/keys/{username}
|
|||
|
||||
#### Parameters
|
||||
|
||||
| Name | Source | Type | Go type | Separator | Required | Default | Description |
|
||||
|------|--------|------|---------|-----------| :------: |---------|-------------|
|
||||
| username | `path` | string | `string` | | ✓ | | User to delete keys for |
|
||||
| public_key | `body` | [DeleteServicesSSHKeysUsernameBody](#delete-services-ssh-keys-username-body) | `DeleteServicesSSHKeysUsernameBody` | | ✓ | | Key to delete |
|
||||
| Name | Source | Type | Required | Default | Description |
|
||||
|------|--------|------| :------: |---------|-------------|
|
||||
| username | `path` | string | ✓ | | User to delete keys for |
|
||||
| public_key | `body` | [DeleteServicesSSHKeysUsernameBody](#delete-services-ssh-keys-username-body) | ✓ | | Key to delete |
|
||||
|
||||
#### All responses
|
||||
| Code | Status | Description |
|
||||
|
@ -215,9 +215,9 @@ DELETE /services/ssh/keys/{username}
|
|||
|
||||
**Properties**
|
||||
|
||||
| Name | Type | Go type | Required | Default | Description | Example |
|
||||
|------|------|---------|:--------:| ------- |-------------|---------|
|
||||
| public_key | string| `string` | ✓ | | | |
|
||||
| Name | Type | Required | Default | Description | Example |
|
||||
|------|------|:--------:| ------- |-------------|---------|
|
||||
| public_key | string| ✓ | | | |
|
||||
|
||||
|
||||
|
||||
|
@ -232,9 +232,9 @@ DELETE /users/{username}
|
|||
|
||||
#### Parameters
|
||||
|
||||
| Name | Source | Type | Go type | Separator | Required | Default | Description |
|
||||
|------|--------|------|---------|-----------| :------: |---------|-------------|
|
||||
| username | `path` | string | `string` | | ✓ | | User to delete |
|
||||
| Name | Source | Type | Required | Default | Description |
|
||||
|------|--------|------| :------: |---------|-------------|
|
||||
| username | `path` | string | ✓ | | User to delete |
|
||||
|
||||
#### All responses
|
||||
| Code | Status | Description |
|
||||
|
@ -261,9 +261,9 @@ GET /api/version
|
|||
Status: OK
|
||||
|
||||
###### <span id="get-api-version-200-schema"></span> Schema
|
||||
| Name | Type | Go type | Required | Default | Description | Example |
|
||||
|------|------|---------|:--------:| ------- |-------------|---------|
|
||||
| version | string| `string` | | | API version | |
|
||||
| Name | Type | Required | Default | Description | Example |
|
||||
|------|------|:--------:| ------- |-------------|---------|
|
||||
| version | string| | | API version | |
|
||||
|
||||
##### <span id="get-api-version-401"></span> 401 - Unauthorized
|
||||
Status: Unauthorized
|
||||
|
|
|
@ -1 +1,9 @@
|
|||
# Authorization
|
||||
## Before 1.2.0
|
||||
At that time, only one access token could be used. It is declared during nixos-infect stage and generated by the mobile app.
|
||||
## After 1.2.0
|
||||
New auth system was introduced in 1.2.0. See [[migrations#Create tokens JSON file]] for details on migration to the new system.
|
||||
### Tokens storage
|
||||
### Token control
|
||||
### New device token creation
|
||||
### Recovery token
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# SPCVE-0001
|
||||
**API versions affected**: [[changelog#Input sanitization added swagger 17 Nov 2021 https git selfprivacy org SelfPrivacy selfprivacy-rest-api pulls 5|All pre-1.1.0 releases]]
|
||||
**API versions affected**: [[changelog#Input sanitization added swagger https git selfprivacy org SelfPrivacy selfprivacy-rest-api pulls 5|All pre-1.1.0 releases]]
|
||||
|
||||
**SelfPrivacy app versions affected:** ≤0.2.4; fixed in 0.3.0
|
||||
|
||||
|
|
Loading…
Reference in New Issue