Documentation
¶
Overview ¶
Package msteams is the gateway's Microsoft Teams adapter over the Bot Framework: an Azure Bot registration POSTs activities to our webhook, and replies go back to the activity's serviceUrl as REST calls authenticated with an Azure AD client-credentials token. Inbound requests carry a Bot Framework JWT we verify against the published JWKS — Teams has no shared-secret HMAC, the JWT IS the sender authentication. Credentials (TEAMS_APP_ID, TEAMS_APP_PASSWORD, TEAMS_TENANT_ID) are read by the caller and passed to New; this package never reads the environment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel is a Microsoft Teams Bot Framework connection.
func New ¶
New builds a Teams channel from the Azure Bot app id, its client secret, and the AAD tenant the bot is registered in. mediaDir is the gateway media spool inbound attachments are downloaded into; "" disables media handling.
func (*Channel) Handler ¶
Handler returns the webhook HTTP handler for POST /webhook/teams. It verifies the Bot Framework JWT, maps message activities to Inbound, and acks 200 only after every Deliver returned nil (503 makes the connector retry).