-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathonem2m.m.credentials.json
More file actions
57 lines (57 loc) · 1.6 KB
/
onem2m.m.credentials.json
File metadata and controls
57 lines (57 loc) · 1.6 KB
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
{
"id": "http://openinterconnect.org/onem2mmapping/schemas/onem2m.m.credentials.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Credentials",
"definitions": {
"onem2m.m.credentials": {
"type": "object",
"properties": {
"loginName": {
"type": "string",
"description": "User's login name.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.userinfo",
"x-to-ocf": [
"oic.r.userinfo.username = loginName"
],
"x-from-ocf": [
"loginName = oic.r.userinfo.username"
]
}
},
"password": {
"type": "string",
"description": "User's password.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.userinfo",
"x-to-ocf": [
"oic.r.userinfo.password = password"
],
"x-from-ocf": [
"password = oic.r.userinfo.password"
]
}
},
"token": {
"type": "string",
"description": "Authentication token e.g. OAuth token.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.userinfo",
"x-to-ocf": [
"oic.r.userinfo.token = token"
],
"x-from-ocf": [
"token = oic.r.userinfo.token"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/onem2m.m.credentials"}
],
"required": [ ]
}