开发者

How to design User authentication for 2 servers

I need to authenticate a user from 2 servers. First, a user would be authenticated from Server A, on success, his AD (Active Directory) credentials would be authenticated to Server B (which is AD).

Should, server A, send an OKAY signal to Server B (Active Directory) that server A has done with authentication and its okay. I am confused about t开发者_JAVA技巧his part, since if I apply this security constraint then i have to do extra work on server side. I want to keep servers independent of this approach. The point is, Server A might be on Internet or some server which is not in the Network and Server B (the Active Directory) would be in the very network.

Need guidance

P.S:

A user credentials for Server A would be different from his Active Directory Credentials.


If you are doing this in C# code, why not just check each authorization in sequence? This is likely your best bet. For example maybe something similar to:

Private bool authenticateUser()
{
   if(authenticateWithServerA(username1, password1))
   {
     if(authenticateWithServerB(username2, password2))
       return true;
   }


   return false;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜