Skip to content

Commit 4760546

Browse files
Fix missing function, fix signup calls
1 parent 5c7bedd commit 4760546

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/handlers/oidc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ var debug = require('../debug')
88
var util = require('../utils')
99
// const bodyParser = require('body-parser')
1010
var path = require('path')
11+
const addLink = require('../header').addLink
1112

1213
module.exports.api = api
1314
module.exports.authenticate = authenticate

lib/identity-provider.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -520,14 +520,14 @@ IdentityProvider.prototype.post = function (req, res, next) {
520520
return callback()
521521
}
522522

523-
const oidc = req.app.locals.oidc
523+
const oidcRpClient = req.app.locals.oidc
524524

525-
if (!oidc) {
525+
if (!oidcRpClient) {
526526
debug('there is no OidcService')
527527
return callback()
528528
}
529-
530-
return oidc.client.users
529+
let trustedClient = oidcRpClient.trustedClient
530+
return trustedClient.client.users
531531
.create({
532532
email: options.email,
533533
profile: agent,

0 commit comments

Comments
 (0)