Skip to content

Support for Functional Interceptor for Angular (available since Angular 15) #7690

Open
@gigadie

Description

@gigadie

Core Library

MSAL.js (@azure/msal-browser)

Wrapper Library

MSAL Angular (@azure/msal-angular)

Public or Confidential Client?

Public

Description

Angular Team will soon remove the option to use Http Interceptors which are defined using the old class based method.
https://angular.dev/api/common/http/withInterceptorsFromDi

In favour of functional based interceptors https://angular.dev/api/common/http/HttpInterceptorFn registering them using https://angular.dev/api/common/http/withInterceptors.

Unfortunately MsalInterceptor is class based and would soon become obsolete if it's not updated to the new api.

Can you guys please release an update to support the new interceptor type?
It can even be ok to have for a period of time both versions available.

MsalInterceptor be the one that maintain support for DI,
And provide another one MsalInterceptorFunctional that can be used instead in the new context.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋Awaiting response from the MSAL.js teamfeature-unconfirmedmsal-angularRelated to @azure/msal-angular packagemsal-browserRelated to msal-browser packagepublic-clientIssues regarding PublicClientApplicationsquestionCustomer is asking for a clarification, use case or information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions