MicrosoftChallengeProperties 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
AuthenticationProperties 用于 Microsoft OAuth 质询请求。 有关参考,请参阅https://free.blessedness.top/azure/active-directory/develop/v2-oauth2-auth-code-flow#request-an-authorization-code。
public ref class MicrosoftChallengeProperties : Microsoft::AspNetCore::Authentication::OAuth::OAuthChallengePropertiespublic class MicrosoftChallengeProperties : Microsoft.AspNetCore.Authentication.OAuth.OAuthChallengePropertiestype MicrosoftChallengeProperties = class
    inherit OAuthChallengePropertiesPublic Class MicrosoftChallengeProperties
Inherits OAuthChallengeProperties- 继承
构造函数
字段
| DomainHintKey | 用于质询请求的“domain_hint”参数的参数键。 | 
| LoginHintKey | 用于质询请求的“login_hint”参数的参数键。 | 
| PromptKey | 用于质询请求的“prompt”参数的参数键。 | 
| ResponseModeKey | 
				已过时.
			 用于质询请求的“response_mode”参数的参数键。 | 
属性
| AllowRefresh | 获取或设置是否应允许刷新身份验证会话。(继承自 AuthenticationProperties) | 
| DomainHint | 获取或设置用于质询请求的“domain_hint”参数值的值。 如果包含身份验证,身份验证将跳过用户在登录页上经历的基于电子邮件的发现过程,从而获得略微简化的用户体验。 | 
| ExpiresUtc | 获取或设置身份验证票证的过期时间。(继承自 AuthenticationProperties) | 
| IsPersistent | 获取或设置是否在多次请求后保留身份验证会话。(继承自 AuthenticationProperties) | 
| IssuedUtc | 获取或设置身份验证票证的颁发时间。(继承自 AuthenticationProperties) | 
| Items | 有关身份验证会话的状态值。(继承自 AuthenticationProperties) | 
| LoginHint | 获取或设置用于质询请求的“login_hint”参数值的值。 如果用户的用户名事先已知,则可用于预先填充用户的登录页的用户名/电子邮件地址字段。 | 
| Parameters | 传递给身份验证处理程序的参数集合。 它们不用于序列化或持久性,仅用于在调用站点之间流动数据。(继承自 AuthenticationProperties) | 
| Prompt | 获取或设置用于质询请求的“prompt”参数值的值。 表示需要的用户交互类型。 目前唯一有效的值为 login、none 和 consent。 | 
| RedirectUri | 获取或设置要用作 http 重定向响应值的完整路径或绝对 URI。(继承自 AuthenticationProperties) | 
| ResponseMode | 
				已过时.
			 获取或设置用于质询请求的参数  | 
| Scope | 用于质询请求的“scope”参数值。(继承自 OAuthChallengeProperties) | 
方法
| Clone() | 返回副本。(继承自 AuthenticationProperties) | 
| GetBool(String) | 从集合中获取可为 Boolean null 的 Items 。(继承自 AuthenticationProperties) | 
| GetDateTimeOffset(String) | 从集合中Items获取可为 DateTimeOffset null 的值。(继承自 AuthenticationProperties) | 
| GetParameter<T>(String) | 从集合中 Parameters 获取参数。(继承自 AuthenticationProperties) | 
| GetString(String) | 从集合中 Items 获取字符串值。(继承自 AuthenticationProperties) | 
| SetBool(String, Nullable<Boolean>) | (继承自 AuthenticationProperties) | 
| SetDateTimeOffset(String, Nullable<DateTimeOffset>) | 设置或删除 DateTimeOffset 集合中的 Items 值。(继承自 AuthenticationProperties) | 
| SetParameter<T>(String, T) | 在集合中 Parameters 设置参数值。(继承自 AuthenticationProperties) | 
| SetScope(String[]) | 设置“范围”参数值。(继承自 OAuthChallengeProperties) | 
| SetString(String, String) | 从 Items 集合中设置或删除字符串值。(继承自 AuthenticationProperties) | 
扩展方法
| GetTokens(AuthenticationProperties) | 返回属性中包含的所有 AuthenticationToken 实例。 | 
| GetTokenValue(AuthenticationProperties, String) | 返回标记的值。 | 
| StoreTokens(AuthenticationProperties, IEnumerable<AuthenticationToken>) | 在删除任何旧令牌后存储一组身份验证令牌。 | 
| UpdateTokenValue(AuthenticationProperties, String, String) | 汇报令牌的值(如果已存在)。 |