ForbiddenError: Unable to load OAuth 2.0 transactions from session

See original GitHub issue

When performing a POST request to my server.decision()/server.grant() endpoint using cUrl or POSTMAN client I get a good response and I receive the auth code I need for a POST request to my server.token()/server.exchage() endpoint.

However, when I generate a POST request using Angulars $http service, I recieve the following error.

ForbiddenError: Unable to load OAuth 2.0 transactions from session
    at Object.transactionLoader [as handle] (/Users/user/workspace/project/api/node_modules/oauth2orize/lib/middleware/transactionLoader.js:37:42)
    at next_layer (/Users/user/workspace/project/api/node_modules/express/lib/router/route.js:103:13)
    at complete (/Users/user/workspace/project/api/node_modules/passport/lib/middleware/authenticate.js:243:13)
    at /Users/user/workspace/project/api/node_modules/passport/lib/middleware/authenticate.js:250:15
    at pass (/Users/user/workspace/project/api/node_modules/passport/lib/authenticator.js:427:14)
    at Authenticator.transformAuthInfo (/Users/user/workspace/project/api/node_modules/passport/lib/authenticator.js:449:5)
    at /Users/user/workspace/project/api/node_modules/passport/lib/middleware/authenticate.js:247:22
    at IncomingMessage.req.login.req.logIn (/Users/user/workspace/project/api/node_modules/passport-http/node_modules/passport/lib/passport/http/request.js:49:13)
    at BasicStrategy.strategy.success (/Users/user/workspace/project/api/node_modules/passport/lib/middleware/authenticate.js:228:13)
    at verified (/Users/user/workspace/project/api/node_modules/passport-http/lib/passport-http/strategies/basic.js:91:10)

I’ve done some searching through Google and the issues and I can’t seem to find anything that can help me.

Can anyone point me in the right direction?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:4
  • Comments:6

github_iconTop GitHub Comments

2reactions
mhdatiecommented, Mar 12, 2015

hey guys, I found this repo explaining everything so well.

https://github.com/FrankHassanabad/Oauth2orizeRecipes

2reactions
klebbacommented, Mar 1, 2015

@LukeeeeBennett – can you give more info about your workaround? I hit the same error

Read more comments on GitHub >

github_iconTop Results From Across the Web

ForbiddenError: Unable to load OAuth 2.0 transactions from ...
I was follow up a tutorials series from there and kind of stuck at implementing with oauth part. For the moment, I could...
Read more >
“Unable to issue redirect for OAuth 2.0 transaction” using a ...
This is a test on localhost. The user is created, but this error is generated and the generic “Auth0 something went wrong” page...
Read more >
No valid OAuth 2.0 authentication session exists" Error ...
When trying to connect to SharePoint Online through PowerShell 7, got this error message “Connect-SPOService: No valid OAuth 2.0 authentication ...
Read more >
403 Forbidden Error: What It Is and How to Fix It - Airbrake Blog
If the server fails to recognize the session token or the server sees this particular token as invalid, this may result in a...
Read more >
Okta Identity Engine API Products release notes 2022
You can end all Okta sessions for a user when resetting their password. ... Inline hook requests configured to use OAuth 2.0 authentication...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found