@itentialopensource/adapter-f5_bigiq 0.3.4 → 0.4.0
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/AUTH.md +13 -14
- package/CALLS.md +2099 -22
- package/CHANGELOG.md +16 -0
- package/CONTRIBUTING.md +1 -160
- package/ENHANCE.md +2 -2
- package/README.md +32 -23
- package/SYSTEMINFO.md +14 -6
- package/adapter.js +401 -333
- package/adapterBase.js +549 -879
- package/changelogs/CHANGELOG.MD +48 -0
- package/entities/.system/action.json +1 -1
- package/entities/DeviceUpgrades/action.json +62 -0
- package/entities/DeviceUpgrades/mockdatafiles/getAllUpgradeInstances-default.json +58 -0
- package/entities/DeviceUpgrades/mockdatafiles/getUpgradeInstancesById-default.json +15 -0
- package/entities/DeviceUpgrades/mockdatafiles/updateDeviceUpgrade-default.json +15 -0
- package/entities/DeviceUpgrades/schema.json +4 -1
- package/metadata.json +72 -0
- package/package.json +24 -25
- package/pronghorn.json +624 -201
- package/propertiesSchema.json +431 -31
- package/refs?service=git-upload-pack +0 -0
- package/report/adapter-openapi.json +13524 -0
- package/report/adapter-openapi.yaml +9517 -0
- package/report/adapterInfo.json +8 -8
- package/report/updateReport1691507623236.json +120 -0
- package/report/updateReport1692202627551.json +120 -0
- package/report/updateReport1694462181107.json +120 -0
- package/report/updateReport1698421056669.json +120 -0
- package/sampleProperties.json +65 -4
- package/test/integration/adapterTestBasicGet.js +2 -4
- package/test/integration/adapterTestConnectivity.js +91 -42
- package/test/integration/adapterTestIntegration.js +232 -2
- package/test/unit/adapterBaseTestUnit.js +388 -313
- package/test/unit/adapterTestUnit.js +408 -112
- package/utils/adapterInfo.js +1 -1
- package/utils/addAuth.js +1 -1
- package/utils/artifactize.js +1 -1
- package/utils/checkMigrate.js +1 -1
- package/utils/entitiesToDB.js +2 -2
- package/utils/findPath.js +1 -1
- package/utils/methodDocumentor.js +273 -0
- package/utils/modify.js +13 -15
- package/utils/packModificationScript.js +1 -1
- package/utils/pre-commit.sh +2 -0
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +89 -34
- package/utils/tbUtils.js +41 -21
- package/utils/testRunner.js +1 -1
- package/utils/troubleshootingAdapter.js +9 -6
- package/workflows/README.md +0 -3
package/AUTH.md
CHANGED
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
## Authenticating
|
|
1
|
+
## Authenticating F5 BIG-IQ Adapter
|
|
2
2
|
|
|
3
|
-
This document will go through the steps for authenticating the
|
|
3
|
+
This document will go through the steps for authenticating the F5 BIG-IQ adapter with the authentication methods we have worked with in the past. Properly configuring the properties for an adapter in IAP is critical for getting the adapter online. You can read more about adapter authentication <a href="https://docs.itential.com/opensource/docs/authentication" target="_blank">HERE</a>.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Companies periodically change authentication methods to provide better security. As this happens this section should be updated and contributed/merge back into the adapter repository.
|
|
6
|
+
|
|
7
|
+
### Two Step Token
|
|
8
|
+
The F5 BIG-IQ adapter requires Two Step Token. If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
|
|
7
9
|
|
|
8
10
|
STEPS
|
|
9
|
-
1. Ensure you have access to a
|
|
11
|
+
1. Ensure you have access to a F5 BIG-IQ server and that it is running
|
|
10
12
|
2. Follow the steps in the README.md to import the adapter into IAP if you have not already done so
|
|
11
13
|
3. Use the properties below for the ```properties.authentication``` field
|
|
12
14
|
```json
|
|
13
15
|
"authentication": {
|
|
14
|
-
"auth_method": "
|
|
15
|
-
"username": "<username>",
|
|
16
|
-
"password": "<password>",
|
|
17
|
-
"token": "",
|
|
16
|
+
"auth_method": "request_token",
|
|
18
17
|
"token_timeout": 1800000,
|
|
19
18
|
"token_cache": "local",
|
|
20
19
|
"invalid_token_error": 401,
|
|
21
|
-
"auth_field": "header.headers.
|
|
22
|
-
"auth_field_format": "
|
|
20
|
+
"auth_field": "header.headers.X-F5-AUTH-TOKEN",
|
|
21
|
+
"auth_field_format": "{token}",
|
|
23
22
|
"auth_logging": false,
|
|
24
|
-
"client_id": "",
|
|
25
|
-
"client_secret": "",
|
|
26
|
-
"grant_type": ""
|
|
27
23
|
}
|
|
28
24
|
```
|
|
25
|
+
you can leave all of the other properties in the authentication section, they will not be used when the auth_method is request_token.<br>
|
|
26
|
+
|
|
29
27
|
4. Restart the adapter. If your properties were set correctly, the adapter should go online.
|
|
30
28
|
|
|
31
29
|
### Troubleshooting
|
|
@@ -36,4 +34,5 @@ STEPS
|
|
|
36
34
|
- The FULL REQUEST log to make sure the proper headers are being sent with the request.
|
|
37
35
|
- The FULL BODY log to make sure the payload is accurate.
|
|
38
36
|
- The CALL RETURN log to see what the other system is telling us.
|
|
37
|
+
- Credentials should be ** masked ** by the adapter so make sure you verify the username and password - including that there are erroneous spaces at the front or end.
|
|
39
38
|
- Remember when you are done to turn auth_logging off as you do not want to log credentials.
|