Teams Bot Framework webhooks arrive pre-authenticated via JWT; run in pre-auth phase.
Health check for the Teams extension. Reports whether the adapter and cloud adapter are initialized.
Initialize the Teams extension.
Creates the Bot Framework CloudAdapter for authentication,
initializes the TeamsAdapter, and registers the webhook route.
OptionalOnOptional lifecycle hook called after ALL extensions have been mounted across all phases. Ideal for cross-extension service wiring (e.g. connecting a webhook router to a telephony service).
OptionalOnOptional: Called when configuration changes at runtime.
Not all extensions need to support hot-reloading of configuration. Override this method if your extension can dynamically adjust its behavior without a full restart.
The updated configuration from mj.config.cjs.
Shut down the Teams extension. Releases the adapter and cloud adapter.
Server Extension that registers the Bot Framework webhook route and delegates message handling to the
TeamsAdapter.Uses the Bot Framework SDK's
CloudAdapterfor authentication and activity processing, which handles JWT token validation automatically.Example