Questions tagged [unauthorized]

If referring to the HTTP error code "401 Unauthorized", use "http-status-code-401".

Usually said of a user who doesn't have the privileges to access a web page or a database.

If looking for the HTTP error code, see .

504 questions
550
votes
42 answers

ADB Android Device Unauthorized

Since I reinstalled Eclipse (simply deleted and downloaded it again) I can't debug my applications on Samsung Galaxy i9001 (with CyanogenMod - Android 4.4.2). It worked fine before reinstallation. Unplug/plug, Uncheck/check "Debug Enabled", adb…
Quak
  • 6,923
  • 4
  • 18
  • 22
142
votes
24 answers

Android ADB devices unauthorized

Configuration: Windows 8.1 ADB version: 1.0.32 Smartphone: Oneplus One Problem I installed the Samsung drivers as it is said to do. When I run the ADB devices command, it said unauthorized. Already tried: I've done everything that'd been said on…
julio
  • 2,762
  • 4
  • 22
  • 34
51
votes
8 answers

Spring-Security-Oauth2: Full authentication is required to access this resource

I am trying to use spring-security-oauth2.0 with Java based configuration. My configuration is done, but when i deploy application on tomcat and hit the /oauth/token url for access token, Oauth generate the follwoing error:…
Harmeet Singh Taara
  • 6,483
  • 20
  • 73
  • 126
47
votes
1 answer

Intermittent 401 Unauthorized from Google GCM

We are getting intermittent 401 Unauthorized errors from Google's GCM service. In the past it worked 100% of the time. The problem might coincide with our routers accepting IPv6 traffic, but the problem remains now even if we disable IPv6 on the…
30
votes
13 answers

Credentials do not work for "docker login"

Copy/pasting my username and password into the Docker Hub website works fine. The password is long, but does not contain shell-breaking symbols. Copy/pasting those same credentials into command-line docker login results in an incorrect username or…
Rjak
  • 2,097
  • 4
  • 19
  • 24
29
votes
3 answers

How do I modify my settings to allow VS2010 to load 3rd party XSD files from the "Unauthorized Zone"?

I have opened a 3rd party XSD file in Visual Studio 2010 that imports namespaces from other schema files from the same 3rd party. In the XML editor view of the schema file, the xs:import element is underlined with the following error: Request for…
mrmcderm
  • 461
  • 1
  • 5
  • 7
28
votes
3 answers

Exchange Web Service API and 401 unauthorized exception

When I try sending email using the EWS API, I get the following error: (in message.Send();) The request failed. The remote server returned an error: (401) Unauthorized. My code is the following: ExchangeService exchangeService = new…
26
votes
6 answers

UnauthorizedAccessException cannot resolve Directory.GetFiles failure

Directory.GetFiles method fails on the first encounter with a folder it has no access rights to. The method throws an UnauthorizedAccessException (which can be caught) but by the time this is done, the method has already failed/terminated. The code…
Ric
  • 683
  • 2
  • 11
  • 19
23
votes
2 answers

Custom Devise 401 unauthorized response

I'm working on a JSON-based API for my Rails 3.1 app. I'd like to provide a custom failure response instead of the default, which is: {"error":"You need to sign in or sign up before continuing."} My API controller includes a before_filter call to…
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
23
votes
5 answers

Redirect Unauthorized Page Access in MVC to Custom View

I have an MVC website in which access is based on various Roles. Once a user logs into the system they can see navigation to the pages for which they are authorized. However, some users may still try to access pages using a direct URL. If they do,…
user2739418
  • 1,623
  • 5
  • 29
  • 51
20
votes
4 answers

Unauthorized result in ajax requests

I have application with many ajax actions (implemented using JQuery.ajax), that returns JSON ot html. Some of them should be accessible only to authorized users, and I decorated them with [Authorize] attribute. For not ajax actions, if user not…
20
votes
6 answers

Asp.net Mvc custom mechanism to handle unauthorized request

For my website i want following behaviors for secured controller(or action) if a user makes a normal request redirect to login page (which i have easily able to do) if request is Ajax type Request.IsAjaxRequest()==true, return status code 401 How…
Rusi Nova
  • 2,617
  • 6
  • 32
  • 48
19
votes
7 answers

WGET 401 Unauthorized

I'm trying to use a batch file with WGET to download the public FCC file from here http://wireless.fcc.gov/uls/data/complete/l_micro.zip When I intially run the batch file with parameters wget --server-response -owget.log…
user1192537
  • 193
  • 1
  • 1
  • 4
19
votes
6 answers

Keycloak API always returns 401

I'm trying to interact with Keycloak via its REST API. I have the master realm and the default admin user, and a test realm. Firstly, I get an access token for the admin account and test realm: let data = { grant_type : 'password', client_id…
Jayce444
  • 8,725
  • 3
  • 27
  • 43
18
votes
6 answers

ASP.Net MVC 3 Redirect UnAuthorized User not to loginUrl

i have a project using ASP.Net MVC3 and using membership for roles. i use authorize in every controller. eg: [Authorize(Roles = "Administrator")] public ActionResult Index(string q, int i) { return View(model); } if someone…
1
2 3
33 34