c# - WCF: Windows or UserName authentication in one endpoint -


we implementing following log on mechanism our 3-tier application: user launches client application , -

  1. authenticates using windows session credentials (active directory)
  2. or enters ad credentials if user logged on windows session
  3. or enters user name , password if computer not on ad domain.

i.e. sql server management studio log on box (+point 2. above).

the solution came having 2 endpoints, 2 system bindings (one windows, other username client credential type).

i wondering if there's way of having 1 endpoint custom binding magically allow mixed authentication (either windows or username)?

also, why bad idea?

thanks!


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -