Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF Authentication WITHOUT SSL

Is there a way to setup authentication (ala "Basic Authentication") without actually setting up an SSL Certificate? I'd also like to do this in REST or regular SOAP WCF Services, preferably in REST, but would like to be able to mix the services. In other words, "I want to be able to send a regular old username and password just like in Basic Authentication but without the SSL." Is there a way to do this?

like image 590
Adron Avatar asked Dec 26 '08 07:12

Adron


People also ask

How can I pass a username password in the header to a soap WCF service?

UserName. Password = "testPass"; In this way you can pass username, password in the header to a SOAP WCF Service.


1 Answers

Use TransportCredentialOnly security mode. This post explains how to do it:

http://developers.de/blogs/damir_dobric/archive/2006/07/31/890.aspx.

Don't forget that you also have to enable basic authentication in IIS.

like image 200
erikkallen Avatar answered Sep 16 '22 13:09

erikkallen