Chr*_*ett 5

鉴于允许从 Azure AD B2C 匿名身份验证到 REST API 并不是最佳实践——尽管不支持安全身份验证的 REST API 可能需要匿名身份验证——那么必须添加AllowInsecureAuthInProduction设置(作为“故障关闭”开关)使您能够将AuthenticationType设置设置为None

因此,以下设置有效:

<Metadata>
  <Item Key="AllowInsecureAuthInProduction">true</Item>
  <Item Key="AuthenticationType">None</Item>
</Metadata>
Run Code Online (Sandbox Code Playgroud)

并且,以下设置无效:

<Metadata>
  <Item Key="AllowInsecureAuthInProduction">false</Item>
  <Item Key="AuthenticationType">None</Item>
</Metadata>
Run Code Online (Sandbox Code Playgroud)