TaskAgentHttpClientBase.CreateAadOAuthRequestAsync Method
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
CreateAadOAuthRequestAsync(String, String, Nullable<AadLoginPromptOption>, String, Nullable<Boolean>, Object, CancellationToken)
Caution
ServiceEndpoint APIs under distributedtask area is deprecated. Use the APIs under serviceendpoint area instead.
[Preview API]
[System.Obsolete("ServiceEndpoint APIs under distributedtask area is deprecated. Use the APIs under serviceendpoint area instead.")]
public virtual System.Threading.Tasks.Task<string> CreateAadOAuthRequestAsync(string tenantId, string redirectUri, Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.AadLoginPromptOption> promptOption = null, string completeCallbackPayload = null, Nullable<bool> completeCallbackByAuthCode = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateAadOAuthRequestAsync : string * string * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.AadLoginPromptOption> * string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.CreateAadOAuthRequestAsync : string * string * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.AadLoginPromptOption> * string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Parameters
- tenantId
- String
- redirectUri
- String
- promptOption
- Nullable<AadLoginPromptOption>
- completeCallbackPayload
- String
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
- Attributes
Applies to
CreateAadOAuthRequestAsync(String, String, Nullable<AadLoginPromptOption>, String, Object, CancellationToken)
[Preview API]
public virtual System.Threading.Tasks.Task<string> CreateAadOAuthRequestAsync(string tenantId, string redirectUri, Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.AadLoginPromptOption> promptOption = null, string completeCallbackPayload = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateAadOAuthRequestAsync : string * string * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.AadLoginPromptOption> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.CreateAadOAuthRequestAsync : string * string * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.AadLoginPromptOption> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Parameters
- tenantId
- String
- redirectUri
- String
- promptOption
- Nullable<AadLoginPromptOption>
- completeCallbackPayload
- String
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.