unauthorized

PassportJS authenticates user but returns 401 Unauthorized on subsequent requests

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-27 19:39:40
问题 I'm writing one of my first applications in NodeJS so please bear with me. I've managed to successfully authenticate a user to our Active directory and I can see the connect.sid cookie being set and used on the subsequent requests. Upon debugging the application by dumping the req object I can also see that the user variable has been set successfully. From the documentation I've read that seems to be a criteria for a successful session match? However, the request is still getting a 401

ASP.Net Core API always returns 401 unauthorized whenever I send a request with Bearer token included

为君一笑 提交于 2020-02-24 03:07:37
问题 I have an ASP .NET Core web api and I generate a JWT token for authorization purposes but whenever I make a request with Postman with Bearer token header I get 401 Unauthorized. Same when I try from my front-end that's consuming the API. When I remove Authorize everything works fine Tried changing Authorize in my header to //[Authorize(AuthenticationSchemes = "Bearer")] also went to jwt.io to ensure the JWT Token is valid which it is. //function where I generate JWT public User

ASP.Net Core API always returns 401 unauthorized whenever I send a request with Bearer token included

牧云@^-^@ 提交于 2020-02-24 03:05:51
问题 I have an ASP .NET Core web api and I generate a JWT token for authorization purposes but whenever I make a request with Postman with Bearer token header I get 401 Unauthorized. Same when I try from my front-end that's consuming the API. When I remove Authorize everything works fine Tried changing Authorize in my header to //[Authorize(AuthenticationSchemes = "Bearer")] also went to jwt.io to ensure the JWT Token is valid which it is. //function where I generate JWT public User

Intel XDK : Parse.com integration “Unauthorized”

我的梦境 提交于 2020-01-24 21:45:16
问题 I am very new to Intel XDK and i try to make a very simple app like this in that video tutorial: Using Services Datafeed in App Designer. But instead of the specific service from Rotten Tomatoes i want to integrate a database i have in Parse.com. For that i followed this video tutorial: "Integrating a New Service" "[https]://software.intel.com/en-us/html5/videos/integrating-a-new-service", and at the end the response was: "Unauthorized" . Then i found only this answer which comes from Intel's

Symfony 1.4 - Unable to load cacheHelper.php

情到浓时终转凉″ 提交于 2020-01-15 10:14:52
问题 I have just setup symfony 1.4 on Amazon EC2 AMI Linux. Every thing seems to be configured fine but when I open the default h*tp://ec2-xxxxxxx-.amazonaws.com/ URL it shows me 401 | Unauthorized | InvalidArgumentException and the error is: Unable to load "cacheHelper.php" helper in: SF_ROOT_DIR/apps/frontend/lib/helper, SF_ROOT_DIR/lib/helper, SF_ROOT_DIR/lib/vendor/symfony/lib/helper. Any help is appreciated. <VirtualHost *:80> ServerName ec2-184-73-90-216.compute-1.amazonaws.com DocumentRoot

Why am I getting a (401) Unauthorized Error in Google Calendar API

梦想与她 提交于 2020-01-15 01:26:09
问题 Ive been playing around with the Google Calendar API and am getting stuck on something. When i call this below to delete a calendar event it works fine on the first pass and usually the second. However, around the 2nd or 3rd time I call this method I get a (401) Unauthorized error . It uses the same credentials every time. If I get the exception, I can reset the credentials in the catch and it works fine. I would prefer not to have to do this. Any ideas? CalendarService myService = new

Send email with Mailgun in angular

自古美人都是妖i 提交于 2020-01-06 15:25:08
问题 This is my code: function sendEmail(){ return $http.post('https://api:<MY SECRET API KEY>@api.mailgun.net/v3/<DOMAIN>/messages', { from: "hello@<DOMAIN>", to: 'test@mail.com', subject: "Subject text", text: "Body text" }).then(function(data){ return data; }, function(error){ //manage error }) } This is giving me a 401 Unauthorized error UPDATE: I have find this post where it's fixed --> Mailgun + AngularJS + Auhtentication for http post request In my case, multipart is not needed. 回答1: Looks

Microsoft SQL Server 2012 Setup Attempted to perform an unauthorized operation

妖精的绣舞 提交于 2019-12-25 08:50:02
问题 I am trying to install SQL Server 2012 Developer edition on my laptop which had it working previously. My laptop was running low on disk space and I had to uninstall it earlier. It no longer works and fails at the last moment giving me an unauthorized error. I used process monitor to look at the problem and can see that it is attempting to gain access to the registry key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\FltMgr" but gets an access denied . I have tried several attempts to