Hi David,
did you look at the jumpstart? It's not setup for DB authentication
and uses memory authentication instead. The change is simply done by
using the rife/authenticated/database.xml element instead of rife/
authenticated/memory.xml. You'll also have to remove the
ParticipantMemoryUsers participant since your user credentials will
now come from the database.
To install the database structure you can use the install methods of
the related managers:
com.uwyn.rife.authentication.credentialsmanagers.DatabaseUsers.install()
com.uwyn.rife.authentication.sessionmanagers.DatabaseSessions.install()
com.uwyn.rife.authentication.remembermanagers.DatabaseRemember.install()
You can get instances of these managers by using their factories.
This installation logic is typically done in your own participant.
Finally, you'll have to indicate to the authentication element what
the datasource is that it needs to use by adding the datasource
property:
<element id="DbAuth" extends="rife/authenticated/database.xml">
<property name="datasource"><datasource>postgresql</datasource></
property>
...
</element>
You'll find more information here:
http://rifers.org/wiki/display/RIFE/GuideDatabaseUsers
Hope this helps,
Geert
On 05 Dec 2006, at 07:18, David HM Spector wrote:
Does anyone have a minimal self-contained DB-based authorization
web app example they could share...?
I am trying to work through the one in both the Live Users Guide
and the sources in the Rife-1.5 examples, but there's enough left
out that if you're not familiar with all of the insides of Rife
(and you're still learning you way around Rife to begin with), its
really tough to get how all of it works...
regards,
David
----------------------------------------------------------------------
---------------------
David HM Spector
spector (at) zeitgeist.com
http://www.zeitgeist.com/
~ ~ ~
"New and stirring things are belittled because if they are not
belittled, the
humiliating question arises, 'Why then are you not taking part in
them?'"
--H. G. Wells
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users
--
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