n8n-nodes-jygse-vw-weconnect 0.2.6 → 0.2.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.
@@ -229,22 +229,21 @@ async function vwLogin(context, email, password) {
229
229
  const codeChallenge = generateCodeChallenge(codeVerifier);
230
230
  // Step 1: Go directly to identity.vwgroup.io (like ioBroker adapter)
231
231
  // Note: VW v2 (T6.1, etc.) uses PKCE with S256
232
- const authorizeUrl = 'https://identity.vwgroup.io/oidc/v1/authorize';
233
- const authorizeParams = new URLSearchParams({
234
- client_id: VW_CLIENT_ID,
235
- scope: VW_SCOPE,
236
- response_type: VW_RESPONSE_TYPE,
237
- redirect_uri: VW_REDIRECT_URI,
238
- nonce: nonce,
239
- state: state,
240
- code_challenge: codeChallenge,
241
- code_challenge_method: 'S256',
242
- });
232
+ // Build URL manually like ioBroker does (pre-encoded values)
233
+ const authorizeUrl = 'https://identity.vwgroup.io/oidc/v1/authorize' +
234
+ '?client_id=' + encodeURIComponent(VW_CLIENT_ID) +
235
+ '&scope=' + encodeURIComponent(VW_SCOPE) +
236
+ '&response_type=' + encodeURIComponent(VW_RESPONSE_TYPE) +
237
+ '&redirect_uri=' + encodeURIComponent(VW_REDIRECT_URI) +
238
+ '&nonce=' + nonce +
239
+ '&state=' + state +
240
+ '&code_challenge=' + codeChallenge +
241
+ '&code_challenge_method=S256';
243
242
  // Use browser-like headers for initial request
244
243
  // Let n8n follow redirects automatically to reach the login page
245
244
  const authorizeResponse = await context.helpers.httpRequest({
246
245
  method: 'GET',
247
- url: `${authorizeUrl}?${authorizeParams.toString()}`,
246
+ url: authorizeUrl,
248
247
  headers: browserHeaders,
249
248
  encoding: 'text',
250
249
  returnFullResponse: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-jygse-vw-weconnect",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "n8n community node for VW We Connect - Control your Volkswagen T6.1 and other VW vehicles",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",