Bagikan melalui


WebTokenRequest Kelas

Definisi

Mewakili permintaan ke IdP online untuk token autentikasi.

public ref class WebTokenRequest sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Security.Authentication.Web.Core.IWebTokenRequestFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class WebTokenRequest final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Security.Authentication.Web.Core.IWebTokenRequestFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class WebTokenRequest final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Security.Authentication.Web.Core.IWebTokenRequestFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class WebTokenRequest
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Security.Authentication.Web.Core.IWebTokenRequestFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class WebTokenRequest
function WebTokenRequest(provider, scope, clientId, promptType)
Public NotInheritable Class WebTokenRequest
Warisan
Object Platform::Object IInspectable WebTokenRequest
Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 (diperkenalkan dalam 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v1.0)

Keterangan

Riwayat versi

Versi Windows Versi SDK Nilai ditambahkan
1511 10586 AppProperties
1703 15063 CorrelationId

Konstruktor

WebTokenRequest(WebAccountProvider)

Menginisialisasi instans baru kelas WebTokenRequest dengan satu input.

WebTokenRequest(WebAccountProvider, String)

Menginisialisasi instans baru kelas WebTokenRequest dengan dua input.

WebTokenRequest(WebAccountProvider, String, String)

Menginisialisasi instans baru kelas WebTokenRequest dengan tiga input.

WebTokenRequest(WebAccountProvider, String, String, WebTokenRequestPromptType)

Menginisialisasi instans baru kelas WebTokenRequest dengan empat input.

Properti

AppProperties

Mendapatkan properti aplikasi dari permintaan.

ClientId

Mendapatkan Id klien yang membuat permintaan.

CorrelationId

Mendapatkan dan mengatur Id korelasi, pengidentifikasi unik yang digunakan untuk melacak permintaan terkait autentikasi.

PromptType

Mendapatkan jenis permintaan yang diminta.

Properties

Mendapatkan properti permintaan.

Scope

Mendapatkan cakupan permintaan.

WebAccountProvider

Mendapatkan penyedia akun web untuk permintaan tersebut.

Berlaku untuk

Lihat juga