Home All Groups Group Topic Archive Search About

Security Windows Application and Web application

Author
20 Sep 2006 8:32 PM
Lammert
Hi everyone,

I create a windows application and a web application (.NET 2.0). The
windows and web application uses the same Business Logic Layer and Data
Access Layer. How can I secure the windows and web application with the
same code?

Some specifactions:
1. Many users.
2. Many roles.
3. Users can have roles.
4. Some users use Windows authentication and other users a normal
username and password (is this possible?) Maybe there are other
possibilities?
5. The Windows application is also a client application (it works with
..NET Remoting).

What is the best solution? Thanks in advance......

Author
24 Sep 2006 3:12 AM
Joseph Bittman MVP MCSD
Sept. 23, 2006

That isn't exactly easy nor perfectly "sharable" between those
applications.

The closest you could probably get, is to have the Web application be Forms
Authentication... which then means no windows authentication, which means
each user will have to provide a username and password, which you need to
maintain in a secure database.... you could then use the same code to query
the DB and see if the user is authenticated/authorized to logon, which could
be used in both the windows/web applications.... however, just make sure the
communication channels are secure for this information. The web application
would require the user sending the username/password over the internet (or
intranet), which means you'd need something like SSL to protect it from
someone sniffing the wire.

Although the abstraction of the Biz/Data layer is pretty good at being
re-usable between applications..... when you get to security - there are
un-avoidable differences between application types... and require each
unique thought and coding.

I hope this helps lead you in the right direction...

--

                       Joseph Bittman
     Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Blog/Web Site: http://CactiDevelopers.ResDev.Net/
Show quoteHide quote
"Lammert" <lvi***@hotmail.com> wrote in message
news:1158784372.786073.5950@b28g2000cwb.googlegroups.com...
> Hi everyone,
>
> I create a windows application and a web application (.NET 2.0). The
> windows and web application uses the same Business Logic Layer and Data
> Access Layer. How can I secure the windows and web application with the
> same code?
>
> Some specifactions:
> 1. Many users.
> 2. Many roles.
> 3. Users can have roles.
> 4. Some users use Windows authentication and other users a normal
> username and password (is this possible?) Maybe there are other
> possibilities?
> 5. The Windows application is also a client application (it works with
> .NET Remoting).
>
> What is the best solution? Thanks in advance......
>