GithubHelp home page GithubHelp logo

Comments (9)

nikhilaravi avatar nikhilaravi commented on July 19, 2024 1

I'm getting exactly the same error but for Github login and I have already set isSecure to false. I am following this code exactly (https://gist.github.com/arb/9a1d8e694bbd12d5b455) but it is not working for any of the providers

from bell.

hueniverse avatar hueniverse commented on July 19, 2024

You mean returning an error, not throwing. You can add to the server config { debug: { request: ['error'] } } which will give you more info.

(btw, CS code on a JS project is bad manners 😃)

from bell.

alexgorbatchev avatar alexgorbatchev commented on July 19, 2024

Here's the stack from a single attempt, not sure if it's the same error traced out twice or it happened twice...

Debug: hapi, auth, error, unauthenticated
    Error: Missing facebook request token cookie
  at Object.exports.create (/app-auth/node_modules/bell/node_modules/boom/lib/index.js:21:17)
  at Object.exports.internal (/app-auth/node_modules/bell/node_modules/boom/lib/index.js:241:92)
  at /app-auth/node_modules/bell/lib/oauth.js:148:31
  at /app/node_modules/hapi/lib/auth.js:207:53
  at [object Object].internals.Protect.run (/app/node_modules/hapi/lib/protect.js:53:5)
  at authenticate (/app/node_modules/hapi/lib/auth.js:192:26)
  at [object Object].internals.Auth._authenticate (/app/node_modules/hapi/lib/auth.js:333:5)
  at internals.Auth.authenticate (/app/node_modules/hapi/lib/auth.js:156:17)
  at /app/node_modules/hapi/lib/request.js:323:13
  at iterate (/app/node_modules/hapi/node_modules/async/lib/async.js:149:13)
  at /app/node_modules/hapi/node_modules/async/lib/async.js:160:25
  at /app/node_modules/hapi/node_modules/hoek/lib/index.js:539:22
  at process._tickDomainCallback (node.js:463:13)

Debug: hapi, internal, error
    Error: Missing facebook request token cookie
  at Object.exports.create (/app-auth/node_modules/bell/node_modules/boom/lib/index.js:21:17)
  at Object.exports.internal (/app-auth/node_modules/bell/node_modules/boom/lib/index.js:241:92)
  at /app-auth/node_modules/bell/lib/oauth.js:148:31
  at /app/node_modules/hapi/lib/auth.js:207:53
  at [object Object].internals.Protect.run (/app/node_modules/hapi/lib/protect.js:53:5)
  at authenticate (/app/node_modules/hapi/lib/auth.js:192:26)
  at [object Object].internals.Auth._authenticate (/app/node_modules/hapi/lib/auth.js:333:5)
  at internals.Auth.authenticate (/app/node_modules/hapi/lib/auth.js:156:17)
  at /app/node_modules/hapi/lib/request.js:323:13
  at iterate (/app/node_modules/hapi/node_modules/async/lib/async.js:149:13)
  at /app/node_modules/hapi/node_modules/async/lib/async.js:160:25
  at /app/node_modules/hapi/node_modules/hoek/lib/index.js:539:22
  at process._tickDomainCallback (node.js:463:13)

from bell.

hueniverse avatar hueniverse commented on July 19, 2024

http/https issues. You need to set isSecure to false...

from bell.

lintuxt avatar lintuxt commented on July 19, 2024

I'm having the same issue and also I have already set isSecure to false.

from bell.

hueniverse avatar hueniverse commented on July 19, 2024

Commenting on a year old issue is unlikely to get you help. You need to open a new issue with more specifics about what you are trying to do and the errors you are getting. Keep in mind that because of the many settings all around, helping you debug authentication is notoriously hard (and this code clearly works for a lot of people). So you will need to work extra hard to help people reproduce your specific issue.

from bell.

gabceb avatar gabceb commented on July 19, 2024

FWIW, we are experiencing a similar issue with Bell (Google as a provider) if we take too long to respond to the request that has an auth of 'google', 'bell' because it fires the request to Google twice. Disclaimer: we are running a very old Bell (1.3.1) and Hapi (6.1.11) so feel free to discard if it works in newer builds.

To repro this with newer versions you can add a long timeout to the end of handler for the route and see if it happens

from bell.

phoenixbox avatar phoenixbox commented on July 19, 2024

I was experiencing this error when I realized that my location param did not match my referrer.

I was hitting auth from localhost:3600 and my location param was set to local.#{myApp}:3600 which I had aliased to localhost in my etc/hosts. Maybe the location param is the source of error for others

server.auth.strategy('${provider}', 'bell', {
      isSecure: false,
      provider: oauthConfig,
      password: config.cookie_password,
      clientId: config.client_id,
      clientSecret: config.client_secret,
      location: config.redirect_uri
    });

from bell.

lock avatar lock commented on July 19, 2024

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

from bell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.