-
Register your application to enable authentication to Azure Active Directory using the client secret credential. For more details, please check the following links
-
Update your
clientId
,tenantId
,scopes
,clientSecret
,port
in the index.js .
-
Navigate to project home [../../]
-
Run
npm install
to install the application. -
Run
npm run build
to build the library files. -
Navigate to the samples folder [./samples]and run
npm install
-
Navigate to secrets.js[./secrets] and populate all the values (tenantId, clientId, clientSecret, scopes)
-
Navigate to tokenCredentialAuthenticationProvider[./samples/javascript/clientInitialization/tokenCredentialAuthenticationProvider] in the samples directory.
-
For running this javascript sample, run
node index.js