Skip to content

Commit 3146536

Browse files
committed
updates to b2clogin to run on local host
1 parent 1be65dd commit 3146536

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ var passport = require("passport");
99
var BearerStrategy = require('passport-azure-ad').BearerStrategy;
1010

1111
// TODO: Update the first 3 variables
12-
var tenantName = "fabrikamb2c"
13-
var tenantID = tenantName + ".onmicrosoft.com";
14-
var clientID = "25eef6e4-c905-4a07-8eb4-0d08d5df8b3f";
12+
var clientID = "93733604-cc77-4a3c-a604-87084dd55348";
13+
var b2cDomainHost = "fabrikamb2c.b2clogin.com";
14+
var tenantIdGuid = "775527ff-9a37-4307-8b3d-cc311f58d925";
1515
var policyName = "B2C_1_SUSI";
16-
var b2cDomain = ".b2clogin.com"
1716

1817
var options = {
19-
identityMetadata: "https://" + tenantName + b2cDomain + "/" + tenantID + "/v2.0/.well-known/openid-configuration/",
18+
identityMetadata: "https://" + b2cDomainHost + "/" + tenantIdGuid + "/" + policyName + "/v2.0/.well-known/openid-configuration/",
2019
clientID: clientID,
2120
policyName: policyName,
2221
isB2C: true,
23-
validateIssuer: true,
22+
validateIssuer: false,
2423
loggingLevel: 'info',
24+
loggingNoPII: false,
2525
passReqToCallback: false
2626
};
2727

@@ -64,4 +64,4 @@ app.get("/hello",
6464
var port = process.env.PORT || 5000;
6565
app.listen(port, function () {
6666
console.log("Listening on port " + port);
67-
});
67+
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"express": "^4.14.0",
1515
"morgan": "^1.7.0",
1616
"passport": "^0.3.2",
17-
"passport-azure-ad": "^3.0.4"
17+
"passport-azure-ad": "^3.0.12"
1818
}
1919
}

0 commit comments

Comments
 (0)