Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Todd Smith 10/11/2008 12:09 AM
I need to access multiple databases with Cuyahoga for authenciation purposes. I was able to create a custom module which uses the user's email address instead of username for logins. Now I need to authenticate their info against a different database (on the same server thankfully). I would like to implement this so that upgrading to future versions of Cuyahoga is as painless as possible.

If I used the approach described here Using NHibernate with Multiple Databases it looks like I would need to modify the core services.

Any suggestions?
# martijnb 10/13/2008 10:21 PM
Cuyahoga uses the Castle NHibernate facility for its session factories. This facility allows for multiple databases. You can add a second factory in /Web/Config/facilities.config that points to the other database.

To get a session from the other database, I think you have to call SessionManager.OpenSession("id_of_the_other_sessionfactory").

Hope this helps.
# Todd Smith 10/14/2008 1:12 AM
hmm I would post my solution but all I'm getting is:

A potentially dangerous Request.Form value was detected from the client (p$ctl03$Forum1$ctl00$edit="... [code]

The forum apparently hates XML snippets.
# martijnb 10/15/2008 9:27 AM
Well, it's ASP.NET that doesn't allow posting xml in the default security settings. Try replacing the angle brackets with square brackets or something.