forked from microsoftgraph/nodejs-webhooks-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
22 lines (20 loc) · 801 Bytes
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
exports.msalConfiguration = {
authority: 'https://login.microsoftonline.com/common',
clientID: 'ENTER_YOUR_CLIENT_ID',
clientSecret: 'ENTER_YOUR_SECRET',
tenantID: 'ENTER_YOUR_TENANT_ID',
redirectUri: 'http://localhost:3000/callback'
};
exports.subscriptionConfiguration = {
changeType: 'Created',
notificationUrl: 'https://NGROK_ID.ngrok.io/listen',
resource: 'me/mailFolders(\'Inbox\')/messages',
clientState: 'cLIENTsTATEfORvALIDATION',
includeResourceData: false
};
exports.certificateConfiguration = {
certificateId: 'myCertificateId',
relativeCertPath: './certificate.pem',
relativeKeyPath: './key.pem',
password: 'Password123',
}; // the certificate will be generated during the first subscription creation, production solutions should rely on a certificate store