Clean up key_auth setting checking logic.
Clean up key_auth setting checking logic.

salopensource/sal,salopensource/sal,salopensource/sal,sheagcraig/sal,salopensource/sal,sheagcraig/sal,sheagcraig/sal,sheagcraig/sal