Basic auth decorator.