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

Notification

Icon
Error

2 Pages12>
automatic login to ones own App
kdj
#1 Posted : 13 years ago
Groups: Member
Joined: 5/22/2011(UTC)
Posts: 9

Was thanked: 1 time(s) in 1 post(s)
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 : 13 years ago
Ultidev Team

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

Thanks: 28 times
Was thanked: 60 time(s) in 59 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 : 13 years ago
Groups: Member
Joined: 5/22/2011(UTC)
Posts: 9

Was thanked: 1 time(s) in 1 post(s)
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 : 13 years ago
Groups: Member
Joined: 5/22/2011(UTC)
Posts: 9

Was thanked: 1 time(s) in 1 post(s)
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 : 13 years ago
Ultidev Team

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

Thanks: 28 times
Was thanked: 60 time(s) in 59 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 : 13 years ago
Groups: Member
Joined: 5/22/2011(UTC)
Posts: 9

Was thanked: 1 time(s) in 1 post(s)
Thanks that helps.

Where do I get the library that contains the code to link in to call HttpVPN.AuthenticationService?
Ultidev Team
#7 Posted : 13 years ago
Ultidev Team

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

Thanks: 28 times
Was thanked: 60 time(s) in 59 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 : 13 years ago
Groups: Member
Joined: 5/22/2011(UTC)
Posts: 9

Was thanked: 1 time(s) in 1 post(s)
Thank you - it is working now.
Ultidev Team
#9 Posted : 13 years ago
Ultidev Team

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

Thanks: 28 times
Was thanked: 60 time(s) in 59 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 : 10 years ago
Groups:

Message was deleted by a Moderator.
Guest
#11 Posted : 10 years ago
Groups:

Message was deleted by a Moderator.
Guest
#12 Posted : 10 years ago
Groups:

Message was deleted by a Moderator.
Guest
#13 Posted : 10 years ago
Groups:

Message was deleted by a Moderator.
Guest
#14 Posted : 10 years ago
Groups:

Message was deleted by a Moderator.
Guest
#15 Posted : 10 years ago
Groups:

Message was deleted by a Moderator.
Guest
#16 Posted : 10 years ago
Groups:

Message was deleted by a Moderator.
Guest
#17 Posted : 10 years ago
Groups:

Message was deleted by a Moderator.
Guest
#18 Posted : 10 years ago
Groups:

Message was deleted by a Moderator.
Guest
#19 Posted : 10 years ago
Groups:

Message was deleted by a Moderator.
Guest
#20 Posted : 10 years ago
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.