Discussion:
SIteMinder Authentication
(too old to reply)
shiva
2010-10-11 18:33:23 UTC
Permalink
Hi ,

Please give me code to authenticate with siteminder using WCF class in desktop application .. urgent...?

Please please ....

Regards,
Shiva
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.
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
Hello,
String url = "https://domain/authentication.fcc?target=https://domain/desired/stats/page.asp";
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
CredentialCache MyCredentialCache = new CredentialCache();
MyCredentialCache.Add(new Uri(uriTeste), "NTLM", new NetworkCredential("user", "password", "domain"));
req.Credentials = MyCredentialCache;
req.PreAuthenticate = false;
req.AllowAutoRedirect = true;
req.UnsafeAuthenticatedConnectionSharing = true;
req.Method = "POST";
req.Timeout = 100000;
HttpWebResponse rsp = (HttpWebResponse)req.GetResponse();
Any ideas?
Regards,
Arthur
Submitted via EggHeadCafe - Software Developer Portal of Choice
Book Review: Google Analytics
http://www.eggheadcafe.com/tutorials/aspnet/a855a620-50a8-487c-9fac-b85f8fda2442/book-review-google-analytics.aspx
shiva
2010-10-11 18:36:09 UTC
Permalink
I want to know how can i implement SIteMinder Authentication using WCF Client.. Urgent...!
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.
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
Hello,
String url = "https://domain/authentication.fcc?target=https://domain/desired/stats/page.asp";
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
CredentialCache MyCredentialCache = new CredentialCache();
MyCredentialCache.Add(new Uri(uriTeste), "NTLM", new NetworkCredential("user", "password", "domain"));
req.Credentials = MyCredentialCache;
req.PreAuthenticate = false;
req.AllowAutoRedirect = true;
req.UnsafeAuthenticatedConnectionSharing = true;
req.Method = "POST";
req.Timeout = 100000;
HttpWebResponse rsp = (HttpWebResponse)req.GetResponse();
Any ideas?
Regards,
Arthur
Post by shiva
Hi ,
Please give me code to authenticate with siteminder using WCF class in desktop application .. urgent...?
Please please ....
Regards,
Shiva
Submitted via EggHeadCafe - Software Developer Portal of Choice
ASP.NET Caching Concepts
http://www.eggheadcafe.com/tutorials/aspnet/78de4d09-b013-48c0-8d4a-bedd68f675f5/aspnet-caching-concepts.aspx
Loading...