@itentialopensource/adapter-delinea 2.0.1 → 2.1.1

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.
Files changed (50) hide show
  1. package/.eslintignore +0 -1
  2. package/.jshintrc +3 -0
  3. package/AUTH.md +11 -11
  4. package/CALLS.md +858 -821
  5. package/CHANGELOG.md +16 -0
  6. package/CONTRIBUTING.md +1 -160
  7. package/ENHANCE.md +2 -2
  8. package/README.md +31 -22
  9. package/SYSTEMINFO.md +14 -5
  10. package/adapter.js +163 -334
  11. package/adapterBase.js +538 -873
  12. package/changelogs/CHANGELOG.md +32 -0
  13. package/metadata.json +58 -0
  14. package/package.json +22 -25
  15. package/pronghorn.json +474 -142
  16. package/propertiesSchema.json +453 -40
  17. package/refs?service=git-upload-pack +0 -0
  18. package/report/adapter-openapi.json +135346 -0
  19. package/report/adapter-openapi.yaml +121972 -0
  20. package/report/adapterInfo.json +8 -8
  21. package/report/updateReport1691508422827.json +120 -0
  22. package/report/updateReport1692202901865.json +120 -0
  23. package/report/updateReport1694465282318.json +120 -0
  24. package/report/updateReport1698421796533.json +120 -0
  25. package/sampleProperties.json +63 -2
  26. package/test/integration/adapterTestBasicGet.js +1 -1
  27. package/test/integration/adapterTestConnectivity.js +91 -42
  28. package/test/integration/adapterTestIntegration.js +130 -2
  29. package/test/unit/adapterBaseTestUnit.js +388 -313
  30. package/test/unit/adapterTestUnit.js +306 -109
  31. package/utils/adapterInfo.js +1 -1
  32. package/utils/addAuth.js +1 -1
  33. package/utils/artifactize.js +1 -1
  34. package/utils/checkMigrate.js +1 -1
  35. package/utils/entitiesToDB.js +1 -0
  36. package/utils/findPath.js +1 -1
  37. package/utils/methodDocumentor.js +71 -23
  38. package/utils/modify.js +13 -15
  39. package/utils/packModificationScript.js +1 -1
  40. package/utils/taskMover.js +309 -0
  41. package/utils/tbScript.js +3 -10
  42. package/utils/tbUtils.js +2 -3
  43. package/utils/testRunner.js +1 -1
  44. package/utils/troubleshootingAdapter.js +1 -3
  45. package/.gitlab/.gitkeep +0 -0
  46. package/.gitlab/issue_templates/.gitkeep +0 -0
  47. package/.gitlab/issue_templates/Default.md +0 -17
  48. package/.gitlab/issue_templates/bugReportTemplate.md +0 -76
  49. package/.gitlab/issue_templates/featureRequestTemplate.md +0 -14
  50. package/workflows/README.md +0 -3
package/.eslintignore CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  .nyc_output/*
3
2
  backup/*
4
3
  coverage/*
package/.jshintrc CHANGED
@@ -0,0 +1,3 @@
1
+ {
2
+ "esversion": 6
3
+ }
package/AUTH.md CHANGED
@@ -1,31 +1,30 @@
1
1
  ## Authenticating Delinea Adapter
2
2
 
3
- This document will go through the steps for authenticating the Delinea adapter with Basic Authentication. 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://www.itential.com/automation-platform/integrations/adapters-resources/authentication/" target="_blank">HERE</a>.
3
+ This document will go through the steps for authenticating the Delinea adapter with Two Step Token Authentication. 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
- ### Basic Authentication
6
- The Delinea adapter requires Basic Authentication. If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
5
+ ### Two Step Token Authentication
6
+ The Delinea adapter requires Two Step Token Authentication. If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
7
7
 
8
8
  STEPS
9
- 1. Ensure you have access to a Delinea server and that it is running
9
+ 1. Ensure you have access to a Delinea Secret Server and that it is running
10
10
  2. Follow the steps in the README.md to import the adapter into IAP if you have not already done so
11
11
  3. Use the properties below for the ```properties.authentication``` field
12
12
  ```json
13
13
  "authentication": {
14
- "auth_method": "basic user_password",
14
+ "auth_method": "request_token",
15
15
  "username": "<username>",
16
16
  "password": "<password>",
17
- "token": "",
18
- "token_timeout": 1800000,
17
+ "token_timeout": 600000,
19
18
  "token_cache": "local",
20
19
  "invalid_token_error": 401,
21
20
  "auth_field": "header.headers.Authorization",
22
- "auth_field_format": "Basic {b64}{username}:{password}{/b64}",
21
+ "auth_field_format": "Bearer {token}",
23
22
  "auth_logging": false,
24
- "client_id": "",
25
- "client_secret": "",
26
- "grant_type": ""
23
+ "grant_type": "password"
27
24
  }
28
25
  ```
26
+ you can leave all of the other properties in the authentication section, they will not be used when the auth_method is request_token.
27
+
29
28
  4. Restart the adapter. If your properties were set correctly, the adapter should go online.
30
29
 
31
30
  ### Troubleshooting
@@ -36,4 +35,5 @@ STEPS
36
35
  - The FULL REQUEST log to make sure the proper headers are being sent with the request.
37
36
  - The FULL BODY log to make sure the payload is accurate.
38
37
  - The CALL RETURN log to see what the other system is telling us.
38
+ - 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
39
  - Remember when you are done to turn auth_logging off as you do not want to log credentials.