azure - Azure B2C 负载平衡应用服务受众验证失败
问题描述
我们正在使用 Azure B2C 租户来处理我们的 Azure 应用程序的登录,该应用程序有几个位于不同地理位置的实例(主要/次要)。以前,用户会根据他们的地理位置点击主要或次要,这样单个用户可能会在整个会话期间坚持使用他们点击的任何实例(除非一个用户死亡并故障转移)。
我们最近切换到将用户(在一些 Azure 停机时间之后)路由到这些应用服务中的每一个的负载平衡方式,并且我们现在收到了一些Audience Validation Failed 错误,因为 - 据我所知 - 用户最初是从主要说重定向到 B2C 登录,登录然后负载平衡回辅助(其他)应用程序服务,这样应用程序 Id(每个应用程序服务一个) - 在 B2C 中控制 -租户不正确,因此出现错误。
我们正在使用AddAzureAdB2C
从 B2C howtos 中提取的内容,其中包含OpenIdConnect
有没有办法处理这个问题,以便在任何一个应用程序服务上都可以进行任何登录,可能有一个共享的受众,或者类似的?
解决方案
If it is the same app that is deployed behind a common domain (e.g. mywebapp.trafficmanager.net) to multiple services (e.g. mywebappeu.azurewebsites.net and mywebappus.azurewebsites.net), then you should create a single app in Azure AD B2C and set this app identifier with both the app services.
推荐阅读
- php - 如何从以@开头的字符串中获取数组并以字符串中的空格结尾
- java - SonarQube + 报告中未显示的依赖模块中的聚合覆盖率或覆盖率由 Jacoco 生成
- ios - ios - Xcode 10:Razorpay pod“使用 Swift 4.1 编译的模块无法由 Swift 4.2 编译器导入”
- python - 如何在 Python 3.7+ 中定义循环依赖的数据类?
- ios - 在 Swift 3 中单击处于终止/关闭状态的推送通知时,应用程序未打开
- python - 同时创建一个与数据中最长列长度相同的列
- visual-studio-2017 - VS 2017 Extension - 添加自定义解决方案菜单项
- sql - SQL Server:如何仅获取树的最新(最深)节点
- ios - 如何在iOS(Xcode)中的提交按钮内实现分段控制?
- python - 没有名为“prompt_toolkit.formatted_text”的模块