Hi there,
I’m trying to find my way into DA, and one of the first (and most common tasks I would assume) that I need to do is to use “real world” data for the login services, and using the DataAbstract facilities, there is no point of using the DB driver directly (and potentially having to implement a different call for each of the supported drivers, that’s what DA is all about isn’t it?). The examples that I have found always use the simple “userId == password”.
I found in this wiki entry: http://wiki.remobjects.com/wiki/Authentication_and_application_security_(.NET) some info about how to implement a db-enabled login service, but it’s far from a complete example, and I just can’t make it work.
To begin with: it says to add a new Table to validate against the user and password. Ok, that’s clear. But in the next part, where it says about the implementation (it mentions the ExecuteLogin, I assume it means the LoginService_Impl’ Login function?), it doesn’t mention how to pass the parameters of the user and password.
Even with that, the NewDataReader is already deprecated, and the info on the IntelliSense tip says it’s better to use NewCommand/ExecuteReader. So, I did that.
I actually wrote a complete SELECT statement as the NewCommand parameter, but then I find the next issue: there is no connection available for the LoginService implementation.
So, I guess there is something missing somewhere? Am I doing the right things reinterpreting that wiki entry, or I went somewhere far off? I have some other issue regarding the connection, but that will be in another question/bug.
I also tried using a LocalDataAdapter, from what I found in this site regarding that, but then I hit the wall of not having a session, and I haven’t found a way around that.
So, I’m stuck not being able to even implement a real login service… things don’t look fine.