Getting unauthorized error 401 while hitting SharePoint server URL - sharepoint

When i am hitting SharePoint server URL with credentials while using SharePoint Mobile App in (Mobile Iron MDM configured ) iPhone, I am getting an unauthorized error 401 in IIS Log. Kindly, provide me with any solutions. Thank you.
I wasn't expecting this error

Related

The HTTP request is unauthorized with client authentication scheme 'Basic'. The authentication header received from the server was 'Basic realm="xyz"'

We have a web application (netcore) configured to use Windows authentication it was working fine, but now we dont know why iis sends basic authentication header even it is has configured windows authentication.
Any idea why?
An answer to myself, the error was related to a blocked user.

Azure - WebApp - authenticate requests by certificate

I would like to use certificate authentication for requests on my website. But when I set clientCertEnabled to true (through https://resources.azure.com/) I am getting 403 forbidden error when I try to reach my site through https.
Through browser I get blue screen Error 403 - This web app is stopped but I can still access web site through http. When I switch clientCertEnabled back to false https is working.
Through fiddler I get 403 as well (client certificate is included in request) with no additional info.
I followed this https://azure.microsoft.com/en-us/documentation/articles/app-service-web-configure-tls-mutual-auth/ but there is nothing else mentioned to be required to make this work.
Do I have to upload client certificates somewhere?
Eventually I found out that problem was in my client certificate which I was using for testing.
Certificate generated in a way described in this very useful blog post worked properly:
https://dotnetcodr.com/2016/01/14/using-client-certificates-in-net-part-2-creating-self-signed-client-certificates/

403 Forbidden message in SharePoint after deploying App Part for Anonymous Users

I'm Building High-Trust Application for SharePoint on Premises for a Public Facing Internet Site.
I've Created an Empty App Part and deploy it to the SharePoint. The App Part is Working fine for authenticated users but when try to access the site as anonymous I'm Receiving "403 Forbidden Error Message".
This is Although I can access the page that is displayed in the App Part anonymously without any Problem.
Update:The Problem is only in the page that has the App Part. other SharePoint pages are working fine even anonymously.
Can any one support in this.
That's mean the host web is not allowed for anonymous users. You could double check the authentication for the anonymous user on the host web.

How to troubleshoot IIS 7.5 401.2 Error?

I am have been fighting this error in IIS 7.5 for sometime now, and no solution I find seems to help. As I understand it, a 401.2 error means that the browser and the site in IIS are using two different types of authentication.
I have two Web Services hosted in IIS 7.5. Web Service A makes a call to Web Service B. This is where the 401.2 error happens. Both Web Services have Windows Authentication Enabled with 401 Challenge. The only enabled provider on each is NTLM. The Web.Config for both services is set up to have
<authentication mode="Windows" />
Here is what the call from Web Service A to WebService B looks like:
WebServiceB.Credentials = new System.Net.NetworkCredential("ValidUser", "ValidPW", "ValidDomain");
var output = WebServiceB.DoSomething(input); //Throws 401 WebException
As far as I can tell, both the Web Services and IIS sites should be using Windows Authentication, and nothing but Windows Authentication, yet I continue to get these 401.2 errors. Why?
I guess it is related to double-hop issue. Pleae try with delegation of creditential to second call.
May be the following link help you. Please have a look at it.
How can I fix the Kerberos double-hop issue?
this turned out to be an issue with the way the user was configured with a third party software. Thank you for all of your responses.

The HTTP request is unauthorized with client authentication scheme 'Negotiate'

I already spent so much time trying to figure out what the problem is. I am getting this error when consuming WCF service from a desktop console application. The service works fine when access from a browser with silverlight client.
Error Message:
System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate,NTLM'.
I don't understand why it doesn't work even if both client and server have same authentication scheme 'Negotiate'. I am getting HTTP 401.
I verified client and server configuration is correct, because it works in silverlight client using the same client configuration.
IIS7 website is configured with Windows Authentication using providers 'Negotiate,NTLM'.
So, what does this error message mean? :(
I have fixed my WCF issue by setting client security.
client.ClientCredentials.Windows.ClientCredential = System.Net.CredentialCache.DefaultNetworkCredentials;
client.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;

Resources