Secure page test

Authentication support has to be enabled in the config for this examples to work. The logon status is keept in session (under auth). When accessing the secured page, authentication will be enforced if not yet logged on.

When being on an ordinary page, logon can be triggered by clicking on the open keylock in the menu. When logged in, the keylock should be shown as closed and clicking on it should display a popup for logging out.