Skip to main content

All Questions

0 votes
0 answers
31 views

How Angular should get the data of the logged in user (session)

My and my classmate currently working in a project, where I creating the backend in Node.js with express, and he is creating the frontend in Angular. Currently we try to make the registering (already ...
Bálint Klubert's user avatar
0 votes
0 answers
27 views

Angular and local-Passportjs authentication

Good Evening. Trying to create Authentication to my angular project , using passport-js local strategy req.user is defined in '/login' route but when i am trying to request a different route, req.user ...
Dan Nir's user avatar
  • 45
0 votes
0 answers
39 views

SAML2 with OAUTH

I’m currently developing an application in Angular and would like to implement SAML 2 authentication to the front end but want to use OAUTH in my nodejs backend api. Does anyone have an example of how ...
Alex Buck's user avatar
0 votes
1 answer
81 views

Trying to use passport with NodeJS and angular, but my code won't move past this point

I was following a tutorial and tried to make log in using passport but in my code. But while trying to log in, my form, that is my UI on press of the button doesn't do anything, it does not get ...
Drexx_Dusan's user avatar
0 votes
1 answer
110 views

Integrate existing Login Infrastructure from Node JS in Angular

I have in my backend server, which was built with Node JS, an authentication with the package "passport-azure-ad". I put the important elements of the code here in the post. Basically, the ...
sarius's user avatar
  • 167
1 vote
1 answer
689 views

NodeJs :Error 401(Unauthorized), passport, jwt. MEAN stack, node, express, angular, mongoose

I'm new to Node, so i hope for you help... I'm working at MEAN stack app, and trying to implement auth system by passport-jwt. Registration/login forms and pages are working corectly and i can access ...
Aleks_thunder's user avatar
0 votes
2 answers
135 views

MEAN Stack user authentication with passport-auth0 , calling NodeJs passport-auth0 API in Anguler

I have used passport-auth0 in my MEAN demo project. If I have to call this api in a url in the browser it will work properly, but if I hit this url in Angular (api) its throwing CORS error. My main ...
Anish Manchappillil's user avatar
4 votes
1 answer
1k views

Why I'm not kept logged in when using Passport and sessions? Passport's "isAuthenticated()" always returns false

I am using Angular, Passport and sessions for authentication. I can create a new user, login but, Problem when checking if the user is logged using Passport's isAuthenticated() function always returns ...
alex's user avatar
  • 189
1 vote
0 answers
492 views

http SAML get request not redirecting to a url location

I'm using passport-saml and trying to get my redirect working on get request. But the response that I get from server is pure HTML. How do I make it load the HTML in a new page? this.http.get(this....
Pavan Gadagi's user avatar
5 votes
1 answer
11k views

SAML-Authentication using angular, node.js and an identity provider

I want to to implement SSO using SAML2. But I don't know how to get it work with a distributed system where each instance is running independently on its own server. The environment consists out of ...
mayerph's user avatar
  • 287
0 votes
0 answers
84 views

Can we remember the user outside a route in passport.js?

I'm creating a MEAN Stack food catalog application. Node.js gives me the user logged in, in my login route when I check for req.isAuthenticated(). But when I try to check later whether I'm still ...
Aniruddha Chakravarty's user avatar
1 vote
1 answer
1k views

Connection refused when accessing Node.js API from Angular

I'm new to Angular and I'm trying to implement user authentication in my Angular web page. As a backend I use Node.js Express framework and for authentication I use passport. When I access sever URL ...
Marek Ďaďo's user avatar
1 vote
1 answer
162 views

Remove Browser history in Angular-Node-Passport Authentication

I made an angular App, which is using Node and Passport for Authentication(Google, Facebook). Whenever a user clicks on the login button, the browser will call the */auth/google/* node route, the ...
Vikas's user avatar
  • 11
0 votes
0 answers
654 views

How to redirect to custom URL user clicked on after authenticating with passport.js

I'm using passport.js to authenticate users by SSO. The frontend is Angular8. On the app's initial load, the app.component will check if the req.user object exists on the backend. If not, it ...
Robert's user avatar
  • 27
-1 votes
1 answer
3k views

The GET HTTP request sent from Angular is causing 500 (Internal Server Error) [duplicate]

I am trying to send a GET request to the server, such that is the user at the login phase is authenticated, they can access a certain route. Otherwise, they cannot. This route is /user. My problem is ...
Marwa's user avatar
  • 321

15 30 50 per page
1
2 3 4 5