authenticate_with_basic methos