The “correct” way would be to generated app-specific passwords. However, I don’t think ownCloud has this option.
See also: