azure - 如何使用 MobileServiceClient(Xamarin 移动应用程序)和使用 SSL 作为后端服务的 Azure 应用服务实现 SSL 固定?

标签 azure ssl xamarin

我有带有 SSL 的 Azure 应用服务。 移动应用程序(Xamarin android、ios)通过 MobileServiceClient 使用服务 API。 MobileServiceClient 中没有用于添加证书的选项。 我用谷歌搜索了它,但没有找到一个文档来解决这个问题。

如何使用 MobileServiceClient 实现 SSL 固定?

最佳答案

正如您提到的,似乎不支持在 MobileServiceClient 中添加证书。

如果我们尝试这样做,根据我的理解,我们需要覆盖服务器端身份验证流程。更详细请引用这个tutorial 。我还找到了另一个SO thread与此相关。 我们还需要重写客户端的 DelegatingHandler。

此外,这里还有一些有用的教程:

Code sample AzureWebApiClientCertAuthSample

Azure App Service and Client Certificate Authentication

此外,我们还可以给我们的feedback Azure 应用团队。

关于azure - 如何使用 MobileServiceClient(Xamarin 移动应用程序)和使用 SSL 作为后端服务的 Azure 应用服务实现 SSL 固定?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44843468/

相关文章:

azure - Kusto 查询按 user_Id 分组的最早时间戳

azure - 在 Bot Framework c# 中从 SharePoint 获取当前登录用户

Azure表存储: How to implement Pagination?

javascript - 从服务器nodejs返回的RSA加密

c# - 在 MonoTouch 中的 View Controller (缓存数据)之间传递数据的最佳方式

azure - 在 Azure 中创建虚拟机也会创建云服务

java - 当 keystore 文件通过 Web 应用程序动态更改时,无法正常工作 ssl 连接

amazon-web-services - 将 AWS ELB HTTP 请求重定向到 HTTPS

ios - PhotoKit iOS8 - 使用 "PHImageFileURLKey"检索图像

android - 如何修复 java.lang.NoClassDefFoundError : Failed resolution of: Lcom/android/installreferrer/api/InstallReferrerStateListener; error