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

1.2 KB
Raw Blame
import { PieceAuth, Property } from '@activepieces/pieces-framework';

export function soapAuth() {
  return PieceAuth.CustomAuth({
    required: true,
    props: {
      type: Property.StaticDropdown({
        displayName: 'Authentication Type',
        required: true,
        options: {
          options: [
            {
              label: 'None',
              value: 'None',
            },
            {
              label: 'WS Security',
              value: 'WS',
            },
            {
              label: 'Basic Auth',
              value: 'Basic',
            },
            {
              label: 'Custom Header',
              value: 'Header',
            },
          ],
        },
      }),
      username: Property.ShortText({
        displayName: 'Username',
        description: 'The WS Security username',
        required: false,
      }),
      password: Property.ShortText({
        displayName: 'Password',
        description: 'The WS Security password',
        required: false,
      }),
      customHeader: Property.LongText({
        displayName: 'Custom Header',
        description: 'Custom Header Content',
        required: false,
      }),
    },
  });
}