ConfigurationBotFrameworkAuthentication class

認証値を持つオブジェクトまたは Configuration インスタンスから、BotFrameworkAuthentication インスタンスを作成します。

Extends

BotFrameworkAuthentication

メソッド

authenticateChannelRequest(string)

スキルに対する Bot Framework プロトコル要求を認証します。

authenticateRequest(Activity, string)

Bot Framework プロトコル要求を検証します。

authenticateStreamingRequest(string, string)

Bot Framework プロトコル要求を検証します。

createBotFrameworkClient()

Skills を呼び出すための BotFrameworkClient を作成します。

createConnectorFactory(ClaimsIdentity)

この特定のクラウド環境の資格情報を使用できる ConnectorClient を作成するために使用できる ConnectorFactory を作成します。

createUserTokenClient(ClaimsIdentity)

適切な UserTokenClient インスタンスを作成します。

継承されたメソッド

getOriginatingAudience()

Bot OAuth スコープから送信元の対象ユーザーを取得します。

コンストラクターの詳細

ConfigurationBotFrameworkAuthentication(ConfigurationBotFrameworkAuthenticationOptions, ServiceClientCredentialsFactory, AuthenticationConfiguration, (input: RequestInfo, init?: RequestInit) => Promise<Response>, ConnectorClientOptions)

ConfigurationBotFrameworkAuthentication クラスの新しいインスタンスを初期化します。

new ConfigurationBotFrameworkAuthentication(botFrameworkAuthConfig?: ConfigurationBotFrameworkAuthenticationOptions, credentialsFactory?: ServiceClientCredentialsFactory, authConfiguration?: AuthenticationConfiguration, botFrameworkClientFetch?: (input: RequestInfo, init?: RequestInit) => Promise<Response>, connectorClientOptions?: ConnectorClientOptions)

パラメーター

credentialsFactory

ServiceClientCredentialsFactory

ServiceClientCredentialsFactory インスタンス。

authConfiguration

AuthenticationConfiguration

Configuration オブジェクト。

botFrameworkClientFetch

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

BotFrameworkClientで使用するカスタム フェッチ実装。

connectorClientOptions

ConnectorClientOptions

ConnectorClientOptions オブジェクト。

メソッドの詳細

authenticateChannelRequest(string)

スキルに対する Bot Framework プロトコル要求を認証します。

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

パラメーター

authHeader

string

スキル要求で受信した http 認証ヘッダー。

返品

Promise<ClaimsIdentity>

ClaimsIdentity

authenticateRequest(Activity, string)

Bot Framework プロトコル要求を検証します。

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

パラメーター

activity

Activity

受信アクティビティ。

authHeader

string

HTTP 認証ヘッダー。

返品

Promise<AuthenticateRequestResult>

AuthenticateRequestResult

authenticateStreamingRequest(string, string)

Bot Framework プロトコル要求を検証します。

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

パラメーター

authHeader

string

HTTP 認証ヘッダー。

channelIdHeader

string

チャネル ID HTTP ヘッダー。

返品

Promise<AuthenticateRequestResult>

AuthenticateRequestResult

createBotFrameworkClient()

Skills を呼び出すための BotFrameworkClient を作成します。

function createBotFrameworkClient(): BotFrameworkClient

返品

BotFrameworkClient

BotFrameworkClient

createConnectorFactory(ClaimsIdentity)

この特定のクラウド環境の資格情報を使用できる ConnectorClient を作成するために使用できる ConnectorFactory を作成します。

function createConnectorFactory(claimsIdentity: ClaimsIdentity): ConnectorFactory

パラメーター

claimsIdentity

ClaimsIdentity

受信アクティビティの ClaimsIdentity。

返品

ConnectorFactory

ConnectorFactory

createUserTokenClient(ClaimsIdentity)

適切な UserTokenClient インスタンスを作成します。

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

パラメーター

claimsIdentity

ClaimsIdentity

受信アクティビティの ClaimsIdentity。

返品

Promise<UserTokenClient>

UserTokenClient

継承済みメソッドの詳細

getOriginatingAudience()

Bot OAuth スコープから送信元の対象ユーザーを取得します。

function getOriginatingAudience(): string

返品

string

発信元の対象ユーザー。

BotFrameworkAuthentication.getOriginatingAudience から継承された