registry vs isolated storage
-
Hello, In a windows application I want to save the users username and password to remember in subsequent openings. Where do you recommend me to stare the information. In registry or isolated storage??
cezeri wrote: In a windows application I want to save the users username and password to remember in subsequent openings. Is there only one user of the software per machine? Then I think isolated storage is better. If there are multiple users, then possibly the registry, under CurrentUser. Are you encrypting the username and password, wherever you store it? And I guess this begs the question, why have a separate login for your application, rather than using windows authentication? I mean, if the user has successfully logged in to Windows, why does he need to log in again to your app? Marc MyXaml Advanced Unit Testing YAPO
-
cezeri wrote: In a windows application I want to save the users username and password to remember in subsequent openings. Is there only one user of the software per machine? Then I think isolated storage is better. If there are multiple users, then possibly the registry, under CurrentUser. Are you encrypting the username and password, wherever you store it? And I guess this begs the question, why have a separate login for your application, rather than using windows authentication? I mean, if the user has successfully logged in to Windows, why does he need to log in again to your app? Marc MyXaml Advanced Unit Testing YAPO
the same username and password will be used in connecting a remote web service so these information will be saved in server. Will it be logical to release the windows password to the server? This is my first project and I seriously consider your recommendations
-
the same username and password will be used in connecting a remote web service so these information will be saved in server. Will it be logical to release the windows password to the server? This is my first project and I seriously consider your recommendations
cezeri wrote: Will it be logical to release the windows password to the server? No, I meant only that if the client application can be launched by the user, then the application can assume that the user is already authenticated. You might consider that the application has a separate login known only to it and the server. This way, the user logs in to Windows using his username and password, and the application connects to your server with its own authentication process. I guess the first question to ask is, what are you trying to prevent from happening? Unauthorized access to the client application, to the server, or both? Once the user is authenticated and, if you store the username/password on the client so he doesn't have to type it in again, then what's to prevent someone else from using the application, pretending to be the user? Marc MyXaml Advanced Unit Testing YAPO
-
cezeri wrote: Will it be logical to release the windows password to the server? No, I meant only that if the client application can be launched by the user, then the application can assume that the user is already authenticated. You might consider that the application has a separate login known only to it and the server. This way, the user logs in to Windows using his username and password, and the application connects to your server with its own authentication process. I guess the first question to ask is, what are you trying to prevent from happening? Unauthorized access to the client application, to the server, or both? Once the user is authenticated and, if you store the username/password on the client so he doesn't have to type it in again, then what's to prevent someone else from using the application, pretending to be the user? Marc MyXaml Advanced Unit Testing YAPO
-Unauthorized access to the client application is not important. The username and password given in client app will be used to connecting server.. Also password will be determined by server administrators. So i think windows authentication could not work. isolated storage seems as a better solution. Thanks for help