简体   繁体   English

带有Node.js后端的Azure自定义身份验证

[英]Azure Custom Auth with Node.js Backend

I am trying to login clients using their email and password through Auth0 with a Node.js backend on the Azure app service and a Xamarin.Forms client. 我正在尝试通过Auth0使用客户端的电子邮件和密码登录客户端,并在Azure应用程序服务和Xamarin.Forms客户端上使用Node.js后端。 The problem is that I can't create a custom authentication on Node.js since the tutorial I was following used a .NET backend. 问题在于,由于我遵循的教程使用.NET后端,因此无法在Node.js上创建自定义身份验证。 I also followed this tutorial for Node.js backend both by the awesome Adrian Hall, but it seems to override the already exisiting Facebook login system, and I can't find enough material on that problem. 我还通过很棒的Adrian Hall来关注Node.js后端的本教程 ,但是它似乎覆盖了已经存在的Facebook登录系统,而我在该问题上找不到足够的材料。 Is there any other tutorial on doing that or am I getting something wrong? 还有其他有关此操作的教程,还是我做错了什么?

You are doing something wrong. 您做错了。 You can use Auth0 with no problems - Auth0 will be used for all the providers, and their client SDKs will allow you to choose Facebook, Google, Username/Password or anything else you need. 您可以毫无问题地使用Auth0-所有提供商都将使用Auth0,他们的客户端SDK将允许您选择Facebook,Google,用户名/密码或其他所需的东西。

The mechanism for the process is as documented - I think you just need to re-read the blog post and understand the transaction - you use the Auth0 libraries to get the Auth0 token, then submit your Auth0 token to your custom login API (/.auth/login/custom) to mint an App Service token that is used by the Azure Mobile Apps client SDK. 该过程的机制已记录在案-我认为您只需要重新阅读博客文章并了解交易即可-您使用Auth0库获取Auth0令牌,然后将Auth0令牌提交到自定义登录API(/。 auth / login / custom)来创建由Azure Mobile Apps客户端SDK使用的App Service令牌。

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

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