应用程序内置的Google身份验证

发布于 2025-02-09 23:13:20 字数 979 浏览 2 评论 0原文

我是刚开始的Web开发人员(或一般而言的CS人员),并使用Azure App Service和Node/Express创建了Web应用程序。我刚刚在此处使用此链接设置Google身份验证: https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-google ,我很简单地制作了一个显示页面,可以选择以下内容:< a href =“ https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-customize-customize-sign-in-indump-sign-multiple-multiple-sign-in-sign-in-providers” rel =“ nofollow Noreferrer“> https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-customize-customize-sign-in-sign-indump---------------------------------sign-multiple-multiple-sign-sign-in-providers

到目前为止我知道,所有这些都可以。但是,我绝对不知道该如何进行。我已经看了各种文档,但是我的设置似乎没有任何作用。我认为我需要做的就是获得某种令牌,对吗?如何从我的位置获得令牌?从角度来看,我要做的下一件事就是某种程度上将登录名与用户名链接。我知道这将涉及一个数据库,但是我还没有设置其中一个,因为我不想以令牌不起作用的方式进行设置

I am a just beginning web developer (or really CS person in general) and have created a web app with Azure App Service and Node/Express. I just set up Google Authentication using this link here: https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-google and I very simply made a display page with the option to log in with this: https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-customize-sign-in-out#use-multiple-sign-in-providers

As far as I am aware, all of this works. However, I have absolutely no idea how to proceed from this point. I have looked at all sorts of docs, but nothing seems to work with my setup. I think what I need to do is get some sort of token, right? How do I get a token from where I am at? For perspective, the next thing I want to do is somehow link the login with a username. I know this will involve a database, but I haven't set up one of those yet as I didn't want to set it up in a way that the token doesn't work

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

平定天下 2025-02-16 23:13:20

我试图在环境中复制相同的内容并配置了Google身份验证,并能够成功登录用户:

​png“ alt =”在此处输入图像说明“>

请确保在Azure Active Directory中添加应用程序服务的URI如下:

”在此处输入映像说明“

您可以使用Azure Active Directory,并添加以下用户:

转到Azure Portal - &gt; Azure Active Directory-&GT;用户 - &gt;新用户 - &gt;创建新的用户

“在此处输入映像”

如果仍然存在问题,您可以制作使用此 blog

有关更多详细信息,您可以参考下面的链接:

azure app Services - 使用FB,Google和Google进行身份验证其他人在5分钟左右的时间内 - hryniewski.net

如何使用Google Authentication(C-Sharpcorner.com)保护您的Azure应用程序服务

I tried to reproduce the same in my environment and configured Google authentication and was able to sign-in the user successfully:

enter image description here

Make note of the App service URL like below:

enter image description here

Make sure to register the application in Azure Active Directory by adding the URI of App service like below:

enter image description here

You can make use of Azure Active Directory and add the users like below:

Go to Azure Portal -> Azure Active Directory -> Users -> New user -> Create new user

enter image description here

If still the issue persists, you can make use of this blog.

For more in detail, you can refer below links:

Azure App Services – Authentication with FB, Google and others in 5 minutes or so – Hryniewski.NET

How To Secure Your Azure App Service With Google Authentication (c-sharpcorner.com)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文