Basic authentication implementation.