Type Alias: ResolvedAuthServerConfig
type ResolvedAuthServerConfig = {
metadata: CamelCaseAuthorizationServerMetadata;
type: AuthServerType;
};
Resolved configuration for the remote authorization server with metadata.
Use this when the metadata is already available, either hardcoded or fetched beforehand
via fetchServerConfig().
Properties
metadata
metadata: CamelCaseAuthorizationServerMetadata;
The metadata of the authorization server, which should conform to the MCP specification (based on OAuth 2.0 Authorization Server Metadata).
This metadata is typically fetched from the server's well-known endpoint (OAuth 2.0 Authorization Server Metadata or OpenID Connect Discovery); it can also be provided directly in the configuration if the server does not support such endpoints.
Note: The metadata should be in camelCase format as per preferred by the mcp-auth library.
See
type
type: AuthServerType;
The type of the authorization server.
See
AuthServerType for the possible values.