Share via


ICredentialProvider.GetAppPasswordAsync(String) Method

Definition

Gets the app password for a given bot app ID.

public System.Threading.Tasks.Task<string> GetAppPasswordAsync (string appId);
abstract member GetAppPasswordAsync : string -> System.Threading.Tasks.Task<string>
Public Function GetAppPasswordAsync (appId As String) As Task(Of String)

Parameters

appId
String

The ID of the app to get the password for.

Returns

A task that represents the work queued to execute.

Remarks

If the task is successful and the app ID is valid, the result contains the password; otherwise, null.

This method is async to enable custom implementations that may need to call out to serviced to validate the appId / password pair.

Applies to