Issue #277: add convenience method for setting site credentials