webservices and asp.net forms authentication

webservices and asp.net forms authentication

Post by Jona » Wed, 30 Aug 2006 03:14:10

I'm trying to make a few webservices that I'm going to consume from a
webpage using the XMLHttpRequest object. Since both the webservices and
the webpages are in the same application I've used asp.net forms
authentication so users that are not logged in to my site can't use the
webservices. This works fine but when I make a unauthorized request to a
webservice the response is my login page. Is there a way to not get
redirected like this? I would rather just get a different http status
code since that would make more sense when I consume the services. I
know that I can change the StatusCode of the response but is there a way
to make this consistent for all services in a directory or am I going
about this the wrong way?

1. Should I kill the ASP.NET worker process after recompiling my ASP.NET webservice?

2. asp.net - javascript form values interaction can asp.net read and write to nonasp forms?

While studying the asp.net javascript problem I saw and used pages
about asp.net basics at http://www.yqcomputer.com/

I have put together an aspx page (
http://www.yqcomputer.com/ ) wherein I
attempt to read and write to normal html non asp.net form inputs using
vb/asp.net; in the page I also attempt to read and write to asp.net
type html form inputs using the javascript language. I was unable to
produce the kind of interaction between javascript and vb.asp.net that
I wanted to. I was wondering if there is any way to produce this kind
of interaction maybe using c#/asp.net or using vbscript as an
intermediary between asp.net and normal html forms?

3. Authentication between asp.net 2.0 and asp.net 1.1

4. CMS Server 2001 ASP Calling ASP.NET Forms - Passing Authentication

5. Office 2003 Webservice Toolkit 2.01 and ASP.NET 2.0 Webservice - Problem

6. Is it possible to integate the asp.net version 1.0 web form with asp.net 2.0.??

7. Inserting an ASP.NET control will convert the HTML form to ASP.NET

8. how to submit form data from non asp.net page to asp.net page

9. VB.NET Client for a ASP.NET WebService

10. invoke dll in asp.net webservice(vc.net)

11. Problem with ASP.NET 2.0 Location override of Forms Authentication settings

12. Different same machine browser sessions intefering with each other with Forms Authentication and asp.net 2.0

13. Uses ASP.NET form authentication across projects?

14. Excluding a page from ASP.NET forms authentication

15. Form Authentication Problem in ASP.NET