Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azure/msal-angular

Package Overview
Dependencies
Maintainers
3
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/msal-angular - npm Package Compare versions

Comparing version 2.5.7 to 3.0.0-alpha.0

esm2020/azure-msal-angular.mjs

3

constants.d.ts

@@ -1,2 +0,2 @@

import { InjectionToken } from "@angular/core";
import { InjectionToken } from '@angular/core';
export declare const MSAL_INSTANCE: InjectionToken<string>;

@@ -6,2 +6,1 @@ export declare const MSAL_GUARD_CONFIG: InjectionToken<string>;

export declare const MSAL_BROADCAST_CONFIG: InjectionToken<string>;
//# sourceMappingURL=constants.d.ts.map

@@ -1,3 +0,3 @@

import { EndSessionRequest, AuthorizationUrlRequest, AuthenticationResult, PopupRequest, RedirectRequest, SilentRequest, Logger } from "@azure/msal-browser";
import { Observable } from "rxjs";
import { EndSessionRequest, AuthorizationUrlRequest, AuthenticationResult, PopupRequest, RedirectRequest, SilentRequest, Logger } from '@azure/msal-browser';
import { Observable } from 'rxjs';
export interface IMsalService {

@@ -16,2 +16,1 @@ initialize(): Observable<void>;

}
//# sourceMappingURL=IMsalService.d.ts.map
export declare type MsalBroadcastConfiguration = {
eventsToReplay: number;
};
//# sourceMappingURL=msal.broadcast.config.d.ts.map

@@ -1,5 +0,6 @@

import { Observable } from "rxjs";
import { EventMessage, IPublicClientApplication, InteractionStatus } from "@azure/msal-browser";
import { MsalService } from "./msal.service";
import { MsalBroadcastConfiguration } from "./msal.broadcast.config";
import { EventMessage, IPublicClientApplication, InteractionStatus } from '@azure/msal-browser';
import { Observable } from 'rxjs';
import { MsalService } from './msal.service';
import { MsalBroadcastConfiguration } from './msal.broadcast.config';
import * as i0 from "@angular/core";
export declare class MsalBroadcastService {

@@ -14,3 +15,4 @@ private msalInstance;

constructor(msalInstance: IPublicClientApplication, authService: MsalService, msalBroadcastConfig?: MsalBroadcastConfiguration);
static ɵfac: i0.ɵɵFactoryDeclaration<MsalBroadcastService, [null, null, { optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDeclaration<MsalBroadcastService>;
}
//# sourceMappingURL=msal.broadcast.service.d.ts.map

@@ -1,5 +0,5 @@

import { RouterStateSnapshot } from "@angular/router";
import { PopupRequest, RedirectRequest, InteractionType } from "@azure/msal-browser";
import { MsalService } from "./msal.service";
export declare type MsalGuardAuthRequest = Partial<PopupRequest> | Partial<Omit<RedirectRequest, "redirectStartPage">>;
import { RouterStateSnapshot } from '@angular/router';
import { PopupRequest, RedirectRequest, InteractionType } from '@azure/msal-browser';
import { MsalService } from './msal.service';
export declare type MsalGuardAuthRequest = Partial<PopupRequest> | Partial<Omit<RedirectRequest, 'redirectStartPage'>>;
export declare type MsalGuardConfiguration = {

@@ -10,2 +10,1 @@ interactionType: InteractionType.Popup | InteractionType.Redirect;

};
//# sourceMappingURL=msal.guard.config.d.ts.map

@@ -1,8 +0,9 @@

import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, CanActivateChild, CanLoad, UrlTree, Router } from "@angular/router";
import { MsalService } from "./msal.service";
import { Location } from "@angular/common";
import { MsalGuardConfiguration } from "./msal.guard.config";
import { Observable } from "rxjs";
import { MsalBroadcastService } from "./msal.broadcast.service";
export declare class MsalGuard implements CanActivate, CanActivateChild, CanLoad {
import { Location } from '@angular/common';
import { ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree, Router } from '@angular/router';
import { Observable } from 'rxjs';
import { MsalService } from './msal.service';
import { MsalGuardConfiguration } from './msal.guard.config';
import { MsalBroadcastService } from './msal.broadcast.service';
import * as i0 from "@angular/core";
export declare class MsalGuard {
private msalGuardConfig;

@@ -32,3 +33,3 @@ private msalBroadcastService;

/**
* Helper which checks for the correct interaction type, prevents page with Guard to be set as reidrect, and calls handleRedirectObservable
* Helper which checks for the correct interaction type, prevents page with Guard to be set as redirect, and calls handleRedirectObservable
* @param state

@@ -40,4 +41,5 @@ */

canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree>;
canLoad(): Observable<boolean>;
canMatch(): Observable<boolean | UrlTree>;
static ɵfac: i0.ɵɵFactoryDeclaration<MsalGuard, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<MsalGuard>;
}
//# sourceMappingURL=msal.guard.d.ts.map

@@ -1,5 +0,5 @@

import { HttpRequest } from "@angular/common/http";
import { PopupRequest, RedirectRequest, InteractionType, SilentRequest } from "@azure/msal-browser";
import { MsalService } from "./msal.service";
export declare type MsalInterceptorAuthRequest = Omit<PopupRequest, "scopes"> | Omit<RedirectRequest, "scopes"> | Omit<SilentRequest, "scopes">;
import { HttpRequest } from '@angular/common/http';
import { PopupRequest, RedirectRequest, InteractionType, SilentRequest } from '@azure/msal-browser';
import { MsalService } from './msal.service';
export declare type MsalInterceptorAuthRequest = Omit<PopupRequest, 'scopes'> | Omit<RedirectRequest, 'scopes'> | Omit<SilentRequest, 'scopes'>;
export declare type MsalInterceptorConfiguration = {

@@ -18,2 +18,1 @@ interactionType: InteractionType.Popup | InteractionType.Redirect;

};
//# sourceMappingURL=msal.interceptor.config.d.ts.map

@@ -1,7 +0,8 @@

import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from "@angular/common/http";
import { Location } from "@angular/common";
import { Observable } from "rxjs";
import { MsalService } from "./msal.service";
import { MsalInterceptorConfiguration } from "./msal.interceptor.config";
import { MsalBroadcastService } from "./msal.broadcast.service";
import { Location } from '@angular/common';
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
import { Observable } from 'rxjs';
import { MsalService } from './msal.service';
import { MsalInterceptorConfiguration } from './msal.interceptor.config';
import { MsalBroadcastService } from './msal.broadcast.service';
import * as i0 from "@angular/core";
export declare class MsalInterceptor implements HttpInterceptor {

@@ -14,3 +15,4 @@ private msalInterceptorConfig;

constructor(msalInterceptorConfig: MsalInterceptorConfiguration, authService: MsalService, location: Location, msalBroadcastService: MsalBroadcastService, document?: any);
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
intercept(req: HttpRequest<any>, // eslint-disable-line @typescript-eslint/no-explicit-any
next: HttpHandler): Observable<HttpEvent<any>>;
/**

@@ -60,3 +62,4 @@ * Try to acquire token silently. Invoke interaction if acquireTokenSilent rejected with error or resolved with null access token

private matchScopesToEndpoint;
static ɵfac: i0.ɵɵFactoryDeclaration<MsalInterceptor, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<MsalInterceptor>;
}
//# sourceMappingURL=msal.interceptor.d.ts.map

@@ -1,8 +0,13 @@

import { ModuleWithProviders } from "@angular/core";
import { IPublicClientApplication } from "@azure/msal-browser";
import { MsalGuardConfiguration } from "./msal.guard.config";
import { MsalInterceptorConfiguration } from "./msal.interceptor.config";
import { ModuleWithProviders } from '@angular/core';
import { IPublicClientApplication } from '@azure/msal-browser';
import { MsalGuardConfiguration } from './msal.guard.config';
import { MsalInterceptorConfiguration } from './msal.interceptor.config';
import * as i0 from "@angular/core";
import * as i1 from "./msal.redirect.component";
import * as i2 from "@angular/common";
export declare class MsalModule {
static forRoot(msalInstance: IPublicClientApplication, guardConfig: MsalGuardConfiguration, interceptorConfig: MsalInterceptorConfiguration): ModuleWithProviders<MsalModule>;
static ɵfac: i0.ɵɵFactoryDeclaration<MsalModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<MsalModule, [typeof i1.MsalRedirectComponent], [typeof i2.CommonModule], never>;
static ɵinj: i0.ɵɵInjectorDeclaration<MsalModule>;
}
//# sourceMappingURL=msal.module.d.ts.map

@@ -1,5 +0,6 @@

import { NavigationClient, NavigationOptions } from "@azure/msal-browser";
import { Router } from "@angular/router";
import { Location } from "@angular/common";
import { MsalService } from "./msal.service";
import { Location } from '@angular/common';
import { Router } from '@angular/router';
import { NavigationClient, NavigationOptions } from '@azure/msal-browser';
import { MsalService } from './msal.service';
import * as i0 from "@angular/core";
/**

@@ -16,3 +17,4 @@ * Custom navigation used for Angular client-side navigation.

navigateInternal(url: string, options: NavigationOptions): Promise<boolean>;
static ɵfac: i0.ɵɵFactoryDeclaration<MsalCustomNavigationClient, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<MsalCustomNavigationClient>;
}
//# sourceMappingURL=msal.navigation.client.d.ts.map

@@ -6,4 +6,5 @@ /**

*/
import { OnInit } from "@angular/core";
import { MsalService } from "./msal.service";
import { OnInit } from '@angular/core';
import { MsalService } from './msal.service';
import * as i0 from "@angular/core";
export declare class MsalRedirectComponent implements OnInit {

@@ -13,3 +14,4 @@ private authService;

ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<MsalRedirectComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MsalRedirectComponent, "app-redirect", never, {}, {}, never, never, false, never>;
}
//# sourceMappingURL=msal.redirect.component.d.ts.map

@@ -1,5 +0,6 @@

import { Location } from "@angular/common";
import { IPublicClientApplication, EndSessionRequest, EndSessionPopupRequest, AuthenticationResult, RedirectRequest, SilentRequest, PopupRequest, SsoSilentRequest, Logger } from "@azure/msal-browser";
import { Observable } from "rxjs";
import { IMsalService } from "./IMsalService";
import { Location } from '@angular/common';
import { IPublicClientApplication, EndSessionRequest, EndSessionPopupRequest, AuthenticationResult, RedirectRequest, SilentRequest, PopupRequest, SsoSilentRequest, Logger } from '@azure/msal-browser';
import { Observable } from 'rxjs';
import { IMsalService } from './IMsalService';
import * as i0 from "@angular/core";
export declare class MsalService implements IMsalService {

@@ -28,3 +29,4 @@ instance: IPublicClientApplication;

setLogger(logger: Logger): void;
static ɵfac: i0.ɵɵFactoryDeclaration<MsalService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<MsalService>;
}
//# sourceMappingURL=msal.service.d.ts.map
{
"name": "@azure/msal-angular",
"version": "2.5.7",
"version": "3.0.0-alpha.0",
"author": {

@@ -15,22 +15,33 @@ "name": "Microsoft",

"description": "Microsoft Authentication Library for Angular",
"main": "bundles/azure-msal-angular.umd.js",
"typings": "azure-msal-angular.d.ts",
"main": "./dist/bundles/azure-msal-angular.umd.js",
"typings": "index.d.ts",
"beachball": {
"disallowedChangeTypes": [
"major"
]
"disallowedChangeTypes": []
},
"peerDependencies": {
"@azure/msal-browser": "^2.37.0",
"rxjs": "^6.0.0 || ^7.0.0"
"@azure/msal-browser": "^3.0.0-alpha.0",
"rxjs": "^7.0.0"
},
"module": "fesm2015/azure-msal-angular.js",
"es2015": "fesm2015/azure-msal-angular.js",
"esm2015": "esm2015/azure-msal-angular.js",
"fesm2015": "fesm2015/azure-msal-angular.js",
"metadata": "azure-msal-angular.metadata.json",
"module": "fesm2015/azure-msal-angular.mjs",
"es2020": "fesm2020/azure-msal-angular.mjs",
"esm2020": "esm2020/azure-msal-angular.mjs",
"fesm2020": "fesm2020/azure-msal-angular.mjs",
"fesm2015": "fesm2015/azure-msal-angular.mjs",
"exports": {
"./package.json": {
"default": "./package.json"
},
".": {
"types": "./index.d.ts",
"esm2020": "./esm2020/azure-msal-angular.mjs",
"es2020": "./fesm2020/azure-msal-angular.mjs",
"es2015": "./fesm2015/azure-msal-angular.mjs",
"node": "./fesm2015/azure-msal-angular.mjs",
"default": "./fesm2020/azure-msal-angular.mjs"
}
},
"sideEffects": false,
"dependencies": {
"tslib": "^2.0.0"
"tslib": "^2.3.0"
}
}
export declare const name = "@azure/msal-angular";
export declare const version = "2.5.7";
//# sourceMappingURL=packageMetadata.d.ts.map
export declare const version = "3.0.0-alpha.0";

@@ -5,15 +5,14 @@ /**

*/
export { MsalService } from "./msal.service";
export { IMsalService } from "./IMsalService";
export { MsalGuard } from "./msal.guard";
export { MsalGuardConfiguration, MsalGuardAuthRequest } from "./msal.guard.config";
export { MsalInterceptor } from "./msal.interceptor";
export { MsalInterceptorConfiguration, MsalInterceptorAuthRequest, ProtectedResourceScopes } from "./msal.interceptor.config";
export { MSAL_INSTANCE, MSAL_GUARD_CONFIG, MSAL_INTERCEPTOR_CONFIG, MSAL_BROADCAST_CONFIG } from "./constants";
export { MsalBroadcastService } from "./msal.broadcast.service";
export { MsalBroadcastConfiguration } from "./msal.broadcast.config";
export { MsalModule } from "./msal.module";
export { MsalRedirectComponent } from "./msal.redirect.component";
export { MsalCustomNavigationClient } from "./msal.navigation.client";
export { version } from "./packageMetadata";
//# sourceMappingURL=public-api.d.ts.map
export { MsalService } from './msal.service';
export { IMsalService } from './IMsalService';
export { MsalGuard } from './msal.guard';
export { MsalGuardConfiguration, MsalGuardAuthRequest, } from './msal.guard.config';
export { MsalInterceptor } from './msal.interceptor';
export { MsalInterceptorConfiguration, MsalInterceptorAuthRequest, ProtectedResourceScopes, } from './msal.interceptor.config';
export { MSAL_INSTANCE, MSAL_GUARD_CONFIG, MSAL_INTERCEPTOR_CONFIG, MSAL_BROADCAST_CONFIG, } from './constants';
export { MsalBroadcastService } from './msal.broadcast.service';
export { MsalBroadcastConfiguration } from './msal.broadcast.config';
export { MsalModule } from './msal.module';
export { MsalRedirectComponent } from './msal.redirect.component';
export { MsalCustomNavigationClient } from './msal.navigation.client';
export { version } from './packageMetadata';

@@ -37,2 +37,3 @@ # Microsoft Authentication Library for Angular

- [Upgrade Guide (v2-v3)](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular/docs/v2-v3-upgrade-guide.md)
- [Upgrade Guide (v1-v2)](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular/docs/v2-docs/v1-v2-upgrade-guide.md)

@@ -48,5 +49,6 @@ - [Upgrade Guide (v0-v1)](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular/docs/v1-docs/v0-v1-upgrade-guide.md)

|----------------------|-------------------------|----------------------------|
| MSAL Angular v2 | Active development | 9, 10, 11, 12, 13, 14 |
| MSAL Angular v1 | Active development | 6, 7, 8, 9 |
| MSAL Angular v0 | In maintenance | 4, 5 |
| MSAL Angular v3 | Active development | 15 |
| MSAL Angular v2 | In maintenance | 9, 10, 11, 12, 13, 14 |
| MSAL Angular v1 | In maintenance | 6, 7, 8, 9 |
| MSAL Angular v0 | Out of support | 4, 5 |

@@ -87,7 +89,4 @@ ## Prerequisites

### MSAL Angular v1 Samples
* [Angular v6](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-angular-v1/samples/msal-angular-samples/angular6-sample-app)
* [Angular v7](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-angular-v1/samples/msal-angular-samples/angular7-sample-app)
* [Angular v8](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-angular-v1/samples/msal-angular-samples/angular8-sample-app)
* [Angular v9](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-angular-v1/samples/msal-angular-samples/angular9-sample-app)
### MSAL Angular v3 Samples
* [Angular v15](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-angular-v3-samples/angular15-sample-app)

@@ -114,2 +113,8 @@ ### MSAL Angular v2 Samples

### MSAL Angular v1 Samples
* [Angular v6](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-angular-v1/samples/msal-angular-samples/angular6-sample-app)
* [Angular v7](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-angular-v1/samples/msal-angular-samples/angular7-sample-app)
* [Angular v8](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-angular-v1/samples/msal-angular-samples/angular8-sample-app)
* [Angular v9](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-angular-v1/samples/msal-angular-samples/angular9-sample-app)
## Build and running tests

@@ -155,2 +160,2 @@

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc