473,395 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Advice needed on correct design.

Hi,

I'm going to develop a pretty simple document management application and
i want to use WCF to connect back-end to smart client front-end.

That application will allow to create a hierarchcal structure where any
node can be linked with a document file, which are all stored in a SQL
Server database.

I'm trying to convince my boss towards smartclient instead of ASP.NET
app and i need to create a simple "proof-of-concept" - to start with i
need a login screen and ability to login with some predefined
(hardcoded) usernames.

I was looking at the examples in SDK and all of them are using some 509x
authentication for which a certificate needs to be installed and some
other stuff. I don't need all that; what i need is to be able to pass
username+password to backedn, verify there against my database and
return result. I'm sure this type of authentication is possible with WCF
but i can't find a simple example showing that.

I would really appreciate any example/idea/reference!

PS. I plan to have 3 layers: data layer(low level communication with
database - i already have it form our existing project), business layer
(all authentication logic, all other methods between UI and data layer)
and UI, connected to business layer using WCF.

Thank you,
MuZZy
Nov 18 '06 #1
1 1086
Hello MuZzy,

Glad to see you again :).

From your description, you're going to build a client-server based
distribute applciation and want to utilize the WCF for remote
communication, and is currently wondering how to add the security
authentication in the WCF transfering which simply based on your custom
username/password database, correct?

Based on my understanding, what you want can be done through Username
authentication which is both provided in the .NET WebService Enhancement
and the new WCF. Actually, the WSE and WCF has implemented the standard
username token authentication and it is one of the authentication schemas
you can choose in WCF(there are some others like windows authentication or
X509 certificate authentication). The basic design of such scenario in WCF
is as below:

** server-side service use a certain binding (http or TCP) which configured
to use "Message" security and choose "Username" for clientAuthentication
type.

** in client-side you can provide username token and set it into service's
client proxy object before calling WCF service.

Here is a msdn reference demonstrating an example that username
authentication schema:

#Message Security with a Username Client
http://msdn2.microsoft.com/en-us/library/ms731058.aspx

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Nov 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dlesandrini | last post by:
I need advice about my decision to go with Replication in general. This post was placed on the Microsoft Replication newsgroup, but I really value the feedback that comes from this group as well. ...
9
by: Laban | last post by:
Hi, I find myself using static methods more than I probably should, so I am looking for some advice on a better approach. For example, I am writing an app that involves quite a bit of database...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
4
by: MPA | last post by:
Hi, We are a small company with experience in client-server apps with PowerBuilder and most major databases. We have no internet experience. We are now looking into slimming our main application,...
22
by: Sandman | last post by:
So, I have this content management system I've developed myself. The system has a solid community part where members can register and then participate in forums, write weblogs and a ton of other...
3
by: eric.burgin | last post by:
I have not heavily used interfaces in the past so I am looking for advice. An interface may not be the best solution but it was the first idea I had and was working at first. Here is the...
23
by: JohnH | last post by:
I'm just recently come to work for an auto brokerage firm. My position involves performing mysterious rites, rituals and magick in order to get information out of their access database. This is...
10
by: Les Desser | last post by:
In article <fcebdacd-2bd8-4d07-93a8-8b69d3452f3e@s50g2000hsb.googlegroups.com>, The Frog <Mr.Frog.to.you@googlemail.comMon, 14 Apr 2008 00:45:10 writes Not sure if I quite follow that. 1....
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.