Trying to design basic authentication/authorisation system for API

Anyone, anyone? No one?