Constructs the Teams connect redirect URL by appending /msteams/connect to web app URL.
// Source: https://github.com/agentconnect-md/agentconnect | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Connecting a Microsoft 365 tenant to the deployment's Teams app from the Console (teams-integration.md §8.3).
import { randomUUID } from 'node:crypto'
import type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify'
import { z } from 'zod'
import { MSTEAMS_PLATFORM } from '@agentconnect.md/protocol'
import type { HttpDeps } from '../../http/deps.js'
import type { ZodTypeProvider } from '../../http/plugins/zod.js'
import { Tag } from '../../http/plugins/openapi.js'
import { ErrorDto } from '../../http/dto/index.js'
import { ctxOf, denyViewerWrite, orgOf } from '
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key