Skip to main content

authenticate_mcp_access_token

Function authenticate_mcp_access_token 

Source
pub async fn authenticate_mcp_access_token(
    conn: &mut PgConnection,
    token: &str,
    token_hmac_key: &SecretString,
    mcp_resource_url: &str,
) -> Result<McpPrincipal, BearerTokenError>
Expand description

Validates a Bearer access token for the MCP server and resolves who it acts for. Records the grant as used.