다음을 통해 공유


ServiceClientCredentialsFactory class

ServiceClientCredentialsFactory 추상 클래스는 봇이 봇 채널에 대한 고유한 ServiceClientCredentials를 제공하거나 봇을 부모 봇 호출에 스킬 봇에 제공할 수 있도록 합니다.

메서드

createCredentials(string, string | undefined, string, boolean)

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

isAuthenticationDisabled()

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

isValidAppId(string)

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

메서드 세부 정보

createCredentials(string, string | undefined, string, boolean)

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

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

매개 변수

appId

string

appId입니다.

audience

string | undefined

대상 그룹입니다.

loginEndpoint

string

로그인 URL입니다.

validateAuthority

boolean

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

반환

Promise<ServiceClientCredentials>

ServiceClientCredentials.

isAuthenticationDisabled()

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

function isAuthenticationDisabled(): Promise<boolean>

반환

Promise<boolean>

봇 인증을 사용하지 않도록 설정하면 결과는 true입니다. 그렇지 않으면 false입니다.

isValidAppId(string)

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

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

매개 변수

appId

string

유효성을 검사할 앱 ID입니다.

반환

Promise<boolean>

appId 컨트롤러에 유효한 경우 결과는 true입니다. 그렇지 않으면 false입니다.