gpt4 book ai didi

azure - 无法调用 RN.createPublicClientApplication

转载 作者:行者123 更新时间:2023-12-03 18:54:16 25 4
gpt4 key购买 nike

我正在尝试配置 Azure AD B2C 应用程序以实现 native react 并使用 this lib对于 react native 。它适用于 IOS,但对于 Android,我遇到以下错误。我已经仔细检查了包名称和签名哈希。

我还检查了 msalConfigurationfile.json 中的重定向 URL,这与 Azure 门户和 androidmanifest.xml 上的重定向 URL 相同。好吧,我已经配置了下面的配置

在 android > app > src > main > assets > msal_config.json

{
"client_id": "My_client-id",
"authorization_user_agent": "DEFAULT",
"redirect_uri": "msauth://com.myPackegeName/M09kWwKnLGHKWwoswsUy5csbgBRxjM%3D",
"account_mode": "MULTIPLE",
"broker_redirect_uri_registered": true,
"authorities" : [
{
"type": "B2C",
"authority_url": "https://domain.b2clogin.com/tfp/compnay.onmicrosoft.com/",
"default": true
}
]

}

enter image description here

最佳答案

通过将 "broker_redirect_uri_registered": true, 更改为 "broker_redirect_uri_registered": false, 解决了此问题

关于azure - 无法调用 RN.createPublicClientApplication,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66262854/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com