Questions tagged authentication

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

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
Categorized as angular, authentication, express, jwt, node.js Tagged , , , ,

VS Code can’t find name for "get" in Angular getter function, any ideas how to fix?

I’m an Angular newbie working on user authentication (IDE: VS Code) (using auth0 as authentication service). My problem is that when I try to use the function below, "get", "authenticated", and "boolean" all come up underlined in red, and I don’t know what’s going on. Basically, the function is supposed to check whether the parsed […]

How can I send the access token to logging API in Angular?

I am authenticating the user from my Angular code and I get the following request after authentication. IncomingMessage { … headers: { host: ‘localhost:8080’, connection: ‘keep-alive’, accept: ‘application/json, text/plain, */*’, ‘content-type’: ‘application/json’, ‘sec-fetch-site’: ‘same-origin’, ‘sec-fetch-mode’: ‘cors’, ‘accept-encoding’: ‘gzip, deflate, br’, ‘accept-language’: ‘en-US,en;q=0.9’, cookie: ‘_iAToken=<cookie>’ }, … url: ‘/teradata/databases/view/djfg’, method: ‘GET’, baseUrl: ‘/api’, originalUrl: ‘/api/teradata/databases/view/djfg’, params: […]

Static Angular App calling Azure Functions. Is it a security issue?

I have a node.js app which does authentication/authorization. I have an Azure Function which accepts auth token (validates and) executes the business logic behind (exposed through CORS). I have a static website with Angular app which redirects to node.js for auth, gets the token and calls Azure function (directly) with the same. For all subsequent […]

Angular – Different template structure on specific page

I’m all new to Angular, and im currently trying to build a frontend, while learning to use Angular. I have build a test-app where i am implementing authentication using an API i have writting. The authentication works fine, however i an strugling wrapping my head around how to implement a specific functionallity. Almost all of […]

By Glacierdk
Categorized as angular, authentication, css, user-interface Tagged , , ,

Angular Route Guard with httpOnly cookie

I’ve found some posts regarding this topic but i couldn’t quite make up an answer so here goes. I want to build a Route Guard for our front-end application, but the backend uses httpOnly cookies to login users. I know that despite the cookie being set in my cookie storage, we can’t access it from […]

Session management in Angular and ASP.NET

So I’m trying to learn how to use sessions to store info about a logged in users. I’m using .net core for my backend and Angular for my front end and I have 2 main questions 1> So when I create a session variable using HttpContext.Session.SetString("key", "value"); will it automatically store the session id in […]

Get approval before creating account

Is there any idea for the following condition: I am creating progressive web application. I am able to do authentication and registration using firebase. Now, The condition is that web application data are for limited user only so, the method that I have followed allows every user to create account and login to it. I […]

What has caused this error to keep emerging and how to prevent it from keep happening

I’m still new to Angular and recently I have been trying to make a login system that goes to another page. But unfortunately, I can’t quite get to that stage yet as I have this problem in my code. import { Component, OnInit } from ‘@angular/core’; import { AuthService } from ‘../../services/auth.service’; import { Router […]

By adib zikri
Categorized as angular, authentication, firebase Tagged , ,

Keycloak logout when user change url to (*****/logout)

I’m integrating keycloak with Angular, I succeded to login, it worked. Now, I need to logout when a user types logout in the url (localhost:4200/logout). There must be no logout button (I know it sucks) This is my code for initializeKeycloak import { KeycloakService } from ‘keycloak-angular’; export function initializeKeycloak(keycloak: KeycloakService): () => Promise<boolean> { […]

By The Rocket
Categorized as angular, authentication, keycloak Tagged , ,
1 2 3 25

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