forked from SelfPrivacy/wiki.selfprivacy.org
Other updates
parent
f889230905
commit
6c7d97b230
|
@ -66,7 +66,7 @@ API available as Swagger documentation, markdown version is below.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### o_cserv
|
### ocserv
|
||||||
|
|
||||||
| Method | URI | Name | Summary |
|
| Method | URI | Name | Summary |
|
||||||
|---------|---------|--------|---------|
|
|---------|---------|--------|---------|
|
||||||
|
@ -163,9 +163,9 @@ DELETE /auth/tokens
|
||||||
|
|
||||||
#### Parameters
|
#### Parameters
|
||||||
|
|
||||||
| Name | Source | Type | Go type | Separator | Required | Default | Description |
|
| Name | Source | Type | Required | Default | Description |
|
||||||
|------|--------|------|---------|-----------| :------: |---------|-------------|
|
|------|--------|------| :------: |---------|-------------|
|
||||||
| token | `body` | [DeleteAuthTokensBody](#delete-auth-tokens-body) | `DeleteAuthTokensBody` | | ✓ | | Token's name to delete |
|
| token | `body` | [DeleteAuthTokensBody](#delete-auth-tokens-body) | ✓ | | Token's name to delete |
|
||||||
|
|
||||||
#### All responses
|
#### All responses
|
||||||
| Code | Status | Description |
|
| Code | Status | Description |
|
||||||
|
@ -180,9 +180,9 @@ DELETE /auth/tokens
|
||||||
|
|
||||||
**Properties**
|
**Properties**
|
||||||
|
|
||||||
| Name | Type | Go type | Required | Default | Description | Example |
|
| Name | Type | Required | Default | Description | Example |
|
||||||
|------|------|---------|:--------:| ------- |-------------|---------|
|
|------|------|:--------:| ------- |-------------|---------|
|
||||||
| token | string| `string` | ✓ | | Token name to delete | |
|
| token | string| ✓ | | Token name to delete | |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -197,10 +197,10 @@ DELETE /services/ssh/keys/{username}
|
||||||
|
|
||||||
#### Parameters
|
#### Parameters
|
||||||
|
|
||||||
| Name | Source | Type | Go type | Separator | Required | Default | Description |
|
| Name | Source | Type | Required | Default | Description |
|
||||||
|------|--------|------|---------|-----------| :------: |---------|-------------|
|
|------|--------|------| :------: |---------|-------------|
|
||||||
| username | `path` | string | `string` | | ✓ | | User to delete keys for |
|
| username | `path` | string | ✓ | | User to delete keys for |
|
||||||
| public_key | `body` | [DeleteServicesSSHKeysUsernameBody](#delete-services-ssh-keys-username-body) | `DeleteServicesSSHKeysUsernameBody` | | ✓ | | Key to delete |
|
| public_key | `body` | [DeleteServicesSSHKeysUsernameBody](#delete-services-ssh-keys-username-body) | ✓ | | Key to delete |
|
||||||
|
|
||||||
#### All responses
|
#### All responses
|
||||||
| Code | Status | Description |
|
| Code | Status | Description |
|
||||||
|
@ -215,9 +215,9 @@ DELETE /services/ssh/keys/{username}
|
||||||
|
|
||||||
**Properties**
|
**Properties**
|
||||||
|
|
||||||
| Name | Type | Go type | Required | Default | Description | Example |
|
| Name | Type | Required | Default | Description | Example |
|
||||||
|------|------|---------|:--------:| ------- |-------------|---------|
|
|------|------|:--------:| ------- |-------------|---------|
|
||||||
| public_key | string| `string` | ✓ | | | |
|
| public_key | string| ✓ | | | |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -232,9 +232,9 @@ DELETE /users/{username}
|
||||||
|
|
||||||
#### Parameters
|
#### Parameters
|
||||||
|
|
||||||
| Name | Source | Type | Go type | Separator | Required | Default | Description |
|
| Name | Source | Type | Required | Default | Description |
|
||||||
|------|--------|------|---------|-----------| :------: |---------|-------------|
|
|------|--------|------| :------: |---------|-------------|
|
||||||
| username | `path` | string | `string` | | ✓ | | User to delete |
|
| username | `path` | string | ✓ | | User to delete |
|
||||||
|
|
||||||
#### All responses
|
#### All responses
|
||||||
| Code | Status | Description |
|
| Code | Status | Description |
|
||||||
|
@ -261,9 +261,9 @@ GET /api/version
|
||||||
Status: OK
|
Status: OK
|
||||||
|
|
||||||
###### <span id="get-api-version-200-schema"></span> Schema
|
###### <span id="get-api-version-200-schema"></span> Schema
|
||||||
| Name | Type | Go type | Required | Default | Description | Example |
|
| Name | Type | Required | Default | Description | Example |
|
||||||
|------|------|---------|:--------:| ------- |-------------|---------|
|
|------|------|:--------:| ------- |-------------|---------|
|
||||||
| version | string| `string` | | | API version | |
|
| version | string| | | API version | |
|
||||||
|
|
||||||
##### <span id="get-api-version-401"></span> 401 - Unauthorized
|
##### <span id="get-api-version-401"></span> 401 - Unauthorized
|
||||||
Status: Unauthorized
|
Status: Unauthorized
|
||||||
|
|
|
@ -1 +1,9 @@
|
||||||
# Authorization
|
# 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
|
# 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
|
**SelfPrivacy app versions affected:** ≤0.2.4; fixed in 0.3.0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue