Setting credentials externally