template for a secured app with authentication and authorization.