[英]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.