added example app-wide authentication code per issue #66