简体   繁体   English

验证请求 Auth0

[英]Authenticating requests Auth0

Could someone explain how I authenticate my requests with auth0.有人可以解释我如何使用 auth0 验证我的请求吗? I am using cloudflare workers for requests, and react for my frontend framework, although I'm sure this is irrelevant.我正在使用 cloudflare 工作人员来处理请求,并对我的前端框架做出反应,尽管我确信这无关紧要。 My understanding is to verify the person sending the request is legit, I would send the jwt token from auth0 in the request header, then I would ask on my server for that persons token from auth0, and then I can check these are the same thus verifying the user is legit etc. Is this right or not?我的理解是验证发送请求的人是否合法,我会在请求 header 中从 auth0 发送 jwt 令牌,然后我会在我的服务器上询问来自 auth0 的那个人令牌,然后我可以检查这些令牌是否相同验证用户是否合法等。这对吗? and could someone explain in greater detail like how do I get the users token from auth0?有人可以更详细地解释一下,比如如何从 auth0 获取用户令牌?

Thanks!谢谢!

Have you seen this tutorial in the Cloudflare documentation?您是否在 Cloudflare 文档中看过本教程? Authorize users with Auth0 . 使用 Auth0 授权用户 It should be a great starting point to understand the process.这应该是理解这个过程的一个很好的起点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM