0

Microsoft 提供的所有示例和文档仅在浏览器中提及 PCKE for SPA 应用程序。使用 MSAL 时,Xamarin 本机应用程序是否支持该流程?

4

1 回答 1

1

The OAuth 2.0 authorization code grant can be used in apps that are installed on a device to gain access to protected resources, such as web APIs. Using the Microsoft identity platform implementation of OAuth 2.0, you can add sign in and API access to your mobile and desktop apps.In order to use Auth 2.0 authorization code grant for mobile you need to use a native redirect uri (and ask them to register one) or register a URI handler so that the redirect to your app.

Yes you can use OAuth 2.0 authorization code flow with PKCE(Proof Key for Code Exchange) to obtain the Auth code which supports Mobile Devices and the scenario is supported for Xamarin. Please go through the supporting document here.

Please let us know if you still need any help.

于 2020-12-08T15:31:41.443 回答