@itentialopensource/adapter-nokia_altiplano 0.7.3 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/TAB2.md +9 -2
- package/entities/.system/action.json +25 -0
- package/entities/.system/mockdatafiles/getRefreshToken-default.json +6 -0
- package/entities/.system/refreshTokenRequest.json +30 -0
- package/entities/.system/schemaTokenResp.json +14 -1
- package/package.json +2 -2
- package/propertiesSchema.json +23 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +2 -2
- package/sampleProperties.json +9 -2
package/CHANGELOG.md
CHANGED
package/TAB2.md
CHANGED
|
@@ -54,7 +54,7 @@ Sample Properties can be used to help you configure the adapter in the Itential
|
|
|
54
54
|
"host": "localhost",
|
|
55
55
|
"port": 443,
|
|
56
56
|
"choosepath": "",
|
|
57
|
-
"base_path": "/rest",
|
|
57
|
+
"base_path": "/nokia-altiplano-ac/rest",
|
|
58
58
|
"version": "",
|
|
59
59
|
"cache_location": "none",
|
|
60
60
|
"encode_pathvars": false,
|
|
@@ -89,7 +89,14 @@ Sample Properties can be used to help you configure the adapter in the Itential
|
|
|
89
89
|
"responseFields": {},
|
|
90
90
|
"successfullResponseCode": 200
|
|
91
91
|
}
|
|
92
|
-
]
|
|
92
|
+
],
|
|
93
|
+
"refresh_token_request": {
|
|
94
|
+
"requestFields": {},
|
|
95
|
+
"refresh_token": {
|
|
96
|
+
"placement": "body",
|
|
97
|
+
"token_timeout": 86400000
|
|
98
|
+
}
|
|
99
|
+
}
|
|
93
100
|
},
|
|
94
101
|
"healthcheck": {
|
|
95
102
|
"type": "none",
|
|
@@ -29,6 +29,31 @@
|
|
|
29
29
|
}
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
|
+
{
|
|
33
|
+
"name": "getRefreshToken",
|
|
34
|
+
"protocol": "REST",
|
|
35
|
+
"method": "POST",
|
|
36
|
+
"entitypath": "{base_path}/{version}/auth/refreshAccessToken",
|
|
37
|
+
"requestSchema": "refreshTokenRequest.json",
|
|
38
|
+
"responseSchema": "schemaTokenResp.json",
|
|
39
|
+
"timeout": 0,
|
|
40
|
+
"sendEmpty": false,
|
|
41
|
+
"requestDatatype": "URLENCODE",
|
|
42
|
+
"responseDatatype": "JSON",
|
|
43
|
+
"headers": {},
|
|
44
|
+
"sso": {
|
|
45
|
+
"protocol": "",
|
|
46
|
+
"host": "",
|
|
47
|
+
"port": 0
|
|
48
|
+
},
|
|
49
|
+
"responseObjects": [
|
|
50
|
+
{
|
|
51
|
+
"type": "default",
|
|
52
|
+
"key": "",
|
|
53
|
+
"mockFile": "mockdatafiles/getRefreshToken-default.json"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
32
57
|
{
|
|
33
58
|
"name": "healthcheck",
|
|
34
59
|
"protocol": "REST",
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "refreshTokenRequest.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "getRefreshToken",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getRefreshToken"
|
|
14
|
+
],
|
|
15
|
+
"external_name": "ph_request_type"
|
|
16
|
+
},
|
|
17
|
+
"refreshToken": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "refresh token",
|
|
20
|
+
"parse": false,
|
|
21
|
+
"encode": false,
|
|
22
|
+
"encrypt": {
|
|
23
|
+
"type": "AES",
|
|
24
|
+
"key": ""
|
|
25
|
+
},
|
|
26
|
+
"external_name": "refresh_token"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"definitions": {}
|
|
30
|
+
}
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"description": "type of request (internal to adapter)",
|
|
11
11
|
"default": "getToken",
|
|
12
12
|
"enum": [
|
|
13
|
-
"getToken"
|
|
13
|
+
"getToken",
|
|
14
|
+
"getRefreshToken"
|
|
14
15
|
],
|
|
15
16
|
"external_name": "ph_request_type"
|
|
16
17
|
},
|
|
@@ -47,6 +48,18 @@
|
|
|
47
48
|
"key": ""
|
|
48
49
|
},
|
|
49
50
|
"external_name": "accessToken"
|
|
51
|
+
},
|
|
52
|
+
"refreshToken": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "refresh token returned by system",
|
|
55
|
+
"parse": false,
|
|
56
|
+
"encode": false,
|
|
57
|
+
"placement": "BODY",
|
|
58
|
+
"encrypt": {
|
|
59
|
+
"type": "AES",
|
|
60
|
+
"key": ""
|
|
61
|
+
},
|
|
62
|
+
"external_name": "refreshToken"
|
|
50
63
|
}
|
|
51
64
|
},
|
|
52
65
|
"definitions": {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-nokia_altiplano",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "This adapter integrates with system described as: Nokia Altiplano.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"wizardVersion": "2.44.7",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"author": "Itential",
|
|
55
55
|
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-nokia_altiplano#readme",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@itentialopensource/adapter-utils": "^5.
|
|
57
|
+
"@itentialopensource/adapter-utils": "^5.9.4",
|
|
58
58
|
"acorn": "^8.12.1",
|
|
59
59
|
"ajv": "^8.17.1",
|
|
60
60
|
"axios": "^1.7.4",
|
package/propertiesSchema.json
CHANGED
|
@@ -341,6 +341,29 @@
|
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
+
},
|
|
345
|
+
"refresh_token_request": {
|
|
346
|
+
"type": "object",
|
|
347
|
+
"properties": {
|
|
348
|
+
"requestFields": {
|
|
349
|
+
"type": "object",
|
|
350
|
+
"description": "Params used in the refresh token call"
|
|
351
|
+
},
|
|
352
|
+
"refresh_token": {
|
|
353
|
+
"type": "object",
|
|
354
|
+
"description": "Refresh token fields",
|
|
355
|
+
"properties": {
|
|
356
|
+
"placement": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"description": "Where to place refresh token"
|
|
359
|
+
},
|
|
360
|
+
"token_timeout": {
|
|
361
|
+
"type": "integer",
|
|
362
|
+
"description": "How long a token is valid (in milliseconds)"
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
344
367
|
}
|
|
345
368
|
},
|
|
346
369
|
"required": [
|
|
Binary file
|
package/report/adapterInfo.json
CHANGED
package/sampleProperties.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"host": "localhost",
|
|
6
6
|
"port": 443,
|
|
7
7
|
"choosepath": "",
|
|
8
|
-
"base_path": "/rest",
|
|
8
|
+
"base_path": "/nokia-altiplano-ac/rest",
|
|
9
9
|
"version": "",
|
|
10
10
|
"cache_location": "none",
|
|
11
11
|
"encode_pathvars": false,
|
|
@@ -40,7 +40,14 @@
|
|
|
40
40
|
"responseFields": {},
|
|
41
41
|
"successfullResponseCode": 200
|
|
42
42
|
}
|
|
43
|
-
]
|
|
43
|
+
],
|
|
44
|
+
"refresh_token_request": {
|
|
45
|
+
"requestFields": {},
|
|
46
|
+
"refresh_token": {
|
|
47
|
+
"placement": "body",
|
|
48
|
+
"token_timeout": 86400000
|
|
49
|
+
}
|
|
50
|
+
}
|
|
44
51
|
},
|
|
45
52
|
"healthcheck": {
|
|
46
53
|
"type": "none",
|