腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
Passport
js
Google
auth
对
JWT
有意义
吗
?
、
、
、
、
我正在尝试实现
Passport
.
js
谷歌登录到我的MERN。async function(req, res, next) { const token = req.header("x-
auth
-token"decoded.user; } } catch (err) { console.error("something wrong with
auth
浏览 12
提问于2020-05-20
得票数 1
6
回答
Strategy.OAuth2Strategy.parseErrorResponse - NodeJS护照错误
、
、
、
、
我试图使用护照和谷歌护照将谷歌身份验证嵌入到Node.
js
中-
google
20。这是我的代码:路由(从‘/
auth
’开始)const router = require('express: keys.
google
.clientSecret, callbackURL: '
auth
/<e
浏览 1
提问于2018-07-07
得票数 7
回答已采纳
2
回答
同一应用程序中的多个
passport
-
jwt
策略
、
如何使用不同的密码创建两个不同的
passport
-
jwt
,并使用它来验证两个不同的角色?var
passport
_admin = require('../../
auth
_layer/admin_
jwt
_
auth
')(
passport
_admin); require('../
auth
_layer/user_
jwt
_
auth
浏览 4
提问于2016-10-01
得票数 6
2
回答
护照和
JWT
&
Google
策略-禁用会话& res.send()在
google
回调之后
、
、
、
、
res.send()用户到客户端经过
google
认证。 如果我没有走上正确的方向,可以自由地提出其他选择。
浏览 7
提问于2016-11-27
得票数 15
回答已采纳
1
回答
每次我使用express
js
app进行代码更改时都会丢失会话
、
、
不是
吗
?/* clientID: `${process.env.
GOOGLE
_
AUTH
_CLIENT_ID}`,
浏览 1
提问于2019-08-22
得票数 0
1
回答
在
Google
Oauth2登录后将
JWT
传递给UI应用程序
、
、
、
、
我增加了
对
谷歌Oauth2登录使用
passport
-
google
-oauth20 npm软件包的支持。('
google
', { failureRedirect: '/api/
auth
/
google
/failed' }), clientSecret: serverConfig.
auth
浏览 6
提问于2021-01-31
得票数 0
1
回答
Node.
js
-
Passport
JWT
Auth
,返回的req.logIn不是函数
、
、
、
、
/
auth
/
auth
')(
passport
) 当我尝试使用令牌作为'secret_token‘查询参数来访问/secret时,我得到: TypeError: req.logIn is not a function_verify (/app/
auth
/
auth
.
js
:18:16) at /app/node_modules/
passport
-
jwt<
浏览 25
提问于2021-09-27
得票数 0
2
回答
“护照”、“本地护照”和“护照-
jwt
”有什么区别?
、
、
、
、
我是否需要同时使用本地护照和护照-
jwt
,还是只使用其中之一?
浏览 0
提问于2020-07-21
得票数 6
1
回答
在OAuth2登录后重定向到前端(在不同的URL上)
、
、
、
我正在尝试按以下方式设置我的应用程序: 我的回调网址是:。 张贴成功的登录,什么是一个好的方式重定向回前端网址,即 ??
浏览 1
提问于2019-06-18
得票数 3
1
回答
passport
-
jwt
sequelize 401 always
、
、
、
我一直在使用JWTStrategy和jwtwebtoken,同时使用Secret和RS256算法
对
令牌进行签名// import * as module from 'module/models/user'), ExtractJwt = require('
passport
-
浏览 1
提问于2018-05-23
得票数 1
2
回答
Next.
js
用/api路线和护照实现谷歌登录
、
、
我正试图在我的无服务器(/api路由) next.
js
应用程序中实现
Google
。例如,我发现: import
passport
from '
passpor
浏览 6
提问于2020-11-04
得票数 1
1
回答
管理passportjs
Google
- Vue应用程序中的策略
、
、
、
、
这是我的代码:router.get(
passport
.authenticate('
google
', {scope: ['profile', 'email'],); '/
google
/callback',
浏览 1
提问于2020-09-08
得票数 0
4
回答
如何使passportjs
google
登录oauth与
JWT
一起工作,而不是通过序列化/反序列化方法创建会话?
、
、
、
、
})); app.get("/
auth
/
google
/callback", failureRedirect= require("
passport
"), GoogleStrategy = require("
passport
-
google
-oa
浏览 11
提问于2017-10-30
得票数 17
2
回答
护照-未经许可
、
、
我是节点
js
的新手。我正在使用护照
jwt
进行身份验证。当我试图验证时,它总是显示“未经授权”。我的
passport
.
js
文件const ExtractJwt = require('
passport
-
jwt
();
passport</
浏览 3
提问于2017-08-24
得票数 2
回答已采纳
1
回答
响应代理请求到后端API启动
Passport
,
Google
OAuth2请求
、
、
、
app.get('/api/
auth
/
google
', function(){ },
passport
.authenticateapp.get('/api/
auth
/
google
/callback',
passport
.authenticate('
g
浏览 6
提问于2019-09-21
得票数 3
1
回答
NodeJs护照总是返回UnAuthorized
、
、
、
})const JwtStrategy = require('
passport
-
jwt
').Strategy;
passport
.use( User.findById(
jw
浏览 7
提问于2020-04-19
得票数 0
回答已采纳
2
回答
PassportJs
Google
Auth
2 failureRedirect不工作
、
、
、
、
我正在使用
passport
-
google
-oauth认证谷歌登录。请通过以下代码:-module.exports = (
jwt
, app,
passport
) => { const User = require('..
浏览 0
提问于2018-01-12
得票数 1
1
回答
护照
JWT
: req.user总是未经授权的
、
、
、
、
但每次我得到401次未经授权 const options = {};global.JwtStrategy = require('
passport
-
jwt
').Strategy; global.Extract
浏览 0
提问于2018-10-08
得票数 1
回答已采纳
1
回答
护照与Node.
JS
结构
、
、
我正在使用一个普通的堆栈,并希望将
Passport
集成到其中。然而,我并不完全确定我应该如何安排它。我最终想包括几个策略,但让我们从谷歌开始。在我的routes.
js
文件中有: app.get('/
auth
/
google
/return
浏览 2
提问于2014-05-25
得票数 1
回答已采纳
2
回答
passport
-
jwt
总是返回'Unauthorized‘- 401
、
、
、
、
我试图在我的应用程序中执行社交身份验证,为此我使用了两个模块:
passport
-
google
-oauth-20和
passport
-
jwt
。似乎没有调用
passport
.authenicate('
jwt
')。下面是我的代码:const JwtStrategy = require('
passport
-
jwt
').Strate
浏览 11
提问于2017-12-05
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
跨域认证还不懂?来了解下 JSON Web Token 吧!
JSON Web Token 入门教程
基于 Token的WEB 后台认证机制
微服务前方有雷,服务网格帮你趟过通信安全这个坑!
「JWT」,你必须了解的认证登录方案
热门
标签
更多标签
云服务器
ICP备案
云直播
对象存储
腾讯会议
活动推荐
运营活动
广告
关闭
领券