Questions tagged express

Explore the latest questions and answers asked by our top developers.

Passport Authentication Middleware for Node/Express – How to Protect all Routes

Stack: Front End – Angular 12 |– Leveraging Angular/MSAL to integrate with Azure AD for authentication Back End: |– Node JS V14.17.6 |– Express 4.17.1 |– Passport-Azure-AD V4.3.0 (passport-azure-ad is a collection of Passport Strategies to help you integrate with Azure Active |– Authentication Strategy – BearerStrategy (Protects APIs and Resources) Directory) |– Passport V0.3.2 […]

By nubianMONK
Published
Categorized as angular, azure, express, node.js Tagged , , ,

JWT Token Verification to decode and Protect Routes in MEAN App

I am trying to authenticate users using JWT. I am assigning a token on login. if (client) { // Check if Client does exist, then compare password provided by Client if (!req.body.password) { res.json({ success: false, message: "No password provided" }); // Password was not provided } else { var validPassword = client.password === req.body.password; […]

By arun saini
Published
Categorized as angular, authentication, express, jwt, node.js Tagged , , , ,

Keycloak Angular to NodeJs 403 Forbidden

I have an issue with keycloak integration for my nodejs express API. So far, my app is using Angular and Java(SpringBoot), both of which are already keycloak-protected. Now I made another API for payments and it uses Express Nodejs. I want to protect it with Keycloak so my angular app can talk to both the […]

I keep Getting a POST 400 (Bad Request) error whenever i attempt to signup on the client side of my application

I am trying to create a SignUp and Login Components for my Angular Application. For this application I am using MongoDb and ExpressJS for the back. Whenever I test the code on the Mongo side of the project with POSTMAN I am able to sign up an also login and even generate my tokens. For […]

By Mitch
Published
Categorized as angular, express, javascript, mongodb, mongoose Tagged , , , ,

How do I implement a reset password feature with angular + express?

I am currently building a Website that requires the user to log in/register, and therefore I also need to implement a ‘reset password’ feature. My idea would be to make it work like this: user triggers the reset password request the server generates a key and sends them an email with a link containing this […]

By Kleecarim
Published
Categorized as angular, express, http, javascript, node.js Tagged , , , ,

Can’t get imageUrl and imagename on save data

In this form i am selecting a image and want to save it in mongodb with some other data, but year i am getting all ther data but not able to get selected image name or url in savesubject function to push data in db. Problem is while i am consoling image i am getting […]

By anuj todankar
Published
Categorized as angular, express, mongodb, node.js Tagged , , ,

Can’t save Data in Json Format in Mongodb

In this application i am saving Semester_id, Course_id and subject in mongodb. All i need is to Save the Subject in Json Format. Save semester_id , course_id and save Subject in Json(not in array) with same ids – For semeter and course. I am saving subject in array I am new to angular, Can anyone […]

By anuj todankar
Published
Categorized as angular, express, mongodb, node.js Tagged , , ,

Cannot use MEAN stack with Discord OAuth2 (CORS Error)

I am trying to add Discord OAuth into my MEAN application. My login flow is as such The user clicks the button on the angular app, they are then redirected to the express/node server url, they then get redirected to the discord oauth link, at this point i am given an access denied error Access […]

By Agochar Bhatia
Published
Categorized as angular, discord, express, node.js, oauth-2.0 Tagged , , , ,

How to fetch data from Rest Api using HttpClientModule? (Angular)

Hello I’m new to Angular and I’ve been trying to make a post request using HttpClientModule to register a new User with the Rest API I created, but for some reason is not working and I keep getting CORS Policy Error (XHR) but when I try to do the request with Postman it works perfectly […]

By posso martin
Published
Categorized as angular, express, javascript Tagged , ,

Seperate Data Strored in array for same id?

In this application i am saving Semester_id, Course_id and a array of subject in mongodb. All i need is to seperate the array of Subject. Save semester_id , course_id and save Subject in different row(not in array) with same ids – For semeter and course. I am new to angular, Can anyone help me out […]

By anuj todankar
Published
Categorized as angular, express, mongodb, node.js Tagged , , ,
1 51

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq