Skip to content

Commit

Permalink
Add comments clarifying the purpose of setupProxy (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
darsney authored Nov 2, 2022
1 parent 0e736ef commit 62c2147
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/src/setupProxy.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

/* This code is used for local development purposes only
Library consumers are responsible for creating server side middleware
as necessary and appropriate for their scenarios */

const { DefaultAzureCredential } = require("@azure/identity");
const { createProxyMiddleware } = require("http-proxy-middleware");

module.exports = function (app) {
// Client identity should always be verified in hosted implementations
// DefaultAzureCredential is used for local development purposes only
const credentialDigitalTwins = new DefaultAzureCredential();
const credentialRBAC = new DefaultAzureCredential();
const credentialGraph = new DefaultAzureCredential();
Expand Down

0 comments on commit 62c2147

Please sign in to comment.