let validated 3rd party tokens pass
这个提交包含在:
父节点
fc07a8dd30
当前提交
aa28f00a4b
@ -35,11 +35,14 @@ function generateRescope(req, Models, decoded, fullPpid, ppid) {
|
|||||||
console.log('[DEBUG] fullPpid:', fullPpid);
|
console.log('[DEBUG] fullPpid:', fullPpid);
|
||||||
console.log('[DEBUG] ppid:', ppid);
|
console.log('[DEBUG] ppid:', ppid);
|
||||||
|
|
||||||
throw new Error(
|
if (!req.oauth3.token.sub || !req.oauth3.token.iss) {
|
||||||
"TODO: No profile found with that credential. Would you like to create a new profile or link to an existing profile?"
|
throw new Error(
|
||||||
);
|
"TODO: No profile found with that credential. Would you like to create a new profile or link to an existing profile?"
|
||||||
}
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return req.oauth3.token.sub + '@' + req.oauth3.token.iss;
|
||||||
|
}
|
||||||
|
|
||||||
// XXX BUG XXX need to pass own url in to use as issuer for own tokens
|
// XXX BUG XXX need to pass own url in to use as issuer for own tokens
|
||||||
req.oauth3.accountIdx = result.sub + '@' + (result.iss || decoded.iss);
|
req.oauth3.accountIdx = result.sub + '@' + (result.iss || decoded.iss);
|
||||||
|
|||||||
正在加载...
x
在新工单中引用
屏蔽一个用户