【发布时间】:2021-07-25 16:43:15
【问题描述】:
我已经在我的 Express 服务器中设置了带有护照的 azureAD 登录。我想访问 passport.authenticate 中间件中的 req 对象,这可能吗?
this.router.post(
'login/azure/return',
passport.authenticate('azuread-openidconnect', {
session: false,
failureRedirect: '' // I would like access to the req object HERE
}),
(req, res) => {
...
}
【问题讨论】:
-
你知道怎么做吗?如果是,请分享
标签: node.js express passport.js