-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfigurations.js
More file actions
26 lines (24 loc) · 1.7 KB
/
configurations.js
File metadata and controls
26 lines (24 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
'use strict';
/****
It is not recommended to commit your application key or client secret to ANY repository. In this case
these keys were generated against the devcop Brightspace instance which can be used for developer testing.
It is also recommended that the state not be a hardcoded value but instead be a value that is re-computed during each OAuth 2.0 authorization
request. Please read the configurations documentation for additional information.
****/
module.exports = {
applicationId: process.env.APPLICATION_ID || 'JABIh2YY5cek4hvKy5jXVQ',
applicationKey: process.env.APPLICATION_KEY || 'cG_U2aE9bH1YySI2PIdCTA',
authCodeScope: process.env.AUTH_SCOPE || 'core:*:* grades:gradeobjects:read enrollment:orgunit:read content:modules:read content:topics:read content:toc:read users:userdata:read grades:gradeobjects:read',
authEndpoint: process.env.AUTH_ENDPOINT || 'https://auth.brightspace.com/oauth2/auth',
clientId: process.env.CLIENT_ID || '3f81fb91-87c9-4550-852f-89225dd53371',
clientSecret: process.env.CLIENT_SECRET || 'hmLB9sFEgEo7Mdu_bu38xkLWNxhQmoVxPzpl9QKiBAE',
configuredPort: process.env.TOKEN_CONFIGURED_PORT || 34343,
cookieName: process.env.COOKIE_NAME || 'sampleAppCokie',
cookieOptions: { httpOnly: true, secure: true },
instanceScheme: process.env.INSTANCE_SCHEME || 'https:',
instancePort: process.env.INSTANCE_PORT || '443',
instanceUrl: process.env.INSTANCE_URL || 'devcop.brightspace.com',
ltiSecret: process.env.LTI_SECRET || 'secret',
state: process.env.STATE || 'ed9dda12-1397-4bac-aba2-096acc7d24f1',
tokenEndpoint: process.env.TOKEN_ENDPOINT || 'https://auth.brightspace.com/core/connect/token'
};