Questions tagged msal-angular

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

Angular app using MSAL library v2 shows the login page after reloading the page

The MSAL configuration is per the following code snippet: export const msalConfig: Configuration = { auth: { clientId: ‘TheMaskedClientId’, // This is the ONLY mandatory field that you need to supply. authority: b2cPolicies.authorities.signUpSignIn.authority, // Defaults to "https://login.microsoftonline.com/common" knownAuthorities: [b2cPolicies.authorityDomain], // Mark your B2C tenant’s domain as trusted. redirectUri: ‘http://localhost:4200’, // Points to window.location.origin. You must […]

By Arash
Published
Categorized as angular, msal, msal-angular Tagged , ,

MSAL profileEdit does not return changed profile data to Angular app until Logout and Login

I have an app that uses msal and azure userflows to provide login, register and profile edit pages and functionality in my angular/ionic app, but for some reason, the profiles that are edited return the unchanged data to my app. Were I to go back to the Profile Edit userflow, i would see the correct […]

Angular app Http Parsing Error on Production

I have angular and dotnet core template app in same directory. I have to upload build on azure server but I’m getting this error. Please guide me how I can fix this problem. ERROR Error: Uncaught (in promise): TR: {"headers":{"normalizedNames":{},"lazyUpdate":null},"status":200,"statusText":"OK","url":"https://admin-dev.xperters.com/api/jobs/getJobs","ok":false,"name":"HttpErrorResponse","message":"Http failure during parsing for https://admin-dev.xperters.com/api/jobs/getJobs","error":{"error":{},"text":"<!DOCTYPE html><html lang="en"><head>n <meta charset="utf-8">n <title>Xperters</title>n <base href="/">n <meta name="viewport" content="width=device-width, […]

Unable to click to the button to redirect and connect via microsoft account in my angular application

I built an angular application and I wanted to let users connect to it only via microsoft account using @azure/msal-angular and @azure/msal-browser packages. I created a component to handle the connection called login this is login.component.ts import { Component, OnInit } from ‘@angular/core’; import { MsalService } from ‘@azure/msal-angular’; import { AuthenticationResult } from ‘@azure/msal-browser’; […]

Azure AD Msal Interceptor

I’m using azure MSAL to authenticate my API but problem is that I’m using DevExtreme custom store for server side pagination. Msal Interceptor works and genrate token auto for HttpClient but in this case I’m not sending request via http. If I’m using access token that I get after login then error occur Invalid signature […]

Azure AD Msal Interceptor Access Token

I’m using azure MSAL to authenticate my API but problem is that I’m using DevExtreme custom store for server side pagination. Msal Interceptor works and genrate token auto for HttpClient but in this case I’m not sending request via http. If I’m using access token that I get after login then error occur Invalid signature […]

Azure Active Directory Login with dotnet template with angular

I’m new here and I’m stuck in problem while implementing angular-auth-oidc-client for azure active directory login in app. I get my token but when I authorize this token on swagger this not authenticating and getting error Here are some images of my result and swagger. Please get back to me what’s wrong with my API. […]

Where can I find Microsoft Azure msal sign-up in Angular?

I am using Angular 5.2.0 and I am unable to find a guide to integrate azure msal for sign-up of new users using Microsoft account. Please share any resource or example to achieve this without updating the angular version. Source: Angular Questions

By Sham Karthik S
Published
Categorized as angular, msal, msal-angular Tagged , ,

Can’t use Msal Angular 9 to get a custom API

I’m trying to use MSAL with angular9 so i can get access to a custom ‘dynamics.com’ api I am able to obtain a valid access token for the login API But for some reason I can’t access this token to make a GET request for a custom api this is my app.module.ts import { HttpClientModule, […]

Msal interaction in progress error in at MsalService.acquireTokenRedirect if dont use MsalGuard

i am not getting issue for below route. { path: ”, component: HomeComponent, canActivate: [ MsalGuard ] } I am getting issue for below route without MsalGuard. Need alternate for using MsalGuard because i cant use guard { path: ”, component: HomeComponent } Source: Angular Questions

By user2569172
Published
Categorized as angular, azure, msal, msal-angular, msal.js Tagged , , , ,
1 2 3 5

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