Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Tue, 19 Aug 2008 05:53:11 -0700 (PDT),    group: microsoft.public.dotnet.framework        back       


Siteminder and HttpWebRequest   
Hi

 I am creating a console application for server monitoring.
Application uses 'SiteMinder' for authentication.
I want to login to the application by sending data programatically by
using HttpWebRequest.
Even if I am sending required data to the page, it is getting re-
directed to the siteminder login screen. (I have used Fiddler to see
the xact data that gets send to the server.)

Can I know any link where I can find Siteminder + HttpWebUrl examples?

Regards,
Neeraj.
date: Tue, 19 Aug 2008 05:53:11 -0700 (PDT)   author:   Neeraj

Re: Siteminder and HttpWebRequest   
Neeraj wrote:
>  I am creating a console application for server monitoring.
> Application uses 'SiteMinder' for authentication.
> I want to login to the application by sending data programatically by
> using HttpWebRequest.
> Even if I am sending required data to the page, it is getting re-
> directed to the siteminder login screen. (I have used Fiddler to see
> the xact data that gets send to the server.)

I suspect your problem is caused by the fact that you've got two 
applications using the one web.config file.

The original application probably uses Forms Authentication, which will 
want to redirect to the login form if you're not already logged in.

You now have a separate application, using HttpWebRequest, trying to 
call a web page (without being logged in) - so it redirects you to the 
login page.

To get around this, you need to add the page you're calling to the 
web.config file (near the bottom). Something like

<location path="MyNewLogin.aspx">
     <system.web>
         <authorization>
             <allow users="*" />
         </authorization>
     </system.web>
</location>

- where MyNewLogin.aspx is a new form, without a GUI, that you can use 
to pass your login credentials - something that's not a part of the 
existing application.

HTH
date: Fri, 22 Aug 2008 00:37:16 +1000   author:   Jason Keats

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us