MSAL SignUp不返回本地账户的访问令牌。

问题描述 投票:0回答:1

我已经按照这里链接的教程代码。https:/docs.microsoft.comen-usxamarinxamarin-formsdata-cloudauthenticationazure-ad-b2c。

但是在注册的时候(上面的链接中没有详细介绍),AuthenticationResult返回一个null access_token。也许是我遗漏了一个b2C的设置?

enter image description here

xamarin azure-ad-b2c msal
1个回答
0
投票

你需要代表一个资源来获取使用应用注册的访问令牌。https:/docs.microsoft.comen-usazureactive-directory-b2ctutorial-desktop-app-webapi?tabs=app-reg-ga。

你需要在MSAL代码中请求一个范围来获取特定资源的访问令牌。https:/github.comAzure-Samplesactive-directory-b2c-xamarin-nativeblobmasterREADME.md。

© www.soinside.com 2019 - 2024. All rights reserved.