다음을 통해 공유


ParameterizedBotFrameworkAuthentication class

Extends

생성자

ParameterizedBotFrameworkAuthentication(boolean, string, string, string, string, string, string, string, ServiceClientCredentialsFactory, AuthenticationConfiguration, (input: RequestInfo, init?: RequestInit) => Promise<Response>, ConnectorClientOptions)

메서드

authenticateChannelRequest(string)
authenticateRequest(Activity, string)

Bot Framework 프로토콜 요청의 유효성을 검사합니다.

authenticateStreamingRequest(string, string)

Bot Framework 프로토콜 요청의 유효성을 검사합니다.

createBotFrameworkClient()

기술을 호출하는 데 사용되는 BotFrameworkClient를 만듭니다.

createConnectorFactory(ClaimsIdentity)

이 특정 클라우드 환경의 자격 증명을 사용할 수 있는 ConnectorClients를 만드는 데 사용할 수 있는 ConnectorFactory를 만듭니다.

createUserTokenClient(ClaimsIdentity)

적절한 UserTokenClient 인스턴스를 만듭니다.

getOriginatingAudience()

Bot OAuth 범위에서 원래 대상 그룹을 가져옵니다.

생성자 세부 정보

ParameterizedBotFrameworkAuthentication(boolean, string, string, string, string, string, string, string, ServiceClientCredentialsFactory, AuthenticationConfiguration, (input: RequestInfo, init?: RequestInit) => Promise<Response>, ConnectorClientOptions)

new ParameterizedBotFrameworkAuthentication(validateAuthority: boolean, toChannelFromBotLoginUrl: string, toChannelFromBotOAuthScope: string, toBotFromChannelTokenIssuer: string, oAuthUrl: string, toBotFromChannelOpenIdMetadataUrl: string, toBotFromEmulatorOpenIdMetadataUrl: string, callerId: string, credentialsFactory: ServiceClientCredentialsFactory, authConfiguration: AuthenticationConfiguration, botFrameworkClientFetch?: (input: RequestInfo, init?: RequestInit) => Promise<Response>, connectorClientOptions?: ConnectorClientOptions)

매개 변수

validateAuthority

boolean

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

toChannelFromBotLoginUrl

string

봇 로그인 URL에서 채널로.

toChannelFromBotOAuthScope

string

봇 oauth 범위에서 채널로.

toBotFromChannelTokenIssuer

string

채널 토큰 발급자의 to 봇입니다.

oAuthUrl

string

OAuth URL입니다.

toBotFromChannelOpenIdMetadataUrl

string

채널 열기 ID 메타데이터 URL의 to 봇입니다.

toBotFromEmulatorOpenIdMetadataUrl

string

에뮬레이터 Open Id 메타데이터 URL의 to 봇입니다.

callerId

string

인증된 활동설정된 callerId입니다.

botFrameworkClientFetch

(input: RequestInfo, init?: RequestInit) => Promise<Response>

BotFrameworkClient에서 사용할 페치입니다.

메서드 세부 정보

authenticateChannelRequest(string)

function authenticateChannelRequest(authHeader: string): Promise<ClaimsIdentity>

매개 변수

authHeader

string

기술 요청에서 받은 http 인증 헤더입니다.

반환

Promise<ClaimsIdentity>

ID 유효성 검사 결과입니다.

authenticateRequest(Activity, string)

Bot Framework 프로토콜 요청의 유효성을 검사합니다.

function authenticateRequest(activity: Activity, authHeader: string): Promise<AuthenticateRequestResult>

매개 변수

activity

Activity

인바운드 활동입니다.

authHeader

string

기술 요청에서 받은 http 인증 헤더입니다.

반환

AuthenticateRequestResult를 사용하여 약속합니다.

authenticateStreamingRequest(string, string)

Bot Framework 프로토콜 요청의 유효성을 검사합니다.

function authenticateStreamingRequest(authHeader: string, channelIdHeader: string): Promise<AuthenticateRequestResult>

매개 변수

authHeader

string

기술 요청에서 받은 http 인증 헤더입니다.

channelIdHeader

string

채널 ID HTTP 헤더입니다.

반환

AuthenticateRequestResult를 사용하여 약속합니다.

createBotFrameworkClient()

기술을 호출하는 데 사용되는 BotFrameworkClient를 만듭니다.

function createBotFrameworkClient(): BotFrameworkClient

반환

Skills를 호출하는 BotFrameworkClient 인스턴스입니다.

createConnectorFactory(ClaimsIdentity)

이 특정 클라우드 환경의 자격 증명을 사용할 수 있는 ConnectorClients를 만드는 데 사용할 수 있는 ConnectorFactory를 만듭니다.

function createConnectorFactory(claimsIdentity: ClaimsIdentity): ConnectorFactory

매개 변수

claimsIdentity
ClaimsIdentity

인바운드 활동의 ClaimsIdentity입니다.

반환

A ConnectorFactory.

createUserTokenClient(ClaimsIdentity)

적절한 UserTokenClient 인스턴스를 만듭니다.

function createUserTokenClient(claimsIdentity: ClaimsIdentity): Promise<UserTokenClient>

매개 변수

claimsIdentity
ClaimsIdentity

인바운드 활동의 ClaimsIdentity입니다.

반환

Promise<UserTokenClient>

UserTokenClient 인스턴스와 약속합니다.

getOriginatingAudience()

Bot OAuth 범위에서 원래 대상 그룹을 가져옵니다.

function getOriginatingAudience(): string

반환

string

원래 대상 그룹입니다.