Share via


WebTokenRequest Class

Definition

Represents a request to an online identity provider for an authentication token.

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
Inheritance
Object Platform::Object IInspectable WebTokenRequest
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Version history

Windows version SDK version Value added
1511 10586 AppProperties
1703 15063 CorrelationId

Constructors

WebTokenRequest(WebAccountProvider, String, String, WebTokenRequestPromptType)

Initializes a new instance of the WebTokenRequest class with four inputs.

WebTokenRequest(WebAccountProvider, String, String)

Initializes a new instance of the WebTokenRequest class with three inputs.

WebTokenRequest(WebAccountProvider, String)

Initializes a new instance of the WebTokenRequest class with two inputs.

WebTokenRequest(WebAccountProvider)

Initializes a new instance of the WebTokenRequest class with one input.

Properties

AppProperties

Gets the app properties of the request.

ClientId

Gets the Id of the client making the request.

CorrelationId

Gets and sets a correlation Id, a unique identifier used for tracking authentication-related requests.

PromptType

Gets the prompt type of the request.

Properties

Gets the properties of the request.

Scope

Gets the scope of the request.

WebAccountProvider

Gets the web account provider for the request.

Applies to

See also