Share via


LdapContext 类

定义

RetrieveLdapClaims 事件的状态。

public ref class LdapContext : Microsoft::AspNetCore::Authentication::ResultContext<Microsoft::AspNetCore::Authentication::Negotiate::NegotiateOptions ^>
public class LdapContext : Microsoft.AspNetCore.Authentication.ResultContext<Microsoft.AspNetCore.Authentication.Negotiate.NegotiateOptions>
type LdapContext = class
    inherit ResultContext<NegotiateOptions>
Public Class LdapContext
Inherits ResultContext(Of NegotiateOptions)
继承

构造函数

LdapContext(HttpContext, AuthenticationScheme, NegotiateOptions, LdapSettings)

创建一个新的 LdapContext

属性

HttpContext

上下文。

(继承自 BaseContext<TOptions>)
LdapSettings

用于 RetrieveLdapClaims 事件的 LDAP 设置。

Options

获取与方案关联的身份验证选项。

(继承自 BaseContext<TOptions>)
Principal

获取或设置 ClaimsPrincipal 包含用户声明的 。

(继承自 ResultContext<TOptions>)
Properties

获取或设置 AuthenticationProperties

(继承自 ResultContext<TOptions>)
Request

请求。

(继承自 BaseContext<TOptions>)
Response

响应。

(继承自 BaseContext<TOptions>)
Result

获取 AuthenticateResult 结果。

(继承自 ResultContext<TOptions>)
Scheme

身份验证方案。

(继承自 BaseContext<TOptions>)

方法

Fail(Exception)

指示身份验证期间失败。

(继承自 ResultContext<TOptions>)
Fail(String)

指示身份验证期间失败。

(继承自 ResultContext<TOptions>)
NoResult()

指示没有为此身份验证方案返回任何信息。

(继承自 ResultContext<TOptions>)
Success()

使用 和 Properties调用成功创建票证Principal

(继承自 ResultContext<TOptions>)

适用于