PLD: set open and secure based on require auth with tests, closes #866
Merge pull request #1016 from onaio/866-no-uname-for-sec-subs

PLD: set open and secure based on require auth with tests, closes #866