@app-connect/core 1.7.12 → 1.7.15
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/handlers/auth.js +2 -2
- package/index.js +1 -1
- package/package.json +3 -2
- package/releaseNotes.json +13 -1
package/handlers/auth.js
CHANGED
|
@@ -36,9 +36,9 @@ async function onOAuthCallback({ platform, hostname, tokenUrl, query, isFromMCP
|
|
|
36
36
|
overridingOAuthOption = platformModule.getOverridingOAuthOption({ code });
|
|
37
37
|
}
|
|
38
38
|
const oauthApp = oauth.getOAuthApp(oauthInfo);
|
|
39
|
-
const { accessToken, refreshToken, expires } = await oauthApp.code.getToken(callbackUri, overridingOAuthOption);
|
|
39
|
+
const { accessToken, refreshToken, expires, data } = await oauthApp.code.getToken(callbackUri, overridingOAuthOption);
|
|
40
40
|
const authHeader = `Bearer ${accessToken}`;
|
|
41
|
-
const { successful, platformUserInfo, returnMessage } = await platformModule.getUserInfo({ authHeader, tokenUrl, apiUrl, hostname, platform, username, callbackUri, query, proxyId, proxyConfig, userEmail });
|
|
41
|
+
const { successful, platformUserInfo, returnMessage } = await platformModule.getUserInfo({ authHeader, tokenUrl, apiUrl, hostname, platform, username, callbackUri, query, proxyId, proxyConfig, userEmail, data });
|
|
42
42
|
|
|
43
43
|
if (successful) {
|
|
44
44
|
let userInfo = null;
|
package/index.js
CHANGED
|
@@ -827,7 +827,7 @@ function createCoreRouter() {
|
|
|
827
827
|
// backward compatibility
|
|
828
828
|
if(!platformName)
|
|
829
829
|
{
|
|
830
|
-
platformName = req.query.callbackUri.split('platform=')[1];
|
|
830
|
+
platformName = req.query.callbackUri?.split('platform=')[1] ?? state.split('platform=')[1];
|
|
831
831
|
}
|
|
832
832
|
// Extract mcp auth sessionId if present
|
|
833
833
|
sessionId = stateParams?.get('sessionId');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@app-connect/core",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.15",
|
|
4
4
|
"description": "RingCentral App Connect Core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -23,9 +23,10 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@aws-sdk/client-dynamodb": "^3.751.0",
|
|
26
|
-
"@modelcontextprotocol/sdk": "^1.21.1",
|
|
27
26
|
"@aws-sdk/client-s3": "^3.947.0",
|
|
28
27
|
"@aws-sdk/s3-request-presigner": "^3.947.0",
|
|
28
|
+
"@modelcontextprotocol/sdk": "^1.21.1",
|
|
29
|
+
"awesome-phonenumber": "^5.6.0",
|
|
29
30
|
"body-parser": "^1.20.4",
|
|
30
31
|
"body-parser-xml": "^2.0.5",
|
|
31
32
|
"client-oauth2": "^4.3.3",
|
package/releaseNotes.json
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"1.7.15": {
|
|
3
|
+
"global": [
|
|
4
|
+
{
|
|
5
|
+
"type": "Fix",
|
|
6
|
+
"description": "Click-to-dial injection for HTML shadow roots"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "Fix",
|
|
10
|
+
"description": "A not-found error for user mapping"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
2
14
|
"1.7.12": {
|
|
3
15
|
"global": [
|
|
4
16
|
{
|
|
@@ -175,7 +187,7 @@
|
|
|
175
187
|
}
|
|
176
188
|
]
|
|
177
189
|
},
|
|
178
|
-
"1.6.11":{
|
|
190
|
+
"1.6.11": {
|
|
179
191
|
"global": [
|
|
180
192
|
{
|
|
181
193
|
"type": "Fix",
|