Add basic authentication.

The keymaker example demonstrates the authentication API.