如何更改 ADB2C 中的最大登录用户数?

How can I change the maximum number of logged-in users in ADB2C?

我正在使用 ADB2C 创建登录屏幕。 我有两个问题。

1:我想限制同时活跃用户数为150。(最大同时连接数) 我在哪里可以设置它?

2:我想在超过配置的活动用户限制时显示错误。 我也可以在哪里设置它?

谢谢。

  1. AFAIK,在 azure ad B2C 的情况下,限制并发活跃用户是 尚不支持。

    根据token-issuance-rate

    Each type of User Flow provides a unique user experience and will consume a different number of requests. The token issuance rate of a User Flow is dependent on the number of requests consumed by both the static and dynamic endpoints.

    Reference for userconsumption related limits

  2. 如果您已经知道用户的特点,想要限制 用户基于此,推荐的方法来控制访问 Azure B2C 是 defining custom attributes 并检查声明 令牌。如果包含预期的声明,则您允许用户 继续。

  3. 你可以检查和处理microsoft graph的可能性 节流 来自这个 link

    Throttling limits the number of concurrent calls to a service to prevent overuse of resources. Microsoft Graph is designed to handle a high volume of requests. When throttling occurs, Microsoft Graph returns HTTP status code 429 (Too many requests)

参考文献:

  1. azure active-directory-b2c service limit
  2. b2c userflow identity-protection-investigate-risk