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
|
|
145
|
-
const VW_CLIENT_ID = '
|
|
146
|
-
const VW_SCOPE = 'openid profile
|
|
147
|
-
const VW_REDIRECT_URI = '
|
|
148
|
-
const VW_RESPONSE_TYPE = 'id_token token
|
|
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
|
|
171
|
-
const authorizeUrl = 'https://
|
|
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