Fix #87: security helper converted into component and improved

Fix #87: security helper improvement

Migrated from #4052
My suggestion was just a change in the wording of Paul's intended to make it easier to locate the relevant configuration.