Amazon Cognito now supports client ID metadata documents
Amazon Cognito now allows OAuth client sign-ins using metadata documents, eliminating the need to register separate app clients for external AI agents or MCP clients.
Amazon Cognito has introduced support for OAuth client ID metadata documents (CIMD), enabling secure sign-in for users, AI agents, and microservices without requiring separate app client registrations. Previously, each external client needed its own app client, which required manual setup and ongoing management. The new feature allows clients to use an HTTPS URL as their client ID and publish a JSON metadata document at that location for validation during sign-in. This simplifies integration for external clients while maintaining security controls.
The implementation works by having Cognito fetch and validate the metadata document from the client’s HTTPS URL during the sign-in process. The document identifies the client and specifies allowed scopes and grant types, ensuring only authorized requests proceed. Administrators can define CIMD policies that map URL patterns to existing app clients, granting access only to clients whose metadata documents are accepted. This reduces administrative overhead by removing the need to create and maintain individual app clients for each external client.
For organizations using Model Context Protocol (MCP) servers or AI assistants, CIMD provides a streamlined way to accept sign-ins without additional client registrations. A company running an MCP server, for example, can allow an AI assistant to sign users in by accepting the assistant’s published metadata URL. This eliminates the need to create or manage an app client specifically for the assistant, simplifying deployment and reducing maintenance tasks.
CIMD is available on the Essentials and Plus feature plans across all AWS Regions where Amazon Cognito operates. The feature is documented in the Amazon Cognito Developer Guide under Client ID metadata documents (CIMD). Organizations can review the documentation to implement the feature and adjust their sign-in policies accordingly.