botframework-connector
Version:
Bot Connector is autorest generated connector client.
66 lines • 2.68 kB
TypeScript
/**
* @module botframework-connector
*/
import type { ServiceClientCredentials } from '@azure/core-http';
import { ServiceClientCredentialsFactory } from './serviceClientCredentialsFactory';
/**
* A simple implementation of the [ServiceClientCredentialsFactory](xref:botframework-connector.ServiceClientCredentialsFactory) interface.
*/
export declare class PasswordServiceClientCredentialFactory implements ServiceClientCredentialsFactory {
/**
* The app ID for this credential.
*/
appId: string | null;
/**
* The app password for this credential.
*/
password: string | null;
/**
* The tenant ID of the Azure AD tenant where the bot is created.
*/
tenantId: string | null;
private toJSON;
/**
* Initializes a new instance of the [PasswordServiceClientCredentialFactory](xref:botframework-connector.PasswordServiceClientCredentialFactory) class.
*
* @param appId The app ID.
* @param password The app password.
*/
constructor(appId: string, password: string);
/**
* Initializes a new instance of the [PasswordServiceClientCredentialFactory](xref:botframework-connector.PasswordServiceClientCredentialFactory) class.
*
* @param appId The app ID.
* @param password The app password.
* @param tenantId Tenant ID of the Azure AD tenant where the bot is created.
* - Required for SingleTenant app types.
* - Optional for MultiTenant app types. **Note**: '_botframework.com_' is the default tenant when no value is provided.
*
* More information: https://learn.microsoft.com/en-us/security/zero-trust/develop/identity-supported-account-types.
*/
constructor(appId: string, password: string, tenantId: string);
/**
* Validates an app ID.
*
* @param appId The appId to validate.
* @returns Promise with the validation result.
*/
isValidAppId(appId?: string): Promise<boolean>;
/**
* Checks whether bot authentication is disabled.
*
* @returns Promise with the validation result.
*/
isAuthenticationDisabled(): Promise<boolean>;
/**
* A factory method for creating ServiceClientCredentials.
*
* @param appId The appId.
* @param audience The audience.
* @param loginEndpoint The login url.
* @param validateAuthority The validate authority value to use.
* @returns A Promise representing the result of the operation.
*/
createCredentials(appId: string, audience: string, loginEndpoint: string, validateAuthority: boolean): Promise<ServiceClientCredentials>;
}
//# sourceMappingURL=passwordServiceClientCredentialFactory.d.ts.map