你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MobileServicePKCEAuthentication 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
处理 PKCE 身份验证的 MobileServiceAuthentication 的实现。
public abstract class MobileServicePKCEAuthentication : Microsoft.WindowsAzure.MobileServices.Internal.MobileServiceAuthentication
type MobileServicePKCEAuthentication = class
inherit MobileServiceAuthentication
Public MustInherit Class MobileServicePKCEAuthentication
Inherits MobileServiceAuthentication
- 继承
构造函数
MobileServicePKCEAuthentication(MobileServiceClient, String, String, IDictionary<String,String>) |
创建 MobileServicePKCEAuthentication 的新实例。 |
字段
LoginAsyncDoneUriFragment |
登录/完成终结点的相对 URI 片段。 (继承自 MobileServiceAuthentication) |
LoginAsyncUriFragment |
登录终结点的相对 URI 片段。 (继承自 MobileServiceAuthentication) |
WindowsAzureActiveDirectoryRestApiPathName |
服务 REST API 使用的 Azure Active Directory 身份验证提供程序的名称。 (继承自 MobileServiceAuthentication) |
属性
CallbackUri |
身份验证流完成时调用的终结点的 URI |
Client |
与此 MobileServiceClient 实例关联的 MobileServiceAuthentication。 (继承自 MobileServiceAuthentication) |
CodeVerifier |
用于验证连接的随机字节。 |
EndUri |
用于身份验证的结束 URI。 此 URI 指示身份验证流已完成。 重定向到以 endUrl 开头的任何 URL 后,基于浏览器的控件必须停止导航并返回响应数据。 (继承自 MobileServiceAuthentication) |
LoginUri |
用于启动身份验证流的终结点的 URI。 |
Parameters |
提供程序特定的额外参数,这些参数作为查询字符串参数发送到登录终结点。 (继承自 MobileServiceAuthentication) |
ProviderName |
此 MobileServiceAuthentication 实例使用的身份验证提供程序的名称。 (继承自 MobileServiceAuthentication) |
StartUri |
用于身份验证的起始 URI。 基于浏览器的控件应首先导航到此 URI 以启动修整流。 (继承自 MobileServiceAuthentication) |
方法
GetAuthorizationCodeAsync() |
返回完成事务所需的授权代码。 |
GetSha256Hash(String) |
SHA-256 哈希后跟字符串输入的 Base64 编码。 |
LoginAsync() |
使用提供程序名称和此实例中的可选令牌对象将用户登录到移动服务应用程序。 (继承自 MobileServiceAuthentication) |
LoginAsyncOverride() |
通过 OAuth 2.0 PKCE 协议登录。 |