Questions tagged [msal-angular]

172 questions
0
votes
0 answers

How to fix 'crypto_nonexistent' error when using MSAL with Angular Universal?

I build the angular universal and MSAL B2C project. After run build:ssr and run dev:ssr I get an error: ERROR BrowserAuthError: crypto_nonexistent: The crypto object or function is not available. Detail:Browser crypto, msCrypto, or msrCrypto…
Len
  • 1
  • 1
0
votes
0 answers

Why the multitenant angular application has no role? (AzureAD + C# + Angular)

I registered two applications in AzureAD, both were set to multi-tenant, added users and gave them roles. In my c# code, I set tenant_id to "/common" services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) …
0
votes
0 answers

Importing MsalModule which does not have a ɵmod property

I've recently upgraded from Angular 12 to 13, which broke the Jest test for AppComponent, with the errors centring on MSAL. I updated @azure/msal-angular and @azure/msal-browser to their latest v2 packages, but this made no difference. I looked up…
Venator
  • 224
  • 3
  • 12
0
votes
1 answer

Unable to send x-functions-key header to azure function app after MSAL authentication in an Angular app

We have an Angular app authenticated by MSAL library per the following configuration in app.modules.ts: export function MSALInstanceFactory(): IPublicClientApplication { return new PublicClientApplication(msalConfig); } export function…
Arash
  • 3,628
  • 5
  • 46
  • 70
0
votes
0 answers

Mock Component used in MatDialog

I have two libraries/modules with one component Each. One Component (MainComponent) uses the other (DialogComponent) in a MatDialog open Statement. The DialogComponent uses a Service (PermissionsServie) that uses MsalModule. When i mock and provide…
Andresch Serj
  • 35,217
  • 15
  • 59
  • 101
0
votes
0 answers

show the Microsoft Login page instantly when using msal for angular

MSAL library is used with Angular 15, every controller is protected with the MsalGuard in the app-routing file as follows: const routes: Routes = [ { path: 'protected-component', component: SomeProtectedComponent, canActivate: [ …
0
votes
0 answers

How to pass rbac information from angular frontend to kotlin backend in azur context

I'm going back to angular and its eco-system and in particular the lib msal. I have a standard application with an angular front end and a java back end. My front end behaves well (connection, disconnection, token renewal, ...). And I can also…
Léo
  • 132
  • 11
0
votes
0 answers

Get password after MSAL authentication

Is there any way to get the password after msal authentication using username and password. Neither ClaimsPrincipal contains any password info nor the token which we receive after successful authentication from azure ad, authenticating using angular…
vinay jain
  • 93
  • 6
0
votes
0 answers

Ionic 7 and MSAL Authentication in appbrowser cordova or capacitor?

I am working on ionic 6 with capacitor (https://capacitorjs.com/docs/apis/browser) implementing msal integration. Does it work with capacitor inappbrowser or cordova inppbrowser? As per the link Ionic and MSAL Authentication where it is mentioned…
0
votes
0 answers

Angular | Navigate to Specific Page After Azure Authentication

Details about Framework and packages. Web Application: Angular 7 microsoft-adal-angular6": "^1.3.0" "msal": "1.4.14" Multiple Pages: Home History User want to navigate from Home page to History page. Then history page open in new tab. Normally…
Umer Qureshi
  • 1,736
  • 2
  • 20
  • 22
0
votes
0 answers

How to integrate Microsoft authentication and authorization in full stack web app?

I am creating a full-stack web application using Angular and Nest.js. I want to implement Microsoft authentication with delegated access for Angular so User can sign in using Microsoft Login PopUp on SPA and then they can access custom protected…
0
votes
0 answers

External Configuration for MSAL in Angular

We are using MSALService in our frontend application written in angular to integrate AAD authentication. Currently, it is working as expected with static msal configuration, but we want to pass the msal configuration dynamically so that it can adapt…
0
votes
0 answers

How can I migrate Adal to msal authentication in Angular 15

I want to migrate Adal to msal in Angular 15. Could you please help me someone. I have try @Azure/msal library. But I am getting the error Dependencies injection .
0
votes
1 answer

The app is asking for consent twice in "app calls api" scenario

I'm using two app registrations and implement the "expose an api" scenario. My CLIENT_APP is an angular application using msal-angular library. My SERVER_APP is a .NET server that's using "Expose an API" feature and defines a scope. It also lists…
0
votes
2 answers

Redirect user to logout (sign-out) page after failing a post-sign-in function

We are using MSAL library to authenticate users by Microsoft Azure AD B2C. The following code snippet is from our implementation and it works well in terms of what it's supposed to do (login, logout,…
Arash
  • 3,628
  • 5
  • 46
  • 70