n8n-nodes-jygse-vw-weconnect 0.1.8 → 0.1.9

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.
@@ -141,11 +141,11 @@ class VwWeConnect {
141
141
  }
142
142
  }
143
143
  exports.VwWeConnect = VwWeConnect;
144
- // VW OAuth2 Configuration (Updated January 2026 - from ioBroker.vw-connect)
145
- const VW_CLIENT_ID = '9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com';
146
- const VW_SCOPE = 'openid profile mbb email cars birthdate badge address vin';
147
- const VW_REDIRECT_URI = 'carnet://identity-kit/login';
148
- const VW_RESPONSE_TYPE = 'id_token token code';
144
+ // VW OAuth2 Configuration (Updated January 2026 - from WeConnect-python)
145
+ const VW_CLIENT_ID = 'a24fba63-34b3-4d43-b181-942111e6bda8@apps_vw-dilab_com';
146
+ const VW_SCOPE = 'openid profile badge cars dealers vin';
147
+ const VW_REDIRECT_URI = 'weconnect://authenticated';
148
+ const VW_RESPONSE_TYPE = 'code id_token token';
149
149
  // Generate PKCE code verifier and challenge
150
150
  function generateCodeVerifier() {
151
151
  const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~';
@@ -167,8 +167,8 @@ async function vwLogin(context, email, password) {
167
167
  const codeVerifier = generateCodeVerifier();
168
168
  const codeChallenge = await generateCodeChallenge(codeVerifier);
169
169
  const stateParam = generateNonce();
170
- // Step 1: Get authorization page - this now returns Auth0 login page
171
- const authorizeUrl = 'https://identity.vwgroup.io/oidc/v1/authorize';
170
+ // Step 1: Get authorization page via CARIAD BFF (WeConnect-python approach)
171
+ const authorizeUrl = 'https://emea.bff.cariad.digital/user-login/v1/authorize';
172
172
  const authorizeParams = new URLSearchParams({
173
173
  client_id: VW_CLIENT_ID,
174
174
  scope: VW_SCOPE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-jygse-vw-weconnect",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
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",