File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -10,4 +10,10 @@ const authScopes = {
10
10
m365Login : [ ]
11
11
} ;
12
12
13
- module . exports = { authConfig, authScopes }
13
+ const entraCredentialConfig = {
14
+ tenantId : 'ENTER_TENANT_ID' ,
15
+ clientId : 'ENTER_CLIENT_ID' ,
16
+ resourceEndpoint : 'ACS_RESOURCE_ENDPOINT' // e.g., 'https://contoso.unitedstates.communication.azure.com/'
17
+ } ;
18
+
19
+ module . exports = { authConfig, authScopes, entraCredentialConfig }
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const axios = require("axios");
7
7
const bodyParser = require ( 'body-parser' ) ;
8
8
const msal = require ( '@azure/msal-node' ) ;
9
9
10
- const { authConfig, authScopes} = require ( './oAuthConfig' ) ;
10
+ const { authConfig, authScopes, entraCredentialConfig } = require ( './oAuthConfig' ) ;
11
11
const clientId = authConfig . auth . clientId ;
12
12
13
13
@@ -217,9 +217,9 @@ module.exports = {
217
217
try {
218
218
res . setHeader ( 'Content-Type' , 'application/json' ) ;
219
219
res . status ( 200 ) . json ( {
220
- tenantId : 'ENTER_TENANT_ID' ,
221
- clientId : 'ENTER_CLIENT_ID' ,
222
- resourceEndpoint : 'ACS_RESOURCE_ENDPOINT' // e.g., 'https://contoso.unitedstates.communication.azure.com'
220
+ tenantId : entraCredentialConfig . tenantId ,
221
+ clientId : entraCredentialConfig . clientId ,
222
+ resourceEndpoint : entraCredentialConfig . resourceEndpoint
223
223
} ) ;
224
224
} catch ( e ) {
225
225
console . error ( e ) ;
You can’t perform that action at this time.
0 commit comments