Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ src/**/*.js.map
src/**/*.d.ts

samples/**/secrets.ts
samples/**/secrets.js
samples/node_modules/**
samples/lib/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

4. Navigate to the samples folder [./samples]and run `npm install`

5. Navigate to tokenCredentialAuthenticationProvider[./samples/javascript/clientInitialization/tokenCredentialAuthenticationProvider] in the samples directory.
5. Navigate to secrets.js[./secrets] and populate all the values (tenantId, clientId, clientSecret, scopes)

6. For running this javascript sample, run `node index.js`
6. Navigate to tokenCredentialAuthenticationProvider[./samples/javascript/clientInitialization/tokenCredentialAuthenticationProvider] in the samples directory.

7. For running this javascript sample, run `node index.js`
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ const { clientId, clientSecret, scopes, tenantId } = require("./secrets");
require("isomorphic-fetch");

const port = "<PORT_NUMBER>";
const tenantId = "<TENANT_ID>";
const clientId = "<CLIENT_ID>";
const clientSecret = "<CLIENT_SECRET>";
const scopes = "<SCOPE>";
const redirectUri = `http://localhost:${port}/authresponse`;
const authorityHost = "https://login.microsoftonline.com";

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const tenantId = "<TENANT_ID>";
const clientId = "<CLIENT_ID>";
const clientSecret = "<CLIENT_SECRET>";
const scopes = "<SCOPE>";

module.exports = {
tenantId: tenantId,
clientId: clientId,
clientSecret: clientSecret,
scopes: scopes
}