Basic authentication library.