All Questions
186
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 ...
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: { ...
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. ...
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, ...
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, ...
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....
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 ...
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 ...
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
...
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-...
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(...
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 ...
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 ...
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 ...
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 = ...