Questions tagged [http-status-code-401]

Similar to 403 Forbidden, but specifically for use when authentication is possible but has failed or not yet been provided. The response must include a WWW-Authenticate header field containing a challenge applicable to the requested resource.

The request has not been applied because it lacks valid authentication credentials for the target resource.

The server generating a 401 response MUST send a WWW-Authenticate header field1 containing at least one challenge applicable to the target resource.

If the request included authentication credentials, then the 401 response indicates that authorization has been refused for those credentials. The user agent MAY repeat the request with a new or replaced Authorization header field2. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user agent SHOULD present the enclosed representation to the user, since it usually contains relevant diagnostic information.

See

1109 questions
2
votes
4 answers

Error deploying app engine project using Old Eclipse google plugin

Suddenly i got an error couple more days ago when going to deploy appengine project to some Project IDs .. Ex there are two project ids i have 1) xxxx-dev.appspot.com and 2) xxxx-live.appspot.com I can put my project xxxx-live.appspot.com with no…
2
votes
0 answers

Unauthorized request, 401, using Spring if I open a modal or I send an ajax request

I have a problem with Keycloak and Spring Boot.. I developed a web-app with some modal and ajax request, sometimes, and I don't know why, I receive status 401 if I click on an href to open a modal, or if I submit a form via ajax... I don't see any…
Droide
  • 1,807
  • 2
  • 17
  • 30
2
votes
1 answer

Asp.Net Core 2 oidc middleware does not challenge after proxy request returns 401

I'm trying to build a centralised proxy that will intercept all requests and handle authentication with openidconnect. Currently the proxied request simply returns 401, so the middleware suppose to challenge and redirect me to the login page. The…
2
votes
0 answers

JWT-auth returning 401 error on login

JWT-auth keeps returning 401 error on login. The credentials are correct, I even went as far as changing the encrypted password to the plain password in the db and it still returned 401. The register method works just fine, I haven't gotten to the…
Jay
  • 167
  • 3
  • 14
2
votes
1 answer

python3 zeep url gives 401 client error: unauthorized for url

my command: python3 -mzeep https://pearson:m0bApP5@cms.powerschool.com/pearson-rest/services/PublicPortalServiceJSON?wsdl I get an error: requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url:…
user7903682
  • 199
  • 1
  • 1
  • 18
2
votes
0 answers

Spring boot do not change HTTP code in case of exception

I have trouble controlling the HTTP response code of my Spring Boot Rest server. The controller advice change the header www-authenticate but I keep getting 404 not found (tested using Postman). Here is my code (made to generate 401 all the…
2
votes
5 answers

Very Slow Sharepoint (Authentication Problem? - Getting 401 errors on images and styles)

I'm currently using Team Foundation Server and WSS 3.0 as the Team Portal. After the installation and configuring, I noticed the application was very slow sometimes, taking minutes to load a page. Then I googled it and found n solutions, none solved…
Conrad Clark
  • 4,533
  • 5
  • 45
  • 70
2
votes
1 answer

Javascript fetch not working with http://key@www.example.com

I am trying to access a web-Api (Prestashops Web API to be exact) and fetch seems to have a problem with an url in this format : http://SOMEKEY12345@www.example.com. In both Chrome and Postman everything works perfectly fine but using the fetch-API…
2
votes
0 answers

401 Unauthorized Response from Apple New Publisher API

I want to access my channel with the apple new publisher API. I am trying to replicate the same python in the apple documentation String finalUrl = baseURL + channelId; String date= getCurrentDate(); String canonical_request = "GET"+finalUrl +…
user1912404
  • 386
  • 4
  • 11
  • 26
2
votes
1 answer

Client certificate authentication on IIS 8 - 401.1 Unauthorized

We are developing ASP.NET application and we need to use Client Certificate Authentication on IIS 8. I followed guides to setup SSL and Client Certification authentication.…
2
votes
2 answers

How to get FCM server key which is to be parsed in authorization header in php curl request?

I tried with web api key which i got from > firebase console> My Project> project setting>General Tab. NOTE : Currently I am not using paid developer account. I just create a new google account and created a project. $url =…
2
votes
1 answer

IE, FireFox, Opera, and Safari don't display BASIC auth prompt on successive 401 responses from server

SCENARIO: I have a java web app running in the latest Tomcat 6. I also have a single servlet filter that provides authentication. I support BASIC auth and it appears to work fine - most of the time. The first time a browser [pick any one - IE,…
2
votes
0 answers

Jenkins is facing MalformedURLException

This happened when I was trying to update plugins in my Jenkins server. The following message came up and I don't know where to start. java.net.MalformedURLException: no protocol: at java.net.URL.(URL.java:593) at java.net.URL.(URL.java:490) at…
2
votes
0 answers

C# Web API call return a 401.1 only when it's long-running

I have a Web API method that is secured by Windows Authentication. Here's the client code: var uri = new Uri(@"https://myapi.mysite.com/api/method"); var request = HttpWebRequest.Create(uri); request.Method = "GET"; request.ContentLength =…
2
votes
1 answer

OAuth2 401 Unauthorized from resource server

I tried to implement OAuth2 authentication and authorization. I have an authorization server and a resource server. The client logs in to the authorization server (sends the username and password to the authorization server) and the authorization…