简体   繁体   English

将Meteor与Azure Web App一起使用Azure Active Directory

[英]Using Azure Active Directory on Azure Web App with Meteor

I am creating a Meteor App and am going through the process of deploying through Azure Web App services. 我正在创建一个Meteor App,并正在通过Azure Web App服务进行部署。 I am using the azure-demeteorizer package in order to do so and am not running into any troubles there. 我正在使用azure-demeteorizer软件包,因此没有遇到任何麻烦。 I am also using the accounts-azure-active-directory package to enable users within my organization the ability to login to the application. 我还使用accounts-azure-active-directory程序包使组织内的用户能够登录到该应用程序。

All of this currently works on localhost, but when I upload to my Web App I get to the login page and when I click login the screen just goes white and doesn't sign me in. 所有这些当前都可以在localhost上运行,但是当我上传到Web应用程序时,我会进入登录页面,而当我单击“登录”时,屏幕只会变白并且无法登录。

Below are a couple screenshots of the process I am describing. 以下是我正在描述的过程的几个屏幕截图。

Clicking the 'sign in' button 点击“登录”按钮

White Screen after signing in 登录后出现白屏

EDIT: 编辑:

I have enabled the permissions to sign in on my web app (cannot post another picture due to not enough reputation). 我已启用在Web应用程序上登录的权限(由于信誉不足而无法发布其他图片)。 imgur.com/nXzPo59 (permissions picture) imgur.com/nXzPo59(权限图片)

您必须将您的应用程序添加到您的azure活动目录中,然后为其提供访问权限

Alright after going back and forth with the Microsoft NodeJS team we found the issue and the solution. 与Microsoft NodeJS团队反复交流之后,我们发现了问题和解决方案。

The issue was that OAuth2.0 + Web App + Active Directory creates some sort of limit on url strings where that limit is 1024 characters. 问题是OAuth2.0 + Web App + Active Directory对URL字符串创建了某种限制,该限制为1024个字符。 Sometimes your app's authentication token will cause the url to exceed this limit giving you this mysterious 404 error. 有时,您应用的身份验证令牌会导致网址超出此限制,从而给您带来神秘的404错误。

The solution for this is to navigate to your KUDU console and go to site>wwwroot>web.config and edit that. 解决方案是导航到KUDU控制台,然后转到site> wwwroot> web.config并进行编辑。 Add the missing line <requestLimits maxQueryString="20000"/> inside the <requestFiltering> tag. <requestFiltering>标记内添加缺少的行<requestLimits maxQueryString="20000"/>

暂无
暂无

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

相关问题 使用Azure Active Directory和Azure移动服务验证PHP Web应用程序 - Authenticating a PHP Web App with Azure Active Directory and Azure Mobile Services 无法进行身份验证 - 带有 Azure Active Directory (OpenIdConnect) 的 Azure Web 应用 - Unable Authenticate - Azure web app with Azure Active Directory (OpenIdConnect) Azure Active Directory对Azure网站的身份验证 - Azure Active Directory Authentication to Azure Web Site 从Azure Active Directory获取MVC Web应用程序中的samAccountName名称 - Getting samAccountName name in MVC Web App from Azure Active Directory Azure Active Directory登录:Web应用程序权限,未触发用户同意 - Azure Active Directory Login: Web App Permissions, User Consent not triggered 有没有一种方法可以在Azure活动目录中为Web应用程序用户添加自定义权限 - Is there a way to add custom permissions for web app user in azure active directory 登载Azure Active Directory for Azure Cloud App - On Boarding Azure Active Directory for Azure Cloud App 在Azure Web App中针对AAD使用Active Directory密码时,“不支持关键字:身份验证” - “Keyword not supported: authentication” when using Active Directory Password against AAD in Azure Web App 默认情况下使用Azure Active Directory登录页在IIS中托管的ASP.NET Web App - ASP.NET Web App hosted in IIS using Azure Active Directory Sign in Page by default 针对 Azure Active Directory JWT 令牌算法问题使用 Spring Boot Starter 保护 Java Web 应用程序 - Secure a Java web app using the Spring Boot Starter for Azure Active Directory JWT token algorithm problem
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM