简体   繁体   English

我应该为我的 Azure 门户身份验证使用什么 SSL URL

[英]What SSL URL should I use for my Azure portal authentification

I want this OIDC AAD authentication to work in My ASP.net framework apps.我希望此 OIDC AAD 身份验证在我的 ASP.net 框架应用程序中工作。 So, here's the tutorial所以, 是教程

I'm stock here:我这里有货:

"7. Add the SSL URL you copied from Visual Studio in step 1 (for example, https://localhost:44368/) in Redirect URI." “7. 添加您在步骤 1 中从 Visual Studio 复制的 SSL URL(例如,重定向 URI 中的 https://localhost:44368/)。”

I understand that this would work when debugging, but it's time for live deployment.我知道这在调试时会起作用,但现在是实时部署的时候了。 I have absolutely no idea what is the SSL URL I should put in my azure console.我完全不知道 SSL URL 是什么我应该放在我的 azure 控制台中。 And it's probably not "https://localhost:44368/".它可能不是“https://localhost:44368/”。

I tried to just put "https://nameOfMyWebSite/claims" but it prompt the Microsoft authentication even after a successful authentication, it causes a loop that ask me to authenticate forever, never redirecting in my web site.我试图只输入“https://nameOfMyWebSite/claims”,但即使在成功验证后它也会提示 Microsoft 身份验证,它会导致一个循环要求我永远进行身份验证,永远不会在我的 web 站点中重定向。 I authenticated 5 times in a row to be sure something's wrong.我连续验证了 5 次以确保出现问题。

As per tutorial, you are putting host : https://localhost:44368/ , replace it with host of your prod website domain directly:根据教程,您将hosthttps://localhost:44368/直接替换为您的产品网站域的主机:

https://nameOfMyWebSite.azurewebsites.net/

Also, do try adding below URL, as it gets auto populated when you create an App Registration on portal:此外,请尝试在 URL 下方添加,因为它会在您在门户上创建应用注册时自动填充:

https://nameOfMyWebSite.azurewebsites.net/.auth/login/aad/callback

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

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