腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
错误:
passport
.initialize()中间件未
使用
node.js
、
express
、
passport.js
我正在
使用
passport
.
js
创建登录。但是得到一个错误'
passport
.initialize()中间件没有
使用
。我尝试了所有现有的堆栈溢出类似的问题,但我仍然得到这个错误,有人能建议修复吗?错误:
passport
.initialize()中间件未在IncomingMessage.req.login.req.logIn (/srv/
node
_modules/
passport
-oauth2/lib&
浏览 25
提问于2019-08-21
得票数 0
1
回答
如何避免重复
在
多个
Passport
.
JS
路由
中
使用
的
Express.
JS
代码
javascript
、
node.js
、
express
、
passport.js
我刚开始
在
我
的
Express应用程序中
使用
Passport
.
js
来创建一个带有经过验证
的
路由
的
API。问题:如果在routes/animals.
js
和routes/locations.
js
中
定义了两个
路由
,
使用
Passport
来保护特定
的
API请求,那么我需要创建一个
passport
对象并运
浏览 0
提问于2018-08-21
得票数 1
回答已采纳
2
回答
同一应用程序
中
的
多个
passport
-jwt策略
javascript
、
node.js
如何
使用
不同
的
密码创建两个不同
的
passport
-jwt,并
使用
它来验证两个不同
的
角色?var
passport
_admin = require('../../
node
_modules/
passport
'); var
passport
_user = require('../../
node
_modules
浏览 4
提问于2016-10-01
得票数 6
3
回答
尝试为带有chai请求代理
的
测试维护用户会话时,发送报头后无法设置报头
javascript
、
node.js
、
express
、
passport.js
、
chai
测试通过我们
的
API以已经存在于数据库
中
的
用户身份登录,然后应该尝试从现有
路由
获取所有项目。我们当前
的
测试如下,它非常接近于Chai-HTTP文档上给出
的
示例。:16:29 at
node
_modules/
passport</e
浏览 0
提问于2016-03-30
得票数 2
2
回答
如何
使用
带角节点应用程序
的
护照?
angularjs
、
node.js
、
passport.js
我
的
工作是一个简单
的
博客网站,基于angular.
js
+
node
.
js
和mongodb
使用
快速模板。我
使用
$http,从POST方法
的
角控制器到名为users.
js
的
api,其中
使用
passport
.authenticate方法对登录进行身份验证。我需要护照-本地登录策略
在
users.
js
.但它不是working.here
的
浏览 3
提问于2016-04-22
得票数 10
1
回答
ExpressJS 4.2和闪存错误(TypeError: Object #<IncomingMessage>没有方法“flash”)
javascript
、
node.js
、
express
、
passport.js
我
使用
ExpressJS 4.2和PassportJS对本地用户进行身份验证。除了我试图提升failureFlash消息之外,一切都很好。这是我
的
公寓,谢谢!====
在
app.
js
中
的
要求var path = require('path');====配置
在
app.
js
中
浏览 3
提问于2014-07-28
得票数 2
回答已采纳
1
回答
使用
passport
- InternalOAuthError策略时
的
linkedin
node.js
、
oauth
、
passport.js
、
linkedin-api
我正在
使用
passport
-linkedin,我收到了这个错误。Users/davey/code/
node
/appify-frontend/
node
_modules/
passport
-linkedin/lib/
passport
-linkedin/strategy.
js
在
我
的
linkedin开发人员帐户
中
,我已经按照预期配置了所有
浏览 2
提问于2015-06-03
得票数 1
1
回答
passport
.authenticate不是函数/ User.findone不是函数
javascript
、
node.js
我是非常新
的
护照和
js
在一般情况下,但任何帮助将不胜感激!每次我尝试运行时,我得到
的
身份验证不是一个函数,那么如果我
在
我
的
htmlRoutes.
js
中
需要护照,我得到
的
findOne不是一个函数。非常困惑**const
passport
= require("
passport
"); const LocalSt
浏览 2
提问于2020-08-08
得票数 0
1
回答
NodeJs JWT
Passport
node.js
、
jwt
我
使用
nodejs和
passport
Auth JWT。我可以创建JWT令牌,但是如果我用
passport
.authenticate('jwt')保护我
的
路由
,它就不起作用了,并且我有一个错误。\nodejs\
node
\CRUD_NodeAngular5\NodeServer\
node
_modules\
passport
-jwt\
node
_modules\jsonwebtoken\verify.
js
浏览 2
提问于2018-05-11
得票数 0
2
回答
快速传递params来
路由
抛出TypeError('Router.use() )需要中间件函数,但得到了
node.js
、
express
、
passport.js
我正在为我
的
第一个快速应用程序构建一个体系结构。它
的
一部分是
使用
护照
的
认证服务。我正在努力解决下面描述
的
这个恼人
的
问题。var routes = require('.我想把这个对象传递给我
的
路由
器索引,然后传递给我
的
签名
路由
。
在
我
的
/router/
浏览 7
提问于2015-01-26
得票数 0
回答已采纳
1
回答
在
node
js
中
的
路由
中
使用
passport
node.js
我得到一个错误,那就是初始化前无法访问
passport
。我怎样才能修复它并通过路线访问护照呢?我
在
app.
js
文件
中
定义了
passport
和它
的
中间件 const
passport
= require(
passport
) ; router.get('/login',authController
浏览 15
提问于2021-10-04
得票数 2
回答已采纳
1
回答
在
node
.
js
中
使用
Wordpress验证请求
javascript
、
php
、
wordpress
、
node.js
、
authentication
我有一个Wordpress站点和一个
node
.
js
应用程序,它们共同构成了我正在构建
的
web应用程序。我
使用
Node
是因为socket.io和Wordpress有很多其他原因。无论怎样,我都不能删除wordpress或节点 我面临
的
问题是确保通过wordpress登录
的
用户
在
向
Node
服务器发出请求时是有效用户。我应该在wordpress auth进程中将会话信息推送到节点服务器,并让它维护自己
的
会话吗?然后,<em
浏览 4
提问于2014-04-01
得票数 1
回答已采纳
1
回答
sails.
js
的
最佳身份验证方法是什么?
node.js
、
authentication
、
sails.js
我正在寻找
在
sails.
js
v0.10 rc8
中
实现身份验证
的
最佳方法。我已经找到了像这样
的
模块,但是它
的
文档并不那么清晰。
浏览 3
提问于2014-07-26
得票数 9
回答已采纳
2
回答
如何在平均堆栈web应用
中
实现对页面的授权?
node.js
、
mongodb
、
mongoose
、
mean-stack
我正在为mongodb
中
的
应用程序编写模式。通常在带有Sql
的
asp.net
中
,我们将页面/UI分配给每个角色,这意味着角色有访问页面的权限(查看/编辑)。当角色登录到应用程序时,他只能在分配给该角色
的
页面
中
查看/编辑,则将不会为该角色显示联合国指定
的
页面。
在
c#
中
,我通过
在
pre_init事件
中
编写代码来限制角色。平均来说,Stack应用程序和我尝试
使用</
浏览 3
提问于2017-03-01
得票数 0
回答已采纳
12
回答
Passport
-twitter:
在
会话
中
找不到请求令牌
javascript
、
node.js
、
passport.js
就在昨天
在
Heroku上,我开始
在
twitter登录express时遇到这个错误。<anonymous> (/app/
node
_modules/
passport
-twitter/
node
_modules/
passport
-oauth/lib/
passport
-oauth/strategies/oauth.
js
:120:54) at Strate
浏览 0
提问于2012-06-18
得票数 22
回答已采纳
1
回答
在
Express (NodeJS)应用程序中有可能有不同
的
路由
文件吗?
node.js
、
express
、
routing
、
directory
、
passport.js
我是NodeJS初学者,我正在
使用
express。我
的
目录是这样
的
: |_assets |_somemodel.controller.
js
|_database.config.
js
server.
js</e
浏览 0
提问于2018-04-21
得票数 0
回答已采纳
2
回答
在
Express 4
中
设置
Passport
时未找到404错误
javascript
、
node.js
、
express
、
passport.js
、
passport-local
我真的很难让
passport
在
我
的
Node
.
js
应用程序
中
工作。我试着
在
我
的
app.
js
中
重新排序我
的
需求,但是我仍然无法让它开始工作。(/home/salma/Desktop/my-project/
node
_modules/
passport
/lib/middleware/a
浏览 3
提问于2016-12-22
得票数 4
回答已采纳
6
回答
Strategy.OAuth2Strategy.parseErrorResponse - NodeJS护照错误
node.js
、
express
、
passport.js
、
google-oauth
、
google-signin
我试图
使用
护照和谷歌护照将谷歌身份验证嵌入到
Node
.
js
中
- google 20。_createOAuthError (E:\Programowanie\NodeJS\Hydronide\
node
_modules\
passport
-oauth2\lib\strategy.
js
:376这是我
的
代码:
路由
(从‘/auth’开始) const
passport
=
浏览 1
提问于2018-07-07
得票数 7
回答已采纳
1
回答
未知身份验证策略
Passport
js
javascript
、
node.js
、
express
、
passport.js
我想为我
的
应用程序(用户和管理-都与jwt身份验证)有两个不同
的
例护照
Js
。我
在
正式文件中看到,区分它们
的
方法是命名它们。 我遗漏了什么?我是不是漏掉了出口什么
的
?“管理规则”
在
尝试(/home/radu/Desktop/licenta/backend/
node
_modules/
passport
/lib/middleware/authe
浏览 3
提问于2022-05-06
得票数 1
1
回答
表示错误500错误:查找失败
的
视图“/app/ view /admin/user”
node.js
、
angularjs
Yeoman已经被用于设置我
的
客户端脚手架,因此结构: 当它
使用
angularjs
路由
时,它在第一次装载时很好。(/Users/te
浏览 4
提问于2014-01-17
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Node.js中的关注点分离
Node.js中的事件循环是如何工作的
Node.js 中的异步生成器和异步迭代
Galxe推出Galxe Passport作为用户在Web3中的通用身份
vue.js 使用中踩过的坑
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券