@itentialopensource/adapter-microsoft_graph 1.4.5 → 1.4.7

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 CHANGED
@@ -7,6 +7,8 @@ Companies periodically change authentication methods to provide better security.
7
7
  ### OAuth Authentication
8
8
  The Microsoft Graph adapter requires OAuth Authentication. If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
9
9
 
10
+ You will need to register an application with the <a href="https://learn.microsoft.com/en-us/graph/auth-register-app-v2" target="_blank">Microsoft identity platform</a>. After registering the application, you will be given an Application (client) ID and a Directory (tenant) ID. Then you need to click "add cert or secret" to create the client secret. This information will then be inserted into the adapter service instance configuration.
11
+
10
12
  STEPS
11
13
  1. Ensure you have access to a Microsoft Graph server and that it is running
12
14
  2. Follow the steps in the README.md to import the adapter into IAP if you have not already done so
package/CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
1
 
2
+ ## 1.4.6 [11-23-2024]
3
+
4
+ * update auth docs
5
+
6
+ See merge request itentialopensource/adapters/adapter-microsoft_graph!18
7
+
8
+ ---
9
+
2
10
  ## 1.4.5 [10-15-2024]
3
11
 
4
12
  * Changes made at 2024.10.14_19:50PM
@@ -4,7 +4,7 @@
4
4
  "name": "getToken",
5
5
  "protocol": "REST",
6
6
  "method": "POST",
7
- "entitypath": "{base_path}/{version}/login",
7
+ "entitypath": "{base_path}/{version}/{tenet_id}/oauth2/v2.0/token",
8
8
  "requestSchema": "schemaTokenReq.json",
9
9
  "responseSchema": "schemaTokenResp.json",
10
10
  "timeout": 0,
@@ -13,9 +13,9 @@
13
13
  "responseDatatype": "",
14
14
  "headers": {},
15
15
  "sso": {
16
- "protocol": "",
17
- "host": "",
18
- "port": 0
16
+ "protocol": "https",
17
+ "host": "login.microsoftonline.com",
18
+ "port": 443
19
19
  },
20
20
  "responseObjects": [
21
21
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-microsoft_graph",
3
- "version": "1.4.5",
3
+ "version": "1.4.7",
4
4
  "description": "This adapter integrates with system described as: microsoftGraph.",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.7",
@@ -53,22 +53,22 @@
53
53
  "author": "Itential",
54
54
  "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-microsoft_graph#readme",
55
55
  "dependencies": {
56
- "@itentialopensource/adapter-utils": "^5.9.4",
57
- "acorn": "^8.12.1",
56
+ "@itentialopensource/adapter-utils": "^5.10.1",
57
+ "acorn": "^8.14.0",
58
58
  "ajv": "^8.17.1",
59
- "axios": "^1.7.4",
59
+ "axios": "^1.7.9",
60
60
  "commander": "^11.0.0",
61
61
  "dns-lookup-promise": "^1.0.4",
62
62
  "fs-extra": "^11.2.0",
63
63
  "json-query": "^2.2.2",
64
- "mocha": "^10.7.3",
64
+ "mocha": "^10.8.2",
65
65
  "mocha-param": "^2.0.1",
66
- "mongodb": "^4.16.0",
66
+ "mongodb": "^4.17.2",
67
67
  "ping": "^0.4.4",
68
68
  "prompts": "^2.4.2",
69
69
  "readline-sync": "^1.4.10",
70
70
  "semver": "^7.6.3",
71
- "winston": "^3.14.2"
71
+ "winston": "^3.17.0"
72
72
  },
73
73
  "devDependencies": {
74
74
  "chai": "^4.3.7",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.4.3",
2
+ "version": "1.4.5",
3
3
  "configLines": 11197,
4
4
  "scriptLines": 1783,
5
5
  "codeLines": 20708,
@@ -2,7 +2,7 @@
2
2
  "id": "Adapter-microsoft_graph",
3
3
  "type": "MicrosoftGraph",
4
4
  "properties": {
5
- "host": "localhost",
5
+ "host": "graph.microsoft.com",
6
6
  "port": 443,
7
7
  "base_path": "/",
8
8
  "choosepath": "",
@@ -25,14 +25,14 @@
25
25
  "auth_field": "header.headers.Authorization",
26
26
  "auth_field_format": "Bearer {token}",
27
27
  "auth_logging": false,
28
- "client_id": "",
29
- "client_secret": "",
28
+ "client_id": "clientid",
29
+ "client_secret": "clientsecret",
30
30
  "grant_type": "client_credentials",
31
31
  "sensitive": [],
32
32
  "sso": {
33
- "protocol": "",
34
- "host": "",
35
- "port": 0
33
+ "protocol": "https",
34
+ "host": "login.microsoftonline.com",
35
+ "port": 443
36
36
  },
37
37
  "multiStepAuthCalls": [
38
38
  {
@@ -319,15 +319,15 @@ describe('[unit] Microsoft_graph Adapter Test', () => {
319
319
  assert.notEqual(null, packageDotJson.dependencies);
320
320
  assert.notEqual('', packageDotJson.dependencies);
321
321
  assert.equal('^8.17.1', packageDotJson.dependencies.ajv);
322
- assert.equal('^1.7.4', packageDotJson.dependencies.axios);
322
+ assert.equal('^1.7.9', packageDotJson.dependencies.axios);
323
323
  assert.equal('^11.0.0', packageDotJson.dependencies.commander);
324
324
  assert.equal('^11.2.0', packageDotJson.dependencies['fs-extra']);
325
- assert.equal('^10.7.3', packageDotJson.dependencies.mocha);
325
+ assert.equal('^10.8.2', packageDotJson.dependencies.mocha);
326
326
  assert.equal('^2.0.1', packageDotJson.dependencies['mocha-param']);
327
327
  assert.equal('^0.4.4', packageDotJson.dependencies.ping);
328
328
  assert.equal('^1.4.10', packageDotJson.dependencies['readline-sync']);
329
329
  assert.equal('^7.6.3', packageDotJson.dependencies.semver);
330
- assert.equal('^3.14.2', packageDotJson.dependencies.winston);
330
+ assert.equal('^3.17.0', packageDotJson.dependencies.winston);
331
331
  done();
332
332
  } catch (error) {
333
333
  log.error(`Test Failure: ${error}`);
Binary file