OpenIdConnectHandler.GetUserInformationAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetUserInformationAsync(OpenIdConnectMessage, JwtSecurityToken, AuthenticationTicket) |
移至 UserInfo 端點以擷取其他宣告,並將任何唯一宣告新增至指定的身分識別。 |
GetUserInformationAsync(OpenIdConnectMessage, JwtSecurityToken, ClaimsPrincipal, AuthenticationProperties) |
移至 UserInfo 端點以擷取其他宣告,並將任何唯一宣告新增至指定的身分識別。 |
GetUserInformationAsync(OpenIdConnectMessage, JwtSecurityToken, AuthenticationTicket)
移至 UserInfo 端點以擷取其他宣告,並將任何唯一宣告新增至指定的身分識別。
protected:
virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticateResult ^> ^ GetUserInformationAsync(Microsoft::IdentityModel::Protocols::OpenIdConnect::OpenIdConnectMessage ^ message, System::IdentityModel::Tokens::Jwt::JwtSecurityToken ^ jwt, Microsoft::AspNetCore::Authentication::AuthenticationTicket ^ ticket);
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult> GetUserInformationAsync (Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectMessage message, System.IdentityModel.Tokens.Jwt.JwtSecurityToken jwt, Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket);
abstract member GetUserInformationAsync : Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectMessage * System.IdentityModel.Tokens.Jwt.JwtSecurityToken * Microsoft.AspNetCore.Authentication.AuthenticationTicket -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult>
override this.GetUserInformationAsync : Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectMessage * System.IdentityModel.Tokens.Jwt.JwtSecurityToken * Microsoft.AspNetCore.Authentication.AuthenticationTicket -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult>
Protected Overridable Function GetUserInformationAsync (message As OpenIdConnectMessage, jwt As JwtSecurityToken, ticket As AuthenticationTicket) As Task(Of AuthenticateResult)
參數
- message
- OpenIdConnectMessage
正在處理的訊息
- ticket
- AuthenticationTicket
具有宣告主體和身分識別的驗證票證
傳回
如果有的話,具有具有其他宣告身分識別的驗證票證。
適用於
GetUserInformationAsync(OpenIdConnectMessage, JwtSecurityToken, ClaimsPrincipal, AuthenticationProperties)
移至 UserInfo 端點以擷取其他宣告,並將任何唯一宣告新增至指定的身分識別。
protected:
virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::HandleRequestResult ^> ^ GetUserInformationAsync(Microsoft::IdentityModel::Protocols::OpenIdConnect::OpenIdConnectMessage ^ message, System::IdentityModel::Tokens::Jwt::JwtSecurityToken ^ jwt, System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.HandleRequestResult> GetUserInformationAsync (Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectMessage message, System.IdentityModel.Tokens.Jwt.JwtSecurityToken jwt, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
abstract member GetUserInformationAsync : Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectMessage * System.IdentityModel.Tokens.Jwt.JwtSecurityToken * System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.HandleRequestResult>
override this.GetUserInformationAsync : Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectMessage * System.IdentityModel.Tokens.Jwt.JwtSecurityToken * System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.HandleRequestResult>
Protected Overridable Function GetUserInformationAsync (message As OpenIdConnectMessage, jwt As JwtSecurityToken, principal As ClaimsPrincipal, properties As AuthenticationProperties) As Task(Of HandleRequestResult)
參數
- message
- OpenIdConnectMessage
正在處理的訊息
- principal
- ClaimsPrincipal
宣告主體和身分識別。
- properties
- AuthenticationProperties
驗證屬性。
傳回
HandleRequestResult 用來判斷遠端驗證是否成功。