add basic and digest authentication