Bagikan melalui


OpenIdConnectHandler.GetUserInformationAsync Metode

Definisi

Overload

GetUserInformationAsync(OpenIdConnectMessage, JwtSecurityToken, AuthenticationTicket)

Masuk ke titik akhir UserInfo untuk mengambil klaim tambahan dan menambahkan klaim unik apa pun ke identitas yang diberikan.

GetUserInformationAsync(OpenIdConnectMessage, JwtSecurityToken, ClaimsPrincipal, AuthenticationProperties)

Masuk ke titik akhir UserInfo untuk mengambil klaim tambahan dan menambahkan klaim unik apa pun ke identitas yang diberikan.

GetUserInformationAsync(OpenIdConnectMessage, JwtSecurityToken, AuthenticationTicket)

Masuk ke titik akhir UserInfo untuk mengambil klaim tambahan dan menambahkan klaim unik apa pun ke identitas yang diberikan.

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)

Parameter

message
OpenIdConnectMessage

pesan yang sedang diproses

ticket
AuthenticationTicket

tiket autentikasi dengan prinsip klaim dan identitas

Mengembalikan

Tiket autentikasi dengan identitas dengan klaim tambahan, jika ada.

Berlaku untuk

GetUserInformationAsync(OpenIdConnectMessage, JwtSecurityToken, ClaimsPrincipal, AuthenticationProperties)

Sumber:
OpenIdConnectHandler.cs
Sumber:
OpenIdConnectHandler.cs
Sumber:
OpenIdConnectHandler.cs
Sumber:
OpenIdConnectHandler.cs
Sumber:
OpenIdConnectHandler.cs
Sumber:
OpenIdConnectHandler.cs
Sumber:
OpenIdConnectHandler.cs
Sumber:
OpenIdConnectHandler.cs
Sumber:
OpenIdConnectHandler.cs

Masuk ke titik akhir UserInfo untuk mengambil klaim tambahan dan menambahkan klaim unik apa pun ke identitas yang diberikan.

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)

Parameter

message
OpenIdConnectMessage

pesan yang sedang diproses

principal
ClaimsPrincipal

Prinsip klaim dan identitas.

properties
AuthenticationProperties

Properti autentikasi.

Mengembalikan

HandleRequestResult yang digunakan untuk menentukan apakah autentikasi jarak jauh berhasil.

Berlaku untuk