Share via


TokenRequestContext Constructors

Definition

Overloads

TokenRequestContext(String[], String)

Creates a new TokenRequest with the specified scopes.

TokenRequestContext(String[], String, String, String, Boolean, Boolean, String, Uri, String)

Creates a new TokenRequest with the specified scopes.

TokenRequestContext(String[], String)

Source:
TokenRequestContext.cs

Creates a new TokenRequest with the specified scopes.

public TokenRequestContext (string[] scopes, string? parentRequestId);
new Azure.Core.TokenRequestContext : string[] * string -> Azure.Core.TokenRequestContext
Public Sub New (scopes As String(), parentRequestId As String)

Parameters

scopes
String[]

The scopes required for the token.

parentRequestId
String

The ClientRequestId of the request requiring a token for authentication, if applicable.

Applies to

TokenRequestContext(String[], String, String, String, Boolean, Boolean, String, Uri, String)

Source:
TokenRequestContext.cs

Creates a new TokenRequest with the specified scopes.

public TokenRequestContext (string[] scopes, string? parentRequestId = default, string? claims = default, string? tenantId = default, bool isCaeEnabled = false, bool isProofOfPossessionEnabled = false, string? proofOfPossessionNonce = default, Uri? requestUri = default, string? requestMethod = default);
new Azure.Core.TokenRequestContext : string[] * string * string * string * bool * bool * string * Uri * string -> Azure.Core.TokenRequestContext
Public Sub New (scopes As String(), Optional parentRequestId As String = Nothing, Optional claims As String = Nothing, Optional tenantId As String = Nothing, Optional isCaeEnabled As Boolean = false, Optional isProofOfPossessionEnabled As Boolean = false, Optional proofOfPossessionNonce As String = Nothing, Optional requestUri As Uri = Nothing, Optional requestMethod As String = Nothing)

Parameters

scopes
String[]

The scopes required for the token.

parentRequestId
String

The ClientRequestId of the request requiring a token for authentication, if applicable.

claims
String

Additional claims to be included in the token.

tenantId
String

The tenant ID to be included in the token request.

isCaeEnabled
Boolean

Indicates whether to enable Continuous Access Evaluation (CAE) for the requested token.

isProofOfPossessionEnabled
Boolean

Indicates whether to enable Proof of Possession (PoP) for the requested token.

proofOfPossessionNonce
String

The nonce value required for PoP token requests.

requestUri
Uri

The resource request URI to be authorized with a PoP token.

requestMethod
String

The HTTP request method name of the resource request (e.g. GET, POST, etc.).

Applies to