【发布时间】:2021-09-15 16:45:09
【问题描述】:
我正在与一个开发团队合作,该团队正在利用 Microsoft 的 MSAL.js 库开发一个 vanilla javascript 应用程序。 authConfig.js 有以下必要的代码:
const msalConfig = {
auth: {
clientId: "11111111-1111-1111-111111111111",
authority: "https://login.microsoftonline.com/11111111-1111-1111-1111111111111",
redirectUri: "http://localhost:3000/",
},
cache: {
cacheLocation: "sessionStorage", // This configures where your cache will be stored
storeAuthStateInCookie: false, // Set this to "true" if you are having issues on IE11 or Edge
}
我需要能够更改 Dev、QA 和 Prod 的 clientId 和 RedirectURI。有没有办法为 DevOps 管道依赖注入这些值?
【问题讨论】:
标签: javascript azure-devops msal msal.js