Questions tagged [unauthorized]
If referring to the HTTP error code "401 Unauthorized", use "http-status-code-401".
509
questions
569
votes
43
answers
1.1m
views
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.
...
150
votes
24
answers
405k
views
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.
...
53
votes
1
answer
2k
views
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 ...
51
votes
8
answers
241k
views
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 ...
32
votes
15
answers
37k
views
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 ...
29
votes
3
answers
13k
views
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 ...
28
votes
3
answers
64k
views
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:
...
27
votes
6
answers
40k
views
UnauthorizedAccessException cannot resolve Directory.GetFiles failure [duplicate]
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, ...
23
votes
5
answers
67k
views
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 ...
23
votes
2
answers
14k
views
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."}
...
20
votes
6
answers
76k
views
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 ...
20
votes
6
answers
14k
views
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....
20
votes
4
answers
16k
views
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] ...
19
votes
7
answers
96k
views
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 --...
18
votes
6
answers
26k
views
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)
{
...
17
votes
7
answers
27k
views
Set 403 error page in MVC
I overrides the class to perform custom Authorization
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = true)]
public class AuthorizeAttribute : ...
17
votes
4
answers
29k
views
401 unauthorized error handling in AngularJS
I'm very newbie in AngularJS, and now spending 3 days in finding a way to handle 401 status. I've tried interceptors, using $http, using $resource...but nothing is working. My app calls JSONP call on ...
15
votes
11
answers
89k
views
I'm not able to log in Tomcat Manager App
I have read a lot of topics in stackoverflow for solve my problem, but none was useful.
When I tried to log in Manager App ([http://localhost:8080/manager/html][1]) using a lot of different ...
12
votes
4
answers
7k
views
Overriden HandleUnauthorizedAsync not being called .NET Core
I have implemented my own custom authentication middleware and handler, and configured them in the app startup. This is all working fine.
In my custom auth handler where I have overriden ...
9
votes
4
answers
4k
views
mvc6 unauthorized results in redirect instead
I have been trying to prevent the redirect when I return an NotAuthorized IActionResult from a Controller, but regardless of my attempts, NotAuthorized gets translated to a Redirect.
I have tried ...
9
votes
8
answers
24k
views
Let's Encrypt unauthorized 403 forbidden
On the server, Nginx is installed.
Let's Encrypt is working well with www.domain.com but is not working with static.domain.com
With PuTTY, when I enter :
sudo letsencrypt certonly -a webroot --...
9
votes
2
answers
16k
views
How to install a windows font using C#
How can I install a font using C#?
I tried copying the fonts using File.Copy() but I am not allowed due to access rights limitations (UnauthorizedException).
What should I do?
9
votes
1
answer
7k
views
unauthorized_client: Grant type 'authorization_code' not allowed for the client. Django -auth0 -login
I'm developing an app with django and when I try to use auth0 for the login I get:
"error": {
"message": "Grant type 'authorization_code' not allowed for the client.",
"oauthError": "...
9
votes
1
answer
6k
views
Attribute for only allow anonymous in ASP.Net MVC
I know that there is an attribute when a user must be authorize or not. You can also place [AllowAnonymous] above it. See also code below:
[Authorize] // only when the user is authorize
public class ...
8
votes
1
answer
14k
views
401 (Unauthorized) in Chrome, but not in IE
I recently moved from using jQuery to using isomorphic-fetch with Redux. When running in IE, it manages to fetch fine. However I get the below when running in Chrome.
Failed to load resource: the ...
8
votes
1
answer
1k
views
Prevent unauthorized http requests redirected to /error from setting session cookie - spring boot - spring security
Context
I'm having some trouble with my application. We're using Spring Boot 2.4.10 and Spring Security 5.4.8. We use cookies to interact with the app.
We have a frontend application stored in src/...
8
votes
1
answer
2k
views
FCM Push - Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential
I am trying to send fcm message to specific topic by using cURL command but it says error like
{
"error": {
"code": 401,
"message": "Request had invalid ...
7
votes
2
answers
16k
views
Unauthorized when calling Google GCM
I trying to use Google GCM for sending push notifications. But get a WebException that says that the remote server returns 401 unautorized. I can't foung why it doen't work.
Anyone that knows why it ...
7
votes
5
answers
883
views
Why is my .Net app contacting Verisign?
I wrote a .Net application that has nothing to do with network communication. There is not a single line of code in the whole application that uses the NIC, but my firewall has caught it trying to ...
6
votes
3
answers
10k
views
ASP Core API - Custom Unauthorized body
I'm developing ASP Core Web API using dotnet core v3.1.
I'm using JWT tokens for authentication. And for authorization I use the [Authorize] attribute.
How can I create my own response if the user is ...
6
votes
3
answers
4k
views
C# HttpClient authorization header removed after send to server
I wanna send request to external API through the HttpClient from my own API in c#.
I am using dot net 5 and basic authentication.
Here is my code:
var client = new HttpClient
{
BaseAddress = new ...
6
votes
1
answer
1k
views
PhoneGap and Google Maps API V3 "Disabled?"
So, I am building a simple PhoneGap application that loads a Google Maps API V3 view. I have searched far and wide for an answer, but I have not found a thing. I get the following error when trying to ...
6
votes
1
answer
9k
views
Getting 401 Unauthorized with valid access token using identity server 4 with Asp.net Core API
I am using Identity server 4 in my Asp.net core API Application , i am getting successful token on local server
https://localhost:[port]/connect/token
and it gives access token and when i use the ...
6
votes
0
answers
6k
views
Call authorized Web API using WebClient
After hours of searching the internet I decided to ask you guys for a little help.
I've written an Web API with couple of simple get/post methods. I'm using Individual user accounts authentication ...
6
votes
1
answer
2k
views
using Parse.com javascript and keep getting 401 unauthorized
I'm doing the initialize as i'm supposed to, with the right keys etc.
Even when doing so right within the function that is later using Parse.Cloud.run, I still get 401 unauthorized.
Is there a way to ...
5
votes
2
answers
49k
views
curl 401 Unauthorized error
As shown in image when i am trying to run https://www.example.com/Push_Order.php?orderId=1562 It gives me 401 Unathorized error. But when I run this Url in browser it run well.
Any Idea where is my ...
5
votes
2
answers
17k
views
401 Unauthorized error using NetBeans + Git on BitBucket
I have a local git repository.
Recently I have added a remote repository from bitbucket, and have pushed my branch there without any problem by: git push bitbucket (since I've configured username and ...
5
votes
1
answer
198
views
F# WebApi Cors doesn't work
I'm trying to create a WebApi project written in F# and to enable CORS.
The Controller:
type DoItController() =
inherit ApiController()
[<EnableCors(origins = "*", headers = "*", methods =...
4
votes
1
answer
2k
views
Identity Server 4 - cancel redirect to login and return 401 instead
I had an ASP.NET Core 2 web app without Identity Server where I configured the automatic challange of unauthenticated HTTP requests to not redirect the user to the login page and just return 401 ...
4
votes
1
answer
2k
views
custom 401 page in Rails with Doorkeeper
I have a Rails 4 application using Doorkeeper to require authentication in most controllers. When I go to one of those restricted routes, I see a blank page. I notice in my terminal, Puma says:
...
4
votes
1
answer
6k
views
Retaining authorization header in RestSharp during redirects
I am using RestSharp to make a GET api call. The api call is authenticated through HTTP Basic authentication by passing the authorization header.
The server redirects the api call with a status code ...
4
votes
1
answer
848
views
Kubernetes on docker creates containers with empty serviceaccount and no tokens leading to container crash and restarts
Still experiencing a similar issues 1.3.0 and upto 1.4.0-alpha.0
In my case (docker based set up), either trusty or kubedns would get unauthorized from api server.
and strangely I see that the ...
4
votes
3
answers
11k
views
RabbitMQ HTTP API request 401 Unauthorized
I'm trying to access to RabbitMQ rest, but I got 401 unauthorized error. I want to access to queue information and to get messages number.
I found this as a solution
DefaultHttpClient httpClient = ...
4
votes
3
answers
1k
views
UnauthorizedAccessException in Vista from frequent file I/O with .Net 2.0
At work, we have migrated from Windows XP to Windows Vista. After the migration, some of my unit tests, using nUnit, started to randomly fail with the System.UnauthorizedAccessException being thrown. ...
4
votes
2
answers
3k
views
Unauthorized error when using GitLab Private Token to call GitLab endpoint
I am trying to reach GitLab API endpoint via HttpClient. Firstly, I am generating private access token with
https://gitlab.example.com/oauth/token
then with this access token I'm trying to reach tags ...
4
votes
0
answers
2k
views
Feign response returns body null when error code is 401 Unauthorized
When i get 401 unauthorized response, there is no body part in errordecoder response object. If i change only status code of the response for example to 403 or anything else in server side, then there ...
3
votes
1
answer
7k
views
No access permission for App_Data
I am finishing my web project and have added a little error log feature. It writes details of exceptions in a dated file in the App_Data folder.
When I do this on my development machine, it works. ...
3
votes
2
answers
2k
views
How can I access SoundCloud-Stream URLs in Python?
Some time ago I wrote a little tool for a friend of mine. I retrieved all stream-links (like this) from a soundlist and downloaded all those with a small python script.
Since begin of March, ...
3
votes
2
answers
732
views
Rails: send a 401 error without rendering a page
I'm trying to send a 401 authorized from a Rails controller for webhooks, but I can't seem to the right way to do it since I'm not rendering a page.
render plain: "Unauthorized", status: :...
3
votes
4
answers
736
views
How to protect the iOS application in case of any OS attack(On jail broken devices)
I would like to protect my application data in case of any OS attack or unauthorized access on jail broken iOS devices. Is there any way to detect such threats and protect app data in such cases.