TokenRequestContext Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TokenRequestContext(String[], String) |
Creates a new TokenRequest with the specified scopes. |
TokenRequestContext(String[], String, String) |
Creates a new TokenRequest with the specified scopes. |
TokenRequestContext(String[], String, String, String) |
Creates a new TokenRequest with the specified scopes. |
TokenRequestContext(String[], String, String, String, Boolean) |
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)
- Source:
- TokenRequestContext.cs
Creates a new TokenRequest with the specified scopes.
public TokenRequestContext (string[] scopes, string? parentRequestId, string? claims);
new Azure.Core.TokenRequestContext : string[] * string * string -> Azure.Core.TokenRequestContext
Public Sub New (scopes As String(), parentRequestId As String, claims 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.
- claims
- String
Additional claims to be included in the token.
Applies to
TokenRequestContext(String[], String, String, String)
- Source:
- TokenRequestContext.cs
Creates a new TokenRequest with the specified scopes.
public TokenRequestContext (string[] scopes, string? parentRequestId, string? claims, string? tenantId);
new Azure.Core.TokenRequestContext : string[] * string * string * string -> Azure.Core.TokenRequestContext
Public Sub New (scopes As String(), parentRequestId As String, claims As String, tenantId 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.
- claims
- String
Additional claims to be included in the token.
- tenantId
- String
The tenantId to be included in the token request.
Applies to
TokenRequestContext(String[], String, String, String, Boolean)
- 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);
new Azure.Core.TokenRequestContext : string[] * string * string * string * bool -> 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)
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 tenantId to be included in the token request.
- isCaeEnabled
- Boolean
Indicates whether to enable Continuous Access Evaluation (CAE) for the requested token.