-
Notifications
You must be signed in to change notification settings - Fork 160
/
authentication-mfa.yaml
63 lines (61 loc) · 2.1 KB
/
authentication-mfa.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
openapi: 3.0.3
info:
title: Eclipse Kapua REST API - Authentication
version: '1.0'
contact:
name: Eclipse Kapua Dev Team
url: https://eclipse.org/kapua
email: kapua-dev@eclipse.org
license:
name: Eclipse Public License 2.0
url: https://www.eclipse.org/legal/epl-2.0
paths:
/authentication/mfa:
post:
tags:
- Authentication
summary: MFA Login - User, Password and authenticationCode/trustKey
description: This resoruce is deprecated and will be removed in future releases. Please make use of /authentication/user and properties in UsernamePasswordCredentials.
operationId: authenticationMfaUser
parameters:
- name: enableTrust
in: query
description: If true, the machine trust key is enabled for the MfaOption
schema:
type: boolean
default: false
required: false
requestBody:
content:
application/json:
schema:
type: object
properties:
username:
$ref: './authentication.yaml#/components/schemas/username'
password:
$ref: './authentication.yaml#/components/schemas/password'
authenticationCode:
$ref: './authentication.yaml#/components/schemas/authenticationCode'
trustKey:
$ref: './authentication.yaml#/components/schemas/trustKey'
required:
- username
- password
examples:
kapua-sys:
description: Default kapua-sys login credentials (with dummy MFA)
value:
username: kapua-sys
password: kapua-password
authenticationCode: 123456
responses:
200:
description: The new AccessToken
content:
application/json:
schema:
$ref: './authentication.yaml#/components/schemas/accessToken'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
security: [ ]