Dashboard > RIFE > ... > Authentication > Flexible authentication
RIFE Log In | Sign Up   View a printable version of the current page.
Flexible authentication


Added by Geert Bevin, last edited by Geert Bevin on Aug 16, 2004  (view change)
Labels: 
(None)

The default RoleUser authentication implementation now allows you to easily write your own RoleUser class. You just have to make sure that it implements the com.uwyn.rife.authentication.credentials.RoleUserCredentials interface. To make the authentication elements use your custom class instead, you have to set the credentials_class initparam.

For example:

<element extends="rife/authenticated/database.xml">
  <property name="datasource">mysql</property>
  <property name="template_name">authentication</property>
  <property name="credentials_class">com.my.RoleUserCustom</property>
  <submission name="credentials">
    <param name="login"/>
    <param name="password"/>
  </submission>
  <childtrigger name="authid"/>
</element>



Are you enjoying Confluence? Please consider purchasing it today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.1a Build:#515 May 19, 2006) - Bug/feature request - Contact Administrators