Skip to content

Commit c2cebf6

Browse files
committed
fix: remove sensitive details from local env
1 parent 6bc1b53 commit c2cebf6

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

Diff for: .env.local

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ GAUZY_GITHUB_API_VERSION="2022-11-28"
161161

162162

163163
# Zapier Apps Integration
164-
GAUZY_ZAPIER_CLIENT_ID=74558f42-82db-4ec2-b674-e80929888bd9
165-
GAUZY_ZAPIER_CLIENT_SECRET=ef3c3167967d903ce6845997ac3a9967b60e405e66d10ffc1bb997516da28adf
164+
GAUZY_ZAPIER_CLIENT_ID=
165+
GAUZY_ZAPIER_CLIENT_SECRET=
166166
GAUZY_ZAPIER_REDIRECT_URL="http://localhost:3000/api/integration/zapier/oauth/callback"
167167
GAUZY_ZAPIER_POST_INSTALL_URL="http://localhost:4200/#/pages/integrations/zapier"
168168

Diff for: packages/plugins/integration-zapier/src/lib/zapier-authorization.controller.ts

+5-10
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ export class ZapierAuthorizationController {
6161
throw new HttpException('State parameter is required', HttpStatus.BAD_REQUEST);
6262
}
6363

64-
// const configuredClientId = this._config.get<string>('zapier.clientId');
65-
const configuredClientId = '74558f42-82db-4ec2-b674-e80929888bd9';
64+
const configuredClientId = this._config.get<string>('zapier.clientId');
6665

6766
if (clientId !== configuredClientId) {
6867
throw new HttpException('Invalid client ID', HttpStatus.BAD_REQUEST);
@@ -176,10 +175,8 @@ export class ZapierAuthorizationController {
176175
}
177176

178177
// Verify client credentials
179-
// const configuredClientId = this._config.get<string>('zapier.clientId');
180-
// const configuredClientSecret = this._config.get<string>('zapier.clientSecret');
181-
const configuredClientId = '74558f42-82db-4ec2-b674-e80929888bd9';
182-
const configuredClientSecret = 'ef3c3167967d903ce6845997ac3a9967b60e405e66d10ffc1bb997516da28adf';
178+
const configuredClientId = this._config.get<string>('zapier.clientId');
179+
const configuredClientSecret = this._config.get<string>('zapier.clientSecret');
183180

184181
if (client_id !== configuredClientId || client_secret !== configuredClientSecret) {
185182
throw new UnauthorizedException('Invalid client credentials');
@@ -252,10 +249,8 @@ export class ZapierAuthorizationController {
252249
}
253250

254251
// Verify client credentials
255-
// const configuredClientId = this._config.get<string>('zapier.clientId');
256-
// const configuredClientSecret = this._config.get<string>('zapier.clientSecret');
257-
const configuredClientId = '74558f42-82db-4ec2-b674-e80929888bd9';
258-
const configuredClientSecret = 'ef3c3167967d903ce6845997ac3a9967b60e405e66d10ffc1bb997516da28adf';
252+
const configuredClientId = this._config.get<string>('zapier.clientId');
253+
const configuredClientSecret = this._config.get<string>('zapier.clientSecret');
259254

260255
if (client_id !== configuredClientId || client_secret !== configuredClientSecret) {
261256
throw new UnauthorizedException('Invalid client credentials');

0 commit comments

Comments
 (0)