How to access asp.net internal web application from internet?

I have an asp.net web application in an internal Windows domain that calls a wcf service. In the wcf service, I use the name SecurityContext.Identity.Name, so it needs an impersonation. Our task is to access the web application from anywhere. The first step was for administrators to publish the web application through the 2006 ISA server. The main problem with these solutions is that the browser does not save the username and password of the user in the form of ISA authentication. In addition, users want to access the webapp from Nokia Mobile using Opera Mini.

What can I do in a simple way so that the browser saves the username / password so that the user can use the application without re-entering the login data every 30/60 minutes ????? Any best practice?

+3
source share
2 answers

The standard is to store the username / password in a cookie and have a login page to display user information from the cookie for automatic login. This cookie expires in a month if you want.

Here are a few examples of using different languages ​​to add a Remember Me function to store a username and password in a cookie.

Cookies

php example

asp.net example

asp example


Reply to creator comments:

ISA, . cookie , , C:\Program Files\Microsoft ISA Server\CookieAuthTemplates\ISA\HTML ( , ISA ).

, , , (# 18 ), .

0

Source: https://habr.com/ru/post/1758399/


All Articles