Dynamic configuration of MSAL 2 in Angular

For my Angular (v12) application, I use MSAL for Authentication and I’m facing an issue on configuration. In configuration, I have tenantId and app Id to initialize MSAL. I cannot use the standard Angular configuration switching with environment.ts since it cannot be changed in a post build step. Instead, I try to load a json […]

HttpClient not send token in service context

I build an Angular 11 application using Msal package for security. An interceptor provided by Msal add automatically the required Authorization header with the token. But it works only when I use the HttpClient provided to a component. If I use the HttpClient injected to a service, the Authorization header is not set. Everything goes […]

By nimbusparis
Published
Categorized as angular, angular-httpclient, msal Tagged , ,

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