Basic authentication and authorization implementation