Azure应用服务 - 启用身份验证后失败
我们有一个应用程序,该应用使用带有令牌的RESTAPI从Azure Devops服务中获取数据。没有身份验证,它可以正常工作。
在启用身份验证后,出现错误500/431而无需任何解释。单个租户和新申请注册的身份验证设置。
解决此问题的唯一方法是使用Azure使用容器构建 - 使用VS代码发布&构建 - 使用自定义容器失败总是
我尝试以下没有成功的情况:
-
设置 - werebal_auth_disable_identity_flow- azure web应用 + node.js + azure ad =错误431
-
在“身份提供商”选项卡上添加了 - Azure DevOps服务的特定权限。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错误
500
如果您启用了对客户端监视的应用程序见解,则可能发生。请检查您是否已启用了该选项:
如果启用了该选项,请通过分配
false
参数 因此,L.González的线程 。这些 500/431 错误是由于许多原因而出现的,并且要知道错误背后的问题,请尝试启用诊断日志记录。
以了解有关诊断日志的更多信息,请参阅此 msdoc
尝试重新启动应用程序服务和应用程序服务和提高 azure支持票 如果问题仍然存在。
参考:
修复Azure Web应用程序错误500? - 堆叠溢出
The error
500
may occur if you have enabled App Insights monitoring on client-side.Please check whether you have enabled that option or not like below:
If it is enabled, disable it by assigning
false
parameter as suggested in this SO Thread by L. González.These 500/431 errors occur due to many reasons and to know the exact issue behind the error, try enabling diagnostic logging.
To know more about diagnostic logging please refer this MsDoc
Try restarting the App Service and raise Azure Support Ticket if still the issue persists.
Reference:
how do I fix the azure web app error 500? - Stack Overflow