简体   繁体   中英

.NET3.5 Webservice authentication: what to choose?

I have a site on .NET 3.5 platform with implemented custom authentication for site users.

Now I'm going to provide site api for users. Probably WSDL (as it has good integration with Visual Studio)

Api will will provide access to private info, so to access it API user should be authenticated.

Question 1 is: what webservice type better to use for .NET 3.5 (WSDL or something else?)

Question 2: how to make secure authentication for that webservice? (Authentication should be done using user login/pass from the site DB)

Thanks a lot for any suggestions.

You can try regular WebServices with SoapHeaderAuthentication.

Refer to: http://dotnetslackers.com/articles/aspnet/Securing-ASP-Net-Web-Services-with-Forms-Authentication.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM