simple authentication and authorisation template application