Represent credentials as a map instead of separate username/password strings

[#60925130]