Skip to main content

All Questions

0 votes
1 answer
291 views

MongoDB - Posting and getting user specific data

I'm building a MEAN stack application with passport auth and just wanted to know the best approach to storing and getting user specific data. So say for a simple example I had a collection of users ...
OrangeJuice1-'s user avatar
0 votes
0 answers
786 views

nodejs session logout/ destroy without reloading the page

I am using express, express-session and passport in my node.js application and have issues when performing an auto logout. initialization: expressapp.use(session({ secret: '****', cookie: { ...
Tobi's user avatar
  • 932
0 votes
1 answer
2k views

Show User the error message when problem when logging in

I have just started working on an already existing Web application project. Right now when the user tries logging in with incorrect credentials , the page is getting redirected to 'relogin' page. ...
Kotha Praneeth Sai's user avatar
0 votes
0 answers
106 views

req.user undefined when using $http with angularJS, express and passport

I've run into a problem where req.user is undefined when making an API call with $http in angularJS. The strange thing is that if I login with Postman and then make a call to my protected endpoint, ...
Alien's user avatar
  • 416
2 votes
0 answers
404 views

How do I display the Steam OpenID page in a popup window?

On the server side I have implemented a working authentification via passport-steam. When I open the URL .../api/v1/connect/steam it redirects me to the Steam Login page and when I succesfully log in, ...
Fortuna's user avatar
  • 609
2 votes
2 answers
92 views

Need help understanding how NodeJS / PassportJS works

I have the following 3 fragments of code taken from a working project I downloaded from internet: file: ./routes.js // ... var passport = require('passport'); var requireLoginLocal = passport....
davidesp's user avatar
  • 3,922
1 vote
1 answer
1k views

How to call passportjs(node) API from Angular cli?

NodeJs configured and running fine with passportJS OAuth2, but the requirement is angular should call node api, both are runs in different ports, calling all nodeJS's rest API from angular and it runs ...
nrs jayaram's user avatar
  • 3,418
3 votes
1 answer
2k views

Passport Authentication success but does not redirect and gives 500 error

I am learning mean stack by making a social media web app like twitter But at the time of signup or login i am getting success and a user also was created in database but the page does not redirects ...
Darshit's user avatar
  • 85
0 votes
1 answer
48 views

single schema but still nesting schema error is shown

i am trying to build login and registration system using node and passport this is the schema (models/user.js) var mongoose = require('mongoose'); var bcrypt = require('bcryptjs'); //User Schema ...
Juhi Shaw's user avatar
0 votes
2 answers
875 views

Cannot Authenticate SPA with passport-azure-ad's Bear Strategy

So I was playing get Integrating Azure AD into an AngularJS single page app this tutorial to work. https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-devquickstarts-...
Rui's user avatar
  • 259
3 votes
0 answers
88 views

Managing sessions with Angularfire, Passport and Express/Nodejs

I have a NodeJS/AngularJS application and I want to use angularfire to manage my user's login/registration at the client. E.g. $firebaseAuth.$signInWithEmailAndPassword(email, password).then(function(...
CSharp's user avatar
  • 1,466
0 votes
1 answer
3k views

Guest session in shop online, cart in NodeJS/AngularJS

How could I make sessions for guests on my site so that after accessing they can do shopping on it, and the whole cart is saved into the session? At this moment I use Node.js with Passport and ...
Piotrek Jabłoński's user avatar
0 votes
1 answer
368 views

How to pass passport facebook data to angular?

I am using passport facebook for user authentication in my web app. My Node backed is running on localhost:8080 and angular frontend is running on localhost:4200. How can I save the data received from ...
Hisham Mubarak's user avatar
0 votes
1 answer
87 views

Express session works differently on localhost, android device, windows 10 and windows 7 or 8

I have this single page application that makes 7 ajax http request when a user is successfully authenticated and redirected to the dashboard. When a user logs in passport authenticates and a session ...
Gcamon's user avatar
  • 1
0 votes
2 answers
3k views

Passport Authentication req.isAuthenticated is always false

my authentication system isn´t working as expected. first of all i want to show you my node.js file //Initialize Express Web Server var express = require('express'); var app = express(); var http = ...
chzn's user avatar
  • 35

15 30 50 per page
1
2 3 4 5
13