Title: passport_mock authentication issue · Issue #17 · GetStream/Stream-Example-Nodejs · GitHub
Open Graph Title: passport_mock authentication issue · Issue #17 · GetStream/Stream-Example-Nodejs
X Title: passport_mock authentication issue · Issue #17 · GetStream/Stream-Example-Nodejs
Description: Hi, I set this up locally to take a look at a sample app with a notification feed. I'm using a local MongoDB which the app connects to fine and after running after_deploy.js I can see the relevant collections being created and updated. A...
Open Graph Description: Hi, I set this up locally to take a look at a sample app with a notification feed. I'm using a local MongoDB which the app connects to fine and after running after_deploy.js I can see the relevant ...
X Description: Hi, I set this up locally to take a look at a sample app with a notification feed. I'm using a local MongoDB which the app connects to fine and after running after_deploy.js I can see the relev...
Opengraph URL: https://github.com/GetStream/Stream-Example-Nodejs/issues/17
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"passport_mock authentication issue","articleBody":"Hi,\r\n\r\nI set this up locally to take a look at a sample app with a notification feed. I'm using a local MongoDB which the app connects to fine and after running after_deploy.js I can see the relevant collections being created and updated.\r\n\r\nAfter npm start, the app launches and I can access the main static content at the root (localhost:8000 / Trending). However when I try and access any of the specific feed examples I'm re-routed to /login. A small effort at troubleshooting suggests the passport_mock authentication isn't working for some reason (hence the perpetual redirect to /login).\r\n\r\nI'm using the default details within the sample code without any changes. Limited effort to debug on passport_mock.js = \r\n\r\n User.findOne({username: 'Andrew'}, function(err, found){\r\n if (err) console.log(err);\r\n **console.log(found);**\r\n ....\r\n\r\nI've included the console output of the initial function (found) in case it's useful, but I've not had time to try and diagnose what's going wrong on the passport side of things beyond this - any guidance appreciated.\r\nThanks,\r\nTom\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/tbuckham","@type":"Person","name":"tbuckham"},"datePublished":"2019-04-30T09:48:03Z","url":"https://github.com/GetStream/Stream-Example-Nodejs/issues/17"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a4e4d2dd-07bf-d250-2859-89db1a309d33 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BEA2:12AC18:1EE8806:28ECC26:6B034D11 |
| html-safe-nonce | 3474b9d38f8a08777718410c93bd225a691a3426fa83f6fca99694e474179459 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUEyOjEyQUMxODoxRUU4ODA2OjI4RUNDMjY6NkIwMzREMTEiLCJ2aXNpdG9yX2lkIjoiMjk5MjMwNzM3NjIzMDcxNDY0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 57090101bcf4b3048db13ecceccbdda9d8fae8f7308a69fae34b6da6de8f98f7 |
| hovercard-subject-tag | issue:438690649 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GetStream/Stream-Example-Nodejs/17/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d8f7aca7f8110679523570c8c6087ae369efe6c6284f181b5747e79717e45d47/GetStream/Stream-Example-Nodejs/issues/17 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d8f7aca7f8110679523570c8c6087ae369efe6c6284f181b5747e79717e45d47/GetStream/Stream-Example-Nodejs/issues/17 |
| og:image:alt | Hi, I set this up locally to take a look at a sample app with a notification feed. I'm using a local MongoDB which the app connects to fine and after running after_deploy.js I can see the relevant ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tbuckham |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/GetStream/Stream-Example-Nodejs git https://github.com/GetStream/Stream-Example-Nodejs.git |
| octolytics-dimension-user_id | 8597527 |
| octolytics-dimension-user_login | GetStream |
| octolytics-dimension-repository_id | 34457097 |
| octolytics-dimension-repository_nwo | GetStream/Stream-Example-Nodejs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 34457097 |
| octolytics-dimension-repository_network_root_nwo | GetStream/Stream-Example-Nodejs |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width