OpenIdConnectEvents 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定 OpenIdConnectHandler 调用的事件,使开发人员能够控制身份验证过程。
public ref class OpenIdConnectEvents : Microsoft::AspNetCore::Authentication::RemoteAuthenticationEvents, Microsoft::AspNetCore::Authentication::OpenIdConnect::IOpenIdConnectEventspublic ref class OpenIdConnectEvents : Microsoft::AspNetCore::Authentication::RemoteAuthenticationEventspublic class OpenIdConnectEvents : Microsoft.AspNetCore.Authentication.RemoteAuthenticationEvents, Microsoft.AspNetCore.Authentication.OpenIdConnect.IOpenIdConnectEventspublic class OpenIdConnectEvents : Microsoft.AspNetCore.Authentication.RemoteAuthenticationEventstype OpenIdConnectEvents = class
    inherit RemoteAuthenticationEvents
    interface IOpenIdConnectEvents
    interface IRemoteAuthenticationEventstype OpenIdConnectEvents = class
    inherit RemoteAuthenticationEventsPublic Class OpenIdConnectEvents
Inherits RemoteAuthenticationEvents
Implements IOpenIdConnectEventsPublic Class OpenIdConnectEvents
Inherits RemoteAuthenticationEvents- 继承
- 实现
构造函数
| OpenIdConnectEvents() | 指定 OpenIdConnectHandler 调用的事件,使开发人员能够控制身份验证过程。 | 
属性
| OnAccessDenied | 当远程服务器返回拒绝访问错误时调用。(继承自 RemoteAuthenticationEvents) | 
| OnAuthenticationFailed | 在处理请求期间引发异常时调用。 在发生此事件后将重新引发异常,除非已抑制这些异常。 | 
| OnAuthorizationCodeReceived | 如果协议消息中存在授权代码,则在执行安全令牌验证后将调用此项。 | 
| OnMessageReceived | 首次收到协议消息时调用。 | 
| OnRedirectToIdentityProvider | 在重定向到标识提供者进行身份验证之前调用。 这可用于设置将在身份验证过程中保留的 ProtocolMessage.State。 ProtocolMessage 还可用于添加或自定义发送到标识提供者的参数。 | 
| OnRedirectToIdentityProviderForSignOut | 在重定向到标识提供者以注销之前调用。 | 
| OnRemoteFailure | 发生远程故障时调用。(继承自 RemoteAuthenticationEvents) | 
| OnRemoteSignOut | 在 RemoteSignOutPath 上收到请求时调用。 | 
| OnSignedOutCallbackRedirect | 在重定向到 SignedOutRedirectUri 远程注销流末尾的 之前调用。 | 
| OnTicketReceived | 在收到远程票证后调用。(继承自 RemoteAuthenticationEvents) | 
| OnTokenResponseReceived | 在令牌终结点上兑换令牌的“授权代码”后调用。 | 
| OnTokenValidated | 在验证 IdToken 并生成 AuthenticationTicket 时调用。 请注意,此事件之后会进行其他检查,这些检查会验证身份验证流的其他方面,例如 nonce。 | 
| OnUserInformationReceived | 从 UserInfoEndpoint 检索用户信息时调用。 |