Use different table / column for auth assignment role

Hi,

I need a way to use a different table and column to set the auth assignment role?

Anyone know of a way to do this.

Basically I have …

Role

UserID

ModuleID

Normally the auth assignment table has Role and UserID in it.

But I need it to select the role based on ModuleID as well. The ModuleID is stored in the session.

Is there a way to do this? Does anyone know how?

James.

write your own authentication provider extending current one…

Yes that is one idea. But where would that go and how to use. The authentication seems very built in.

All I have is a couple of method …




public function filters() {

			

return array("accessControl");

			

}


public function accessRules() {


// etc ...


}



So how would my own authentication provider sit into this?