Skip to main content

Auvious Auth Server API v1.8.8-beta.0

Auvious Auth Server provides the core security related services.

info

You are viewing REST API documentation. This documentation is auto-generated from a swagger specification which itself is generated from annotations in the source code of the project. It is possible that this documentation includes bugs and that code samples are incomplete or wrong.

Authentication

Keys

Create a key

POST http://auvious.video/security/keys HTTP/1.1
Host: auvious.video
Content-Type: application/json
Accept: application/json

Use this to create a new key

Request body

{
"type": "SSH_RSA",
"organizationId": "string",
"privateKey": "string",
"publicKey": "string",
"key": "string",
"comment": "string"
}

Parameters

ParameterInTypeRequiredDescription
bodybodyCreateKeyWebCommandtruenone

Responses

Overview
StatusMeaningDescriptionSchema
200OKOKCreateKeyResult
Examples

200 Response

{
"id": "string",
"publicKey": "string",
"key": "string"
}
caution

To perform this operation, you must be authenticated by means of one of the following methods: BearerToken, OAuth2ClientCredentials

Code samples

curl -X POST http://auvious.video/security/keys \
-H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer {access-token}'

Retrieve a key

GET http://auvious.video/security/keys/{id} HTTP/1.1
Host: auvious.video
Accept: application/json

Use this to retrieve a key, only services and admins are allowed, but private parts are hidden if not a service

Parameters

ParameterInTypeRequiredDescription
idpathstringtruenone

Responses

Overview
StatusMeaningDescriptionSchema
200OKOKKey
Examples

200 Response

{
"id": "string",
"userId": "string",
"organizationId": "string",
"type": "SSH_RSA",
"keySize": 0,
"privateKey": "string",
"publicKey": "string",
"key": "string",
"comment": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
caution

To perform this operation, you must be authenticated by means of one of the following methods: BearerToken, OAuth2ClientCredentials

Code samples

curl -X GET http://auvious.video/security/keys/{id} \
-H 'Accept: application/json' \ -H 'Authorization: Bearer {access-token}'

Schemas

CreateKeyWebCommand

{
"type": "SSH_RSA",
"organizationId": "string",
"privateKey": "string",
"publicKey": "string",
"key": "string",
"comment": "string"
}

create key web command model

Properties

NameTypeRequiredRestrictionsDescription
typestringtruenonekey type, mandatory
organizationIdstringfalsenoneorganizationId, optional, only supplied by internal services
privateKeystringfalsenoneprivate key, include at least this if you want to import a key
publicKeystringfalsenonepublic key, include this optionally if you want to import a key
keystringfalsenonekey include this if you want to import a symmetric type key
commentstringfalsenonekey comment, supply this to include more information about the key
Enumerated Values
PropertyValue
typeSSH_RSA

CreateKeyResult

{
"id": "string",
"publicKey": "string",
"key": "string"
}

Result of keypair create operation

Properties

NameTypeRequiredRestrictionsDescription
idstringfalsenonekeypair id
publicKeystringfalsenonepublic key for asymmetric keys
keystringfalsenonekey value, for symmetric keys

Key

{
"id": "string",
"userId": "string",
"organizationId": "string",
"type": "SSH_RSA",
"keySize": 0,
"privateKey": "string",
"publicKey": "string",
"key": "string",
"comment": "string",
"createdAt": "2019-08-24T14:15:22Z"
}

key entity

Properties

NameTypeRequiredRestrictionsDescription
idstringfalsenonekey reference id
userIdstringfalsenoneuser id of creator
organizationIdstringfalsenoneorganization id of creator
typestringfalsenonekey type
keySizeinteger(int32)falsenonekey size
privateKeystringfalsenoneprivate part of key, if assymetric type
publicKeystringfalsenonepublic part of key, if assymetric type
keystringfalsenonekey part for non assymetric keys
commentstringfalsenonekey comment
createdAtstring(date-time)falsenonecreation timestamp
Enumerated Values
PropertyValue
typeSSH_RSA