Fix secret -> write_key (fix #45)
Use basic auth (fix #46)