<html><body><div style="font-family: trebuchet ms,sans-serif; font-size: 10pt; color: #330099"><div>Hi&nbsp; , <br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>the roles of my users cannot be represented in a table column</div><div>for a separate relation . It involves some logic that can be put<br data-mce-bogus="1"></div><div>in a subroutine/method of my DBIx::Class schema object <br data-mce-bogus="1"></div><div>representing the user.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>my Auth setup is as below:<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>=====================================================<br>__PACKAGE__-&gt;config-&gt;{'Plugin::Authentication'} =<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default =&gt; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class =&gt; 'SimpleDB',<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; user_model =&gt; 'DB::MyProjectUser',<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; password_type =&gt; 'self_check',<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>} ;<br></div><div>=====================================================<br></div><div><br data-mce-bogus="1"></div><div>i have implemented the 'check_password' in MyProjectUser.pm<br>and it works well. What i need is similar flexibility to specify the </div><div>roles of an existing user . I cannot use role_field ,&nbsp;&nbsp; role_relation&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br data-mce-bogus="1"></div><div data-marker="__SIG_PRE__"><br><br>Regds<br><br>Rajesh Kumar Mallah.<br>Redgrape Technologies ( https://www.redgrape.tech )<br>Mobile: 09811255597, Land: 011-49044122 <br>----------------------------------------------------------------------------------------------------------<br>Opportunities are usually disguised as hard work, so most people don't recognize them<br>----------------------------------------------------------------------------------------------------------</div></div></body></html>