fixes bug 967555 - Add authentication for public API, r=rhelmer