Ask a Question related to ASP.NET Security, Design and Development.
-
Chad Yoshikawa #1
WindowsApplication and FormsAuthentication?
I have a WebService that is using FormsAuthentication (setup in the
web.config file) as follows:
<authentication mode="Forms">
<forms name=".ASPXAUTH" loginUrl="https://foo.com/Register/Login.aspx"
protection="All" timeout="30" path="/" />
</authentication>
Accessing the web service via a browser is fine, because the user can
access the login page (which has a username/password form on it).
I want to be able to access the WebService using a WindowsApplication as
well. I'd like to use the same FormsAuthentication if possible. The
question I have, is how to go about doing this? My best guess is: I
would need to POST the username and password to the Login page, get back
the Cookie (a FormsAuthenticationTicket), and then add this cookie to
the WebService.CookiesContainer.
Does this sound right? Any suggestions would be much appreciated.
Thank you,
-Chad
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Chad Yoshikawa Guest
-
FormsAuthentication
Hi, i am using forms authentication in an ASP.NET project I am setting the Forms authentication cookie by using:... -
FormsAuthentication with non-IE browser
Hi, I have implemented a SSO solution using FormsAuthentication. FormsAuthentication.GetRedirecturl method does redirect to the requested... -
BUG With FormsAuthentication
The authentication cookie with custom user is not available or the user data is gone after a redirect. In other words all the examples on the net on... -
FormsAuthentication with Machine Name
I had licked this problem once and it resurfaced and won't go away. When I browse to a site with my machine name FormsAuthetication appears to... -
FormsAuthentication - Changes in .Net Framework 1.1!?
I am not sure what is causing this problem but I ran into it before. I did not spend time trying to solve it since we are still working in 1.0... -
Jim Blizzard [MSFT] #2
Re: WindowsApplication and FormsAuthentication?
Hi Chad,
Thanks for posting to the newsgroup.
Have you looked at WS-Security, part of the Web Services Enhancements (WSE)
available from Microsoft?
[url]http://www.microsoft.com/downloads/details.aspx?familyid=21fb9b9a-c5f6-4c95-87b7-fc7ab49b3edd&displaylang=en[/url]
It's not forms authentication, but it's a much more direct route to security
for Web services.
Hope this helps,
bliz
--
Jim Blizzard, MCSD .NET
Community Developer Evangelist | [url]http://www.microsoft.com/communities[/url]
Microsoft
Your Potential. Our Passion.
This posting is provided as is, without warranty, and confers no rights.
"Chad Yoshikawa" <chadyoshikawa@yahoo.com> wrote in message
news:Oe7by1XrDHA.4004@TK2MSFTNGP11.phx.gbl...>
>
> I have a WebService that is using FormsAuthentication (setup in the
> web.config file) as follows:
>
> <authentication mode="Forms">
> <forms name=".ASPXAUTH" loginUrl="https://foo.com/Register/Login.aspx"
> protection="All" timeout="30" path="/" />
> </authentication>
>
> Accessing the web service via a browser is fine, because the user can
> access the login page (which has a username/password form on it).
>
> I want to be able to access the WebService using a WindowsApplication as
> well. I'd like to use the same FormsAuthentication if possible. The
> question I have, is how to go about doing this? My best guess is: I
> would need to POST the username and password to the Login page, get back
> the Cookie (a FormsAuthenticationTicket), and then add this cookie to
> the WebService.CookiesContainer.
>
> Does this sound right? Any suggestions would be much appreciated.
> Thank you,
>
> -Chad
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!
Jim Blizzard [MSFT] Guest
-
Chad Yoshikawa #3
Re: WindowsApplication and FormsAuthentication?
Thanks for the help - I'll check out the WSE 2.0
-Chad
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Chad Yoshikawa Guest



Reply With Quote

