Click here to Skip to main content
15,071,729 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi i have implemented WCF Rest services and want to authenticate the user for every request. So i have added Basic Authenticarion+SSL certificate. But i want to check whether it is working or not. For every request it is saying like below
VB
HTTP Error 401.1 - Unauthorized

You do not have permission to view this directory or page using the credentials that you supplied.


I gave the request with base64 authenticated in headers with some invalid username and password and also i passed my system username and password also but same error is shown. please help me from this.

I'm giving request using Fiddler tool
Type:GET
URL: https://localhost/PracticeWcfService1/Service1.svc/GetData?Value=10[

Request Headers:
VB
User-Agent: Fiddler
Content-Type: application/json; charset=utf-8
Authorization: Basic dXNlcjE6dGVzdA==
Host: localhost
Posted
Comments
kingsa 12-Dec-13 4:23am
   
The configuration and client code seems to be ok.
have you enabled basic authentication only in the IIS If the service also allows anonymous access, sometimes that's the prefered login method used by the client applications, the credentials are not sent at all.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900