mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-08 18:59:09 +00:00
get oauthSecrets from secrets manager
This commit is contained in:
@@ -207,8 +207,8 @@ export class InputsClientService implements OnModuleInit {
|
||||
switch (plugin) {
|
||||
case 'hubspot':
|
||||
return {
|
||||
client_id: process.env.HUBSPOT_CLIENT_ID || '',
|
||||
client_secret: process.env.HUBSPOT_CLIENT_SECRET || '',
|
||||
client_id: this.oauthSecrets.hubspot.client_id || '',
|
||||
client_secret: this.oauthSecrets.hubspot.client_secret || '',
|
||||
};
|
||||
}
|
||||
return {};
|
||||
|
||||
@@ -4,9 +4,9 @@ import {
|
||||
} from '@aws-sdk/client-secrets-manager';
|
||||
|
||||
class OauthSecretsObject {
|
||||
client_id: string;
|
||||
client_secret: string;
|
||||
redirect_uri: string;
|
||||
client_id = '';
|
||||
client_secret = '';
|
||||
redirect_uri = '';
|
||||
}
|
||||
|
||||
export class OauthScrets {
|
||||
|
||||
Reference in New Issue
Block a user