Groups | Blog | Home
all groups > dotnet web services > november 2005 >

dotnet web services : a webservice to authenticate the users against


J-T
11/29/2005 11:50:18 AM
I need to create a webserivce which is able to talk to the following
components:

1) Another webservice which is written by java and talks to its own backend
database to authenticate the users
2) Directly talk to a sql server database containg a table to store username
and passwords
3) Directoly talks to an Oracle Databse containg a table to store username
and passwords
4) Can query our internal Active Directory to authenticate our
organization's staff

The reason I choose a web service is that we want to create a sort of signle
sign on startegy for all our applicationsm to use this webserivce to
authenticate the users against. my webserivce needs to be secure and also
vey expandable to span future added components.

Is there soehting similar out there or can anyone give me some idea?

I really appreciate it.

Thanks

Lester J-T


J-T
11/30/2005 4:37:07 PM
I am just wondering if .Net framework 2.0 (which I suppose should support
WSE 2.0 ) is a better framework to achieve this?

What you think?
Thanks for your time in advance.

[quoted text, click to view]

DC
11/30/2005 5:12:41 PM
sounds like a great place for defining an authentication interface for all
those subsystems.

public interface IAuth
{
public bool ValidateUser(string username, string passwordHash);
// etc
}

Then just provide the implementations for the 4 flavors (java ws, sql,
oracle, AD), then create your front-end webservice that delegates to one of
those implementations. I guess you could specify the implementation to use,
within web.config.

[WebService]
public class MyAuthnService
{
IAuth authService= // ??? figure out how to select among the
implementations

[WebMethod]
public Login(string username, string passwordHash)
{
if (authnService.Validate(username,passwordHash)) {
// use can log in...
}
}
}

-D



[quoted text, click to view]

AddThis Social Bookmark Button