Authentication for modules

Hi all,

what would be the best way to implement simple authentication for one module only?

Case 1

Site has one simple form for feedback and I want to create a simple admin module where I can list the feedback data. No user tables, just one data table in the database. I would like to configure the username and password for the module in configuration file.

Case 2

Site has user table and uses identityClass for authentication. I want to create a module again where I can list the some simple data. I would like to configure the username and password for the module in configuration file. Optionally I would like to use the user table / rbac for authentication.

Cheers,

janisto

bump