OpenIdConnectHandler.GetUserInformationAsync Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk