Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages12>
automatic login to ones own App
kdj
#1 Posted : Sunday, May 22, 2011 5:45:43 AM(UTC)
Groups: Member
Joined: 5/22/2011(UTC)
Posts: 9

Is it possible to have automatic login to ones own App by sending it in a get/post - for instance if one wants to programatically read the contents of a certain page that has been exposed by HttpVPN? How can one programatically log in?
Ultidev Team
#2 Posted : Sunday, May 22, 2011 9:23:21 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 59 time(s) in 58 post(s)
Hi there!

Assuming you want to read page's content programmatically, the solution could be using our authentication web service that generates an auth cookie that can be used for subsequent page requests or calling your applications' web services. Is that something you would like to do?

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
kdj
#3 Posted : Tuesday, May 24, 2011 3:47:51 AM(UTC)
Groups: Member
Joined: 5/22/2011(UTC)
Posts: 9

Yes. I was trying to use NetworkCredential which did not seem to work. Please direct me to information on how to call your authentication web service.
Thanks
kdj
#4 Posted : Tuesday, May 24, 2011 8:37:34 AM(UTC)
Groups: Member
Joined: 5/22/2011(UTC)
Posts: 9

For more clarity:-

I would like to call the following url from a C# application using WebRequest GET/POST and get the page back. When you do it thru a browser it will ask you to log in. Since I want this automatic, I need to embed the user name and password in the web request. How can this be done in C#?

https://myownsecureweb.c...123456/SecureTunnel.axd

Thanks
Ultidev Team
#5 Posted : Tuesday, May 24, 2011 9:10:43 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 59 time(s) in 58 post(s)
Hi!

We have added a new article to HttpVPN FAQ that shows how to use HttpVPN authentication web service in order to get HttpVPN Portal authentication cookie. Just like in the web service sample, WebRequst uses the same class, a CookieContainer, to send cookies up along with the request. We are working on the sample project that will illustrate usage of the HttpVPN authentication web service, as well as highlighting other best practices, like handling authentication cookie expiration.

Please let us know if the information we have provided was helpful.

Best regards,
UltiDev Team.

Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
kdj
#6 Posted : Tuesday, May 24, 2011 10:45:58 AM(UTC)
Groups: Member
Joined: 5/22/2011(UTC)
Posts: 9

Thanks that helps.

Where do I get the library that contains the code to link in to call HttpVPN.AuthenticationService?
Ultidev Team
#7 Posted : Tuesday, May 24, 2011 6:21:42 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 59 time(s) in 58 post(s)
Hi!

To create a web service client proxy class, please use Add Web Reference or Add Service Reference and use the WSDL link to import web service interface definition. If your project is of .NET 3.x or later, project will have Add Service Reference menu item, and not Add Web Reference. To create required ASMX web service client, please hit Advanced button in the Add Service Reference dialog, and then Add Web Reference in the Service Reference Settings dialog:



Please let us know if this information was helpful.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
kdj
#8 Posted : Thursday, May 26, 2011 3:21:54 AM(UTC)
Groups: Member
Joined: 5/22/2011(UTC)
Posts: 9

Thank you - it is working now.
Ultidev Team
#9 Posted : Thursday, May 26, 2011 5:44:46 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 59 time(s) in 58 post(s)
Always happy to help!

Cheers,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#10 Posted : Monday, August 25, 2014 3:08:18 PM(UTC)
Groups:

Message was deleted by a Moderator.
Guest
#11 Posted : Monday, August 25, 2014 4:10:26 PM(UTC)
Groups:

Message was deleted by a Moderator.
Guest
#12 Posted : Tuesday, August 26, 2014 9:07:40 AM(UTC)
Groups:

Message was deleted by a Moderator.
Guest
#13 Posted : Tuesday, August 26, 2014 10:28:30 AM(UTC)
Groups:

Message was deleted by a Moderator.
Guest
#14 Posted : Friday, September 5, 2014 3:57:26 AM(UTC)
Groups:

Message was deleted by a Moderator.
Guest
#15 Posted : Wednesday, October 8, 2014 11:01:47 AM(UTC)
Groups:

Message was deleted by a Moderator.
Guest
#16 Posted : Friday, October 31, 2014 3:27:40 AM(UTC)
Groups:

Message was deleted by a Moderator.
Guest
#17 Posted : Monday, November 3, 2014 11:57:40 PM(UTC)
Groups:

Message was deleted by a Moderator.
Guest
#18 Posted : Wednesday, November 5, 2014 3:24:45 AM(UTC)
Groups:

Message was deleted by a Moderator.
Guest
#19 Posted : Tuesday, November 18, 2014 9:52:11 AM(UTC)
Groups:

Message was deleted by a Moderator.
Guest
#20 Posted : Friday, November 21, 2014 6:22:48 PM(UTC)
Groups:

Message was deleted by a Moderator.
Rss Feed  Atom Feed
Users browsing this topic
Guest
2 Pages12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.