Share via


Microsoft.AspNetCore.Authentication.OpenIdConnect 命名空間

包含類型,可啟用 OpenIdConnect 型驗證的支援。

類別

AuthenticationFailedContext

的內容 AuthenticationFailed(AuthenticationFailedContext)

AuthorizationCodeReceivedContext

當透過 OpenIdConnect 通訊協定接收 'AuthorizationCode' 時,可以使用此內容來通知。

BaseOpenIdConnectContext

包含類型,可啟用 OpenIdConnect 型驗證的支援。

MessageReceivedContext

的內容 OnMessageReceived

OpenIdConnectChallengeProperties

AuthenticationProperties 適用于 OpenId Connect 挑戰。

OpenIdConnectDefaults

與 OpenIdConnect 驗證處理常式相關的預設值

OpenIdConnectEvents

指定 OpenIdConnectHandler 叫用的事件,讓開發人員能夠控制驗證程式。

OpenIdConnectHandler

OpenIdConnectAuthenticationMiddleware 的個別要求驗證處理常式。

OpenIdConnectMiddleware

ASP.NET Core中介軟體,以使用 OpenIdConnect 通訊協定取得身分識別。

OpenIdConnectOptions

的組態選項OpenIdConnectHandler

OpenIdConnectPostConfigureOptions

用來設定所有 OpenIdConnectOptions 的預設值。

RedirectContext

當使用者將 設定 OpenIdConnectHandler 為在重新導向至 IdentityProvider 之前收到通知時,實例 RedirectContext 會傳遞至 RedirectToIdentityProvider(RedirectContext)RedirectToIdentityProviderForSignOut(RedirectContext)

RemoteSignOutContext

事件的內容 RemoteSignOut(RemoteSignOutContext)

TokenResponseReceivedContext

當 'AuthorizationCode' 在權杖端點上兌換權杖時,可以使用此內容來通知。

TokenValidatedContext

的內容 TokenValidated(TokenValidatedContext)

UserInformationReceivedContext

的內容 UserInformationReceived(UserInformationReceivedContext)

介面

IOpenIdConnectEvents

指定 OpenIdConnectMiddleware 叫用的事件,讓開發人員能夠控制驗證程式。

列舉

OpenIdConnectRedirectBehavior

列出用來將使用者代理程式重新導向至識別提供者的不同驗證方法。

備註

如需使用 OpenIdConnect 型驗證的詳細資訊,請參閱ASP.NET Core 中的驗證簡介