Skip to main content
Glama

mcp-google-sheets

managed-authn-controller.ts1.22 kB
import { ApplicationEventName, ManagedAuthnRequestBody } from '@activepieces/ee-shared' import { ALL_PRINCIPAL_TYPES, AuthenticationResponse, } from '@activepieces/shared' import { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox' import { eventsHooks } from '../../helper/application-events' import { managedAuthnService } from './managed-authn-service' export const managedAuthnController: FastifyPluginAsyncTypebox = async ( app, ) => { app.post( '/external-token', ManagedAuthnRequest, async (req): Promise<AuthenticationResponse> => { const { externalAccessToken } = req.body const response = await managedAuthnService(req.log).externalToken({ externalAccessToken, }) eventsHooks.get(req.log).sendUserEventFromRequest(req, { action: ApplicationEventName.USER_SIGNED_UP, data: { source: 'managed', }, }) return response }, ) } const ManagedAuthnRequest = { config: { allowedPrincipals: ALL_PRINCIPAL_TYPES, }, schema: { body: ManagedAuthnRequestBody, }, }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server