다음을 통해 공유


PasswordServiceClientCredentialFactory class

ServiceClientCredentialsFactory 인터페이스의 간단한 구현입니다.

생성자

PasswordServiceClientCredentialFactory(string, string)

PasswordServiceClientCredentialFactory 클래스의 새 인스턴스를 초기화합니다.

PasswordServiceClientCredentialFactory(string, string, string)

PasswordServiceClientCredentialFactory 클래스의 새 인스턴스를 초기화합니다.

속성

appId

이 자격 증명의 앱 ID입니다.

password

이 자격 증명의 앱 암호입니다.

tenantId

봇이 만들어지는 Azure AD 테넌트 테넌트 ID입니다.

메서드

createCredentials(string, string, string, boolean)

ServiceClientCredentials를 만들기 위한 팩터리 메서드입니다.

isAuthenticationDisabled()

봇 인증을 사용할 수 없는지 여부를 확인합니다.

isValidAppId(string)

앱 ID의 유효성을 검사합니다.

생성자 세부 정보

PasswordServiceClientCredentialFactory(string, string)

PasswordServiceClientCredentialFactory 클래스의 새 인스턴스를 초기화합니다.

new PasswordServiceClientCredentialFactory(appId: string, password: string)

매개 변수

appId

string

앱 ID입니다.

password

string

앱 암호입니다.

PasswordServiceClientCredentialFactory(string, string, string)

PasswordServiceClientCredentialFactory 클래스의 새 인스턴스를 초기화합니다.

new PasswordServiceClientCredentialFactory(appId: string, password: string, tenantId: string)

매개 변수

appId

string

앱 ID입니다.

password

string

앱 암호입니다.

tenantId

string

봇이 만들어지는 Azure AD 테넌트 테넌트 ID입니다.

속성 세부 정보

appId

이 자격 증명의 앱 ID입니다.

appId: string | null

속성 값

string | null

password

이 자격 증명의 앱 암호입니다.

password: string | null

속성 값

string | null

tenantId

봇이 만들어지는 Azure AD 테넌트 테넌트 ID입니다.

tenantId: string | null

속성 값

string | null

메서드 세부 정보

createCredentials(string, string, string, boolean)

ServiceClientCredentials를 만들기 위한 팩터리 메서드입니다.

function createCredentials(appId: string, audience: string, loginEndpoint: string, validateAuthority: boolean): Promise<ServiceClientCredentials>

매개 변수

appId

string

appId입니다.

audience

string

대상 그룹입니다.

loginEndpoint

string

로그인 URL입니다.

validateAuthority

boolean

사용할 유효성 검사 기관 값입니다.

반환

Promise<ServiceClientCredentials>

작업의 결과를 나타내는 Promise입니다.

isAuthenticationDisabled()

봇 인증을 사용할 수 없는지 여부를 확인합니다.

function isAuthenticationDisabled(): Promise<boolean>

반환

Promise<boolean>

유효성 검사 결과를 약속합니다.

isValidAppId(string)

앱 ID의 유효성을 검사합니다.

function isValidAppId(appId?: string): Promise<boolean>

매개 변수

appId

string

유효성을 검사할 appId입니다.

반환

Promise<boolean>

유효성 검사 결과를 약속합니다.