Hi
Im programming ASP.NET website that use Nav 2009 web services. This website needs to have user authentication system that authenticates users with login form at the beginning of the site.
Is it possible for me to do the authentication from the Nav side instead of creating new authentication system in .NET with SQL database and the overhead that comes with it.
My idea is that the login form sends the user and password through Nav codeunit webservice to function that validates the username and password and gives the respond back to the site that the use is authenticated or not. This will save me alot of work in .NET.
Is it possible, how and is there some security issues that I need to be aware of?
0
Comments
Also have a look at asp.net membership providers, these are designed for building authentication systems.
You can use the webservice for user validation. We have such an authentication already running with may of our customers.
Things to take in mind is security. Don't store the passwords plaintext, but use a hash and so. Only give one error: bad username/password combo.
If you start specifying the error for the user, it's not helping him, but potential attackers.
Other security measures also apply, but nothing specific for NAV or webservices
|To-Increase|
Of course using plain text would be very bad idea... You need at least a SSL encryption of your webservice and your website too (IMO). Please consider reading about login machanism etc in the net. There should be tons of articles about it. I definitly recommend codeproject.com for anything related with .net, asp.net, etc.
Yes, but my point was more that the users might be customers. And there is no way that I would recommend to create a windows user (and profile) for external users...
|To-Increase|
If it's about customers i would definitly use ASP.net Membership Providers, they are designed for that. Don't reinvent the wheel.
Thanks for the reply.