ConfigurationServiceClientCredentialFactory class
ServiceClientCredentialsFactory, das eine ConfigurationServiceClientCredentialFactoryOptions- oder eine Configuration Instanz verwendet, um ServiceClientCredentials mit einer AppId und einem App-Kennwort zu erstellen.
- Extends
-
PasswordServiceClientCredentialFactory
Konstruktoren
Configuration |
Initialisiert eine neue Instanz der ConfigurationServiceClientCredentialFactory Klasse. |
Geerbte Eigenschaften
app |
Die App-ID für diese Anmeldeinformationen. |
password | Das App-Kennwort für diese Anmeldeinformationen. |
tenant |
Die Mandanten-ID des Azure AD-Mandanten, in dem der Bot erstellt wird. |
Methoden
create |
|
is |
|
is |
Details zum Konstruktor
ConfigurationServiceClientCredentialFactory(ConfigurationServiceClientCredentialFactoryOptions)
Initialisiert eine neue Instanz der ConfigurationServiceClientCredentialFactory Klasse.
new ConfigurationServiceClientCredentialFactory(factoryOptions?: ConfigurationServiceClientCredentialFactoryOptions)
Parameter
- factoryOptions
- ConfigurationServiceClientCredentialFactoryOptions
Ein ConfigurationServiceClientCredentialFactoryOptions--Objekt.
Geerbte Eigenschaftsdetails
appId
Die App-ID für diese Anmeldeinformationen.
appId: string | null
Eigenschaftswert
string | null
Geerbt von PasswordServiceClientCredentialFactory.appId
password
Das App-Kennwort für diese Anmeldeinformationen.
password: string | null
Eigenschaftswert
string | null
geerbt von PasswordServiceClientCredentialFactory.password
tenantId
Die Mandanten-ID des Azure AD-Mandanten, in dem der Bot erstellt wird.
tenantId: string | null
Eigenschaftswert
string | null
geerbt von PasswordServiceClientCredentialFactory.tenantId
Details zur Methode
createCredentials(string, string, string, boolean)
function createCredentials(microsoftAppId: string, audience: string, loginEndpoint: string, validateAuthority: boolean): Promise<ServiceClientCredentials>
Parameter
- microsoftAppId
-
string
- audience
-
string
- loginEndpoint
-
string
- validateAuthority
-
boolean
Gibt zurück
Promise<ServiceClientCredentials>
isAuthenticationDisabled()
function isAuthenticationDisabled(): Promise<boolean>
Gibt zurück
Promise<boolean>
isValidAppId(string)
function isValidAppId(microsoftAppId: string): Promise<boolean>
Parameter
- microsoftAppId
-
string
Gibt zurück
Promise<boolean>