Hi,
i'am a little bit unsure about a rife concept, so perhaps somebody can
explain it to me. I use Hibernate for persistence. In the tutorials i
see the DatabaseUsers example, i think this goes hand in hand with the
build-in rife auth element. If i want to use the build-in auth
element,
do i also have to use DatabaseUser and RoleUser from rife and also let
rife install the database tables for it?
If you want to use the DatabaseUsers implementation of the
credentials, yeah. However, the only thing that the authentication
system needs is for you to implement the CredentialsManager
interface. I suggest that you read the javadocs of the authentication
package. There are also a number of posts on the list and the wiki
that explain the authentication process in detail.
Also, as of release 1.6 (which should be out next week), you can just
plug in your own CredentialsManager by setting its name as a property
in the element declaration. This makes is very easy to plug in your
own behavior.
Is it right, that if i write my own Person class with its own
hibernate
mappings etc, that i coulndt use rife's build-in auth element? So
is the
only way to use it, to mix it? Let rife manage and install the user
tables/relations and using hibernate for the rest?
Another solution that people have been using, is to use the RIFE
credentials as-is, and to create a second table that you for instance
name Person. This doesn't contain the login credentials, but only the
person's information fields (name, email, ...). You can easily link
those through a foreign key. This still allows you to benefit from both.
Hope this helps,
Geert
--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users