asmx authentication

1

I have a webservice in asmx which contains insert, delete, update, select functions, I'm consuming it via ajax, because my application can not work server side. My question is how can I provide authentication to connect to this webservice? I got to put Login and password in each function but in javascript and html can not hide this password, I will have to pass via parameters to access and then anyone who sees the code of the page can see the login and password. Searching the stack I found this link link , but no I managed to understand how it works inside my webservice

    
asked by anonymous 14.04.2017 / 20:54

1 answer

0

After searching, I understood that asmx is obsolete, miscrosoft leaves this option in Visual Studio just because it is 'legacy', I am developing in WebApi which is very simple and with many more options. I found this site that talks about security in Restful, and it cites the options that we can use to implement this (in Web Api claro), very enlightening:

link

    
03.06.2017 / 18:05