Calling ws secured by Forms Auth. from WinForms userctrls in HTML



Hi gurus

This problem is about calling Web services secured by Forms Authentication
from Windows Forms user controls embedded in HTML.

Using the object tag I’ve managed to include a Windows Forms user control in
my HTML page (a .NET alternative to good old ActiveX).

I’d like to use my control to call web-services instead of using behaviours
(webservices.htc).

Now I what to secure my web-services using Forms Authentication on the IIS.
This works just fine for manual browsing of the web service. The asmx-files
are protected by Forms Authentication just as aspx-files.

If I use the web service behaviour I have no problems calling the web
service secured by Forms Authentication (after logon of course).

But when the embedded Windows Forms user control tries to access the web
service secured by Forms Authentication I get an Object Moved error. This
happens because the service is redirected to the login page, even though user
is all ready logged in. How do I solve this problem?

--
best regards,

Michael Brandt Lassen, Developer & Architect
3F, Denmark
.



Relevant Pages

  • Re: ADFS Development Issues
    ... site to be automatically authenticated by our windows application so ... based on redirects and possibly uses forms-based authentication to collect ... web service proxies don't handle this type of thing ... the server based on how it needs to work. ...
    (microsoft.public.windows.server.active_directory)
  • Re: I keep receiving a file/path access error
    ... It is running under a low priviledge account that ... > Visual Basic application but not when called by the ASP.NET Web Service. ... > is running on IIS 5.1 on a Windows 2000 Server. ... > Authentication and Basic Authentication. ...
    (microsoft.public.dotnet.framework.interop)
  • Problem with control hosted in IE
    ... I have a windows control that resides in a strong named assembly. ... The virtual directory's authentication is windows (as the application's - ... I logon to another machine using a local account (not one that the IIS could ... Before calling any method of the web service, ...
    (microsoft.public.dotnet.security)
  • Client Integrated Windows Authentication
    ... authenticate the user against a custom database. ... When the application starts it contacts the Web Service to login. ... Right now I am using Environment.UserName to get the windows account ... Windows Authentication. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: ADFS Development Issues
    ... One thing to keep in mind is that if a website is protected by ADFS V1, ... site to be automatically authenticated by our windows application so ... like a web service proxy. ... generated on the server. ...
    (microsoft.public.windows.server.active_directory)

Quantcast