Skip to content
This repository was archived by the owner on Feb 26, 2020. It is now read-only.

Commit d9c684f

Browse files
committed
no message
1 parent 4eb3400 commit d9c684f

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

node-server/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function listTasks(req, res, next) {
193193
log.info(data);
194194
}
195195

196-
if (!data.length) {
196+
if (!data.length) {
197197
log.warn(err, "There is no tasks in the database. Add one!");
198198
}
199199

@@ -331,8 +331,8 @@ var oidcStrategy = new OIDCBearerStrategy(options,
331331
if (!user) {
332332
// "Auto-registration"
333333
log.info('User was added automatically as they were new. Their sub is: ', token.sub);
334-
users.push(token);
335-
owner = token.sub;
334+
users.push(token);
335+
owner = token.sub;
336336
return done(null, token);
337337
}
338338
owner = token.sub;

node-server/config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Don't commit this file to your public repos. This config is for first-run
2-
exports.creds = {
3-
mongoose_auth_local: 'mongodb://localhost/tasklist', // Your mongo auth uri goes here
4-
audience: 'http://localhost:8888/', // the Audience is the App URL when you registered the application.
5-
identityMetadata: 'https://login.microsoftonline.com/common/'
6-
};
2+
exports.creds = {
3+
mongoose_auth_local: 'mongodb://localhost/tasklist', // Your mongo auth uri goes here
4+
issuer: 'https://sts.windows.net/cff56d8f-f602-4afd-94e4-c95b76f1c81e/',
5+
audience: 'http://kidventus.com/TodoListService',
6+
identityMetadata: 'https://login.microsoftonline.com/common/.well-known/openid-configuration' // For using Microsoft you should never need to change this.
7+
};

0 commit comments

Comments
 (0)