Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

596 B
Raw Blame
import { FastifyPluginAsyncZod } from 'fastify-type-provider-zod'
import cron from 'node-cron'
import { rejectedPromiseHandler } from '../../../helper/promise-handler'
import { authnSsoSamlController } from './authn-sso-saml-controller'
import { authnSsoSamlService } from './authn-sso-saml-service'

export const authnSsoSamlModule: FastifyPluginAsyncZod = async (app) => {
    cron.schedule('0 * * * *', () => {
        rejectedPromiseHandler(authnSsoSamlService(app.log).expirePendingSsoDomains(), app.log)
    })
    await app.register(authnSsoSamlController, { prefix: '/v1/authn/saml' })
}