n8n-nodes-jygse-vw-weconnect 0.2.15 → 0.2.17
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.
|
@@ -181,15 +181,15 @@ class VwWeConnect {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
exports.VwWeConnect = VwWeConnect;
|
|
184
|
-
// VW OAuth2 Configuration (Updated January 2026 - "go" type for We Connect
|
|
185
|
-
// Note: This is for We Connect
|
|
184
|
+
// VW OAuth2 Configuration (Updated January 2026 - "go" type for We Connect Go from ioBroker.vw-connect)
|
|
185
|
+
// Note: This is for We Connect Go (T6.1 California, etc.)
|
|
186
186
|
const VW_CLIENT_ID = 'ac42b0fa-3b11-48a0-a941-43a399e7ef84@apps_vw-dilab_com';
|
|
187
|
-
const VW_SCOPE = 'openid profile
|
|
187
|
+
const VW_SCOPE = 'openid profile address email phone';
|
|
188
188
|
const VW_REDIRECT_URI = 'vwconnect://de.volkswagen.vwconnect/oauth2redirect/identitykit';
|
|
189
189
|
const VW_RESPONSE_TYPE = 'id_token token code';
|
|
190
|
-
//
|
|
191
|
-
const VW_USER_AGENT = 'Mozilla/5.0 (Linux; Android
|
|
192
|
-
const VW_APP_PACKAGE = '
|
|
190
|
+
// We Connect Go headers - use browser User-Agent to pass browser check
|
|
191
|
+
const VW_USER_AGENT = 'Mozilla/5.0 (Linux; Android 13; SM-G960F Build/TP1A.220624.014) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.144 Mobile Safari/537.36';
|
|
192
|
+
const VW_APP_PACKAGE = 'de.volkswagen.vwconnect'; // VW Connect Go app package
|
|
193
193
|
const VW_ACCEPT_LANGUAGE = 'en-US,en;q=0.9';
|
|
194
194
|
function generateTraceId() {
|
|
195
195
|
// Generate UUID v4 format
|
|
@@ -225,15 +225,17 @@ async function vwLogin(context, email, password) {
|
|
|
225
225
|
// Create cookie jar for session management (like ioBroker)
|
|
226
226
|
const jar = new tough_cookie_1.CookieJar();
|
|
227
227
|
const client = (0, axios_cookiejar_support_1.wrapper)(axios_1.default.create({ jar }));
|
|
228
|
-
//
|
|
228
|
+
// Headers from ioBroker.vw-connect "go" type
|
|
229
229
|
const browserHeaders = {
|
|
230
230
|
'User-Agent': VW_USER_AGENT,
|
|
231
231
|
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',
|
|
232
232
|
'Accept-Language': VW_ACCEPT_LANGUAGE,
|
|
233
233
|
'Accept-Encoding': 'gzip, deflate',
|
|
234
|
-
'x-requested-with': VW_APP_PACKAGE,
|
|
235
|
-
'upgrade-insecure-requests': '1',
|
|
236
234
|
};
|
|
235
|
+
// Only add x-requested-with if VW_APP_PACKAGE is set
|
|
236
|
+
if (VW_APP_PACKAGE) {
|
|
237
|
+
browserHeaders['x-requested-with'] = VW_APP_PACKAGE;
|
|
238
|
+
}
|
|
237
239
|
// Generate PKCE code challenge
|
|
238
240
|
const codeChallenge = generateCodeChallenge(codeVerifier);
|
|
239
241
|
// Step 1: Go directly to identity.vwgroup.io (like ioBroker adapter)
|
package/package.json
CHANGED