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 = {
1010 m365Login : [ ]
1111} ;
1212
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");
77const bodyParser = require ( 'body-parser' ) ;
88const msal = require ( '@azure/msal-node' ) ;
99
10- const { authConfig, authScopes} = require ( './oAuthConfig' ) ;
10+ const { authConfig, authScopes, entraCredentialConfig } = require ( './oAuthConfig' ) ;
1111const clientId = authConfig . auth . clientId ;
1212
1313
@@ -217,9 +217,9 @@ module.exports = {
217217 try {
218218 res . setHeader ( 'Content-Type' , 'application/json' ) ;
219219 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
223223 } ) ;
224224 } catch ( e ) {
225225 console . error ( e ) ;
You can’t perform that action at this time.
0 commit comments