-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathauthentication-verifier-api.yaml
100 lines (100 loc) · 3.47 KB
/
authentication-verifier-api.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
openapi: 3.0.2
info:
description: |-
This API is to allow a Remote ID client to verify the authentication information received by a Remote ID transmitter
[Github](https://github.com/opendroneid/authentication-verifier-api/tree/auth_1.1)
version: "1.1.0"
title: Remote ID Verifier API
contact:
email: [email protected]
license:
name: Apache 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
paths:
/remoteid/verify/:
post:
summary: Verifies ASTM Remote ID Authentication Package
description: Verifies ASTM Remote ID Authentication
responses:
'200':
description: Standard Response
content:
application/json:
schema:
type: object
required:
- ResultCode
- ResultString
properties:
ResultCode:
type: integer
description: >
Result Code:
0: Signature and Message Valid
1: Message Invalid
2: Key Expired, Message Valid
3: Unknown Validity (key not available)
4: Key Revoked
5: Unknown ID
6: Delegated
ResultString:
type: string
description: If Delegated, Delegated Endpoint URL, otherwise Result Description
example: Signature and Message Valid
'400':
description: 'Invalid Request'
requestBody:
description: ID Info to verify
content:
application/json:
schema:
type: object
required:
- AuthType
- UASID
- UASIDType
- OperatorID
- MessageSet
- AuthSignature
- TimeStamp
properties:
AuthType:
type: integer
minimum: 1
maximum: 5
description: >
1. UASID
2. OperatorID
3. MessageSet
4. Network
5. SpecificAuthMethod
example: 1
UASID:
type: string
example: 'N.12345'
UASIDType:
type: integer
minimum: 1
maximum: 4
description: >
1. ANSI/CTA-2063-A Serial Number
2. UAS Registration ID
3. UTM UUID
4. Specific Session ID
example: 2
OperatorID:
type: string
example: 'D.OP55544'
MessageSet:
type: string
format: byte
example: 'YmFzZTY0IGV4YW1wbGU='
description: If using messageSet authtype, base64 encode of message set
AuthSignature:
type: string
description: 'Signature with authType data encoded'
example: '92429d82a41e930486c6de5ebda9602d55c39986'
TimeStamp:
type: string
format: date-time
example: '2021-08-29T09:12:33.001Z'