Comments (9)
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.
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.
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.
http/https issues. You need to set isSecure to false...
from bell.
I'm having the same issue and also I have already set isSecure to false.
from bell.
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.
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.
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.
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)
- Support for idp with self signed certificates HOT 3
- Only node 12
- Require hapi 19
- Change plugin name to @hapi/bell
- Expose public API to refresh tokens HOT 2
- Replace Yahoo Social Directory Web Service HOT 2
- Issue with the meetup provider HOT 1
- "Failed obtaining twitch user profile" when using Twitch provider HOT 4
- Support functions for `provider.auth` and `provider.token` HOT 2
- Sign in with apple HOT 5
- Using for 3rd party tenants HOT 3
- docs: api page tutorial links to dead page HOT 1
- Improve the debugging experience when a payload is involved HOT 1
- Please document usage of local strategy
- Support client credentials as functions HOT 3
- Improve handling of rate limiting by Okta provider
- Add timeout configuration for requests
- Change callback path HOT 4
- Big cookie size
- Twitter auth no longer working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bell.