views:

64

answers:

1

What would be the best way to secure .net web services used by a flex application (both desktop and browser) that requires login?

I thought about requesting the user and password in every method of the web service, and having them stored as variables in the flex app, but I don't feel like this is the most elegant way.

suggestions?

thanks

+1  A: 

Well, the fast and easy way would present a few options.

  1. On every call pass the username/password via a header, and make it common place to re-validate.

  2. Go with a "session" type setup, have them login once, give them a secure token, and they pass that for the rest of the time.

Those are at least the "fastest" ways of doing this. You have other options as well, but they are not as straight forward. In all of my WS integration processes these are the two most common.

Mitchel Sellers
Would asp.net membership and roles do any good here?
Shawn Mclean
Yes, behind the scenes you could use the ASP.NET membership process for authorization if you want to.
Mitchel Sellers