腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
Passport.authenticate
导出
->
passport.authenticate
(
一些
东西
)(
请求
,
资源
,
下一步
)?
、
、
、
、
我不明白为什么在
passport.authenticate
函数之后需要(req, res, next) 在express中使用这个,我遵循了一个教程,并没有很好地解释这段话 PS:一切都很好,我只是不明白为什么需要这样做const passport = require('passport')
passport.authenticate
浏览 15
提问于2019-06-13
得票数 1
1
回答
使用带Sailsjs的本地护照时没有响应
、
、
function(req, res){ console.log('loginctrl');
passport.authenticate
浏览 3
提问于2014-02-25
得票数 2
回答已采纳
1
回答
更改后重新处理
请求
、
、
、
我试图以一种通用的方式使用passport.js,在调用authenticate之前更改配置,但之后找不到将
请求
重定向到它的方法。accessToken, refreshToken, profile, cb};
passport.authenticate
throw new Error(network + ' is not configured'); } catc
浏览 0
提问于2018-08-21
得票数 2
回答已采纳
2
回答
快速传递params来路由抛出TypeError('Router.use() )需要中间件函数,但得到了
、
、
module.exports = function(passport) { router.post('/',
passport.authenticate
浏览 7
提问于2015-01-26
得票数 0
回答已采纳
1
回答
护照谷歌战略-什么时候passport.use回调运行?callbackURL?
、
、
、
、
err, user) { });));// GET /auth/googleapp.get('/auth/google',
浏览 1
提问于2019-05-26
得票数 1
2
回答
如何通过passport-saml验证后重定向回最初
请求
的url?
、
、
、
如果这是一个愚蠢的问题,我很抱歉,但我在理解如何将客户端浏览器重定向回最初通过我们的SAML身份提供者(IdP)身份验证后
请求
的任何URL时遇到了
一些
问题。例如,假设客户机最初从另一个未受保护的页面上的链接
请求
/foo/bar,但因为这是一个受保护的
资源
,所以我用重定向到/login作为响应,在这里我调用
passport.authenticate
('saml在此过程中,我再次使用
passport.authenticate
(saml)验证响应SAML
浏览 0
提问于2014-07-07
得票数 31
回答已采纳
2
回答
ExpressJS & Passport pass
请求
,
资源
、
、
我正在尝试通过传递
请求
和
资源
回调,以检查用户的ip使用requestIp,以防止多重记账,任何帮助将非常感谢。(req.clientIp返回用户ip)router.get('/google',
passport.authenticate
('google', {})); router.get('/google/callback
浏览 0
提问于2019-03-07
得票数 0
1
回答
使用req.params作为
passport.authenticate
()在passport.js中的输入(使用Exchange4.0)
、
、
、
、
我们遇到的问题是如何将req.params解析为
passport.authenticate
函数以使用特定的策略。理想情况下,我们希望通过将API特定的设置加载到策略中,该策略也是通用的。')) successRedirect:我们可以将其扩展到将req.params变量解析为
passport.authenticate</em
浏览 1
提问于2016-02-27
得票数 2
回答已采纳
1
回答
React路由器截获对Express服务器的API调用
、
、
、
、
我已经设置了express路由和passport配置,但每次我点击客户端的<a href="/api/auth/facebook">链接时,它都会向RR发出一个
请求
,因为我的express应用程序包含以下行loadUserRoutes(router, passport) { router.get('/auth/facebook',
passport.authenticate
success
浏览 0
提问于2017-04-05
得票数 1
1
回答
使用react路由器进行意外重定向
、
、
删除该函数后,浏览器将不会访问/api/polls 为什么浏览器访问/api/polls而不是发出异步
请求
?
浏览 0
提问于2017-03-31
得票数 0
3
回答
禁用Express应用程序配置中的会话
、
、
我正在为一个Node.js API应用程序使用,我可以通过将{session:false}传递给
passport.authenticate
来禁用会话,但是有什么方法可以在一个地方这样做,这样我就不会重复function() { app.use(passport.initialize()); app.get('/users',
passport.authenticate
('hash', {session:false}), c
浏览 5
提问于2013-11-03
得票数 3
回答已采纳
1
回答
如何在“成功”页面上获取客户购买的产品
、
在完成(成功)结帐后,当客户被重定向回success页面时,我很难了解客户刚刚完成的购买。怎样才能得到这些信息?
浏览 5
提问于2022-01-19
得票数 1
回答已采纳
1
回答
Passportjs排除
资源
、
、
Register stratrgy app.use('/api',
passport.authenticate
但是,我希望在同一根路径(/api)中有
一些
资源
(如/login )不受保护。我可以继续添加
passport.authenticate
('jwt', { s
浏览 0
提问于2018-04-17
得票数 0
回答已采纳
1
回答
护照-saml策略在nodejs中的实施
、
、
、
com/nickname"] }); }这是路线
passport.authenticate
Profile : ", profile);); (req, res, next) => {
passport
浏览 4
提问于2017-12-08
得票数 6
1
回答
Node.js护照不调用下一个函数
、
、
app.get('/profile',
passport.authenticate
('local-login', { session : false, failureRedirect : '/login
浏览 6
提问于2016-07-15
得票数 1
回答已采纳
1
回答
为什么
passport.authenticate
会被调用两次?
我正在查看passport-谷歌示例app.get('/auth/google',function(req, res) {});app.get('/auth/google/return',
passport.a
浏览 1
提问于2014-10-09
得票数 5
1
回答
使用sequelize的护照js本地认证
、
、
、
、
当我提交登录表单时,
请求
/响应周期永远不会结束,并且终端中没有错误消息。, res) { })
passport.authenticate
浏览 4
提问于2015-11-03
得票数 1
回答已采纳
1
回答
无法读取未定义的属性'user‘& DELETE /api/profile/id 500 168.563 ms - 148
router.delete('/id',
passport.authenticate
('jwt',{ session: false }),(
请求
,
资源
) => { User.findOne({ _id
浏览 16
提问于2020-10-06
得票数 0
3
回答
护照-Auth0-无限重定向循环,“无效授权
请求
状态”。
、
、
我试图使用这个回购的自述的入门示例来简化代码,现在我的路由代码如下所示:
passport.authenticate
('auth0', {scope: 'openid email profile'}), )
passport.authent
浏览 2
提问于2019-08-01
得票数 0
回答已采纳
1
回答
使用requestVisibleActions
请求
Passport.js在Google+ API中插入矩的权限
、
、
passport.js文档没有说明我如何在登录时
请求
这样的权限。我当前的auth处理程序设置如下: scope: ['https
浏览 4
提问于2015-01-12
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
热门
标签
更多标签
云服务器
ICP备案
对象存储
云直播
腾讯会议
活动推荐
运营活动
广告
关闭
领券