added some support code for user auth for integration tests