Skip to main content
Glama
DynamicEndpoints

BOD-25-01-CSA-Microsoft-Policy-MCP

block_legacy_auth

Enforce modern authentication protocols by disabling legacy authentication methods to enhance security posture in Microsoft 365 environments.

Instructions

Block legacy authentication (MS.AAD.1.1v1)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'block_legacy_auth' tool. It uses the Microsoft Graph client to patch the authentication methods policy, disabling legacy authentication.
    private async blockLegacyAuth() { try { // Configure authentication policy using Microsoft Graph API await this.graphClient .api('/policies/authenticationMethodsPolicy') .patch({ allowLegacyAuthentication: false, blockLegacyAuthenticationMethods: true, }); return { content: [ { type: 'text', text: 'Legacy authentication blocked successfully', }, ], }; } catch (error: unknown) { throw new McpError( ErrorCode.InternalError, `Failed to block legacy authentication: ${error instanceof Error ? error.message : 'Unknown error'}` ); } }
  • Registers the 'block_legacy_auth' tool in the MCP server's tool list, including its name, description, and input schema.
    name: 'block_legacy_auth', description: 'Block legacy authentication (MS.AAD.1.1v1)', inputSchema: { type: 'object', properties: {}, }, },
  • Defines the input schema for the 'block_legacy_auth' tool, which takes no parameters (empty object).
    inputSchema: { type: 'object', properties: {}, },
  • Dispatches calls to the 'block_legacy_auth' handler in the CallToolRequest handler switch statement.
    case 'block_legacy_auth': return await this.blockLegacyAuth();

Latest Blog Posts

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/DynamicEndpoints/Automated-BOD-25-01-CISA-Microsoft-Policies-MCP'

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