added basic secret-key-based authentication.