Hi Emmanuel,
ok, that took care of the error... thx
I'm not sure I understand it fully though... at least now, I'm getting
a login page... but how does the authentication package tie into my
custom developed modules?
Which custom developed modules? You mean your elements?
The database authentication works in a similar fashion as the memory
authentication: it verifies the credentials against those that are
stored in the backend. The authentication managers are responsible
for handling that task.
You are using this element:
https://svn.rifers.org/rife/trunk/src/elements/rife/authenticated/
database.xml
Which extends:
https://svn.rifers.org/rife/trunk/src/elements/rife/authenticated/
purging.xml
Which in its turn extends:
https://svn.rifers.org/rife/trunk/src/elements/rife/authenticated/
authenticated.xml
This is the implementation of the element:
http://rifers.org/docs/api/com/uwyn/rife/authentication/elements/
PurgingDatabaseAuthenticated.html
This extends amongst others the Authenticated and
RoleUserAuthenticated classes, these provide you with some hooks to
perform actions during the authentication process.
for instance, how does it know which table to use to retrieve my
usernames/password... there doesn't seem to be any configuration for
There is a configuration for that:
https://svn.rifers.org/rife/trunk/programs/unittests/config/rep/
config.xml
(Authentication section)
You can find the default values here:
https://svn.rifers.org/rife/trunk/src/framework/com/uwyn/rife/config/
RifeConfig.java
I know this should be documented somewhere :-/
You installed the tables that correspond to the configuration with
these statements:
http://rifers.org/docs/usersguide/
ch11s01.html#example_authentication_db_users2
(Example 11.2. Installing the tables for database users)
If you want to store users in that table, you should first retrieve
the RoleUsersManager that is used by the authentication element by
using this class:
http://rifers.org/docs/api/com/uwyn/rife/authentication/
credentialsmanagers/RoleUsersManagerRetriever.html
that? and since i'm not creating any implementation (java class files)
to work with the element declaration, what methods are called after
the login phase?
What do you mean?
The login is done through RIFE's behavioral inheritance. By
specifying "inherits" on an element in the site structure
declaration, you create a layer on top of your element's logic (the
authentication layer). When the child trigger in that authentication
element is executed, the logic jumps down a layer towards your actual
element. All the initially intended inputs and parameters are
transparently preserved and passed to the element as if nothing happens.
thanks,
Emmanuel
ps: is there a sequence diag or s'thing available somewhere? thx
Nope, sorry.
On 11/9/05, Geert Bevin <[EMAIL PROTECTED]> wrote:
This is a problem in the docs, sorry. You need to declare the
datasource like this:
<property name="datasource"><datasource>postgresql</datasource></
property>
--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage, Belgium
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03
PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users