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

@azure/msal-angular

Package Overview
Dependencies
Maintainers
5
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 0.1.0 to 0.1.1

6

changelog.md

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

# 0.1.1
* Fixed AOT issue https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/386
* Upgraded to latest msal-core version 0.2.1
# 0.1.0
Preview Release

2

dist/msal-guard.service.d.ts

@@ -18,4 +18,4 @@ import { ActivatedRoute, ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from "@angular/router";

canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean | Promise<boolean>;
private getBaseUrl;
private getBaseUrl();
isEmpty: (str: any) => boolean;
}

@@ -48,3 +48,2 @@ import { Inject, Injectable } from "@angular/core";

}
//token is expired/deleted but userdata still exists in _oauthData object
else if (!this.authService._oauthData.isAuthenticated && this.authService._oauthData.userName) {

@@ -51,0 +50,0 @@ this.authService.acquireTokenSilent([this.config.clientID]).then((token) => {

import { MsalConfig } from "./msal-config";
import { ModuleWithProviders } from "@angular/core";
export declare class WindowWrapper extends Window {
}
export declare class MsalModule {
static forRoot(config: MsalConfig): ModuleWithProviders;
}

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

import { NgModule } from "@angular/core";
import { Injectable, NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";

@@ -6,2 +6,5 @@ import { MsalService, MSAL_CONFIG } from "./msal.service";

import { BroadcastService } from "./broadcast.service";
Injectable();
export class WindowWrapper extends Window {
}
export class MsalModule {

@@ -12,3 +15,3 @@ static forRoot(config) {

providers: [
{ provide: MSAL_CONFIG, useValue: config }, MsalService, { provide: Window, useValue: window }
{ provide: MSAL_CONFIG, useValue: config }, MsalService, { provide: WindowWrapper, useValue: window }
]

@@ -15,0 +18,0 @@ };

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

[{"__symbolic":"module","version":3,"metadata":{"MsalModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[],"providers":[{"__symbolic":"reference","module":"./msal-guard.service","name":"MsalGuard"},{"__symbolic":"reference","module":"./broadcast.service","name":"BroadcastService"}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"MsalModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./msal.service","name":"MSAL_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}},{"__symbolic":"reference","module":"./msal.service","name":"MsalService"},{"provide":{"__symbolic":"reference","name":"Window"},"useValue":{"__symbolic":"reference","name":"window"}}]}}}}}},{"__symbolic":"module","version":1,"metadata":{"MsalModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[],"providers":[{"__symbolic":"reference","module":"./msal-guard.service","name":"MsalGuard"},{"__symbolic":"reference","module":"./broadcast.service","name":"BroadcastService"}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"MsalModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./msal.service","name":"MSAL_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}},{"__symbolic":"reference","module":"./msal.service","name":"MsalService"},{"provide":{"__symbolic":"reference","name":"Window"},"useValue":{"__symbolic":"reference","name":"window"}}]}}}}}}]
[{"__symbolic":"module","version":3,"metadata":{"WindowWrapper":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"Window"}},"MsalModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[],"providers":[{"__symbolic":"reference","module":"./msal-guard.service","name":"MsalGuard"},{"__symbolic":"reference","module":"./broadcast.service","name":"BroadcastService"}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"MsalModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./msal.service","name":"MSAL_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}},{"__symbolic":"reference","module":"./msal.service","name":"MsalService"},{"provide":{"__symbolic":"reference","name":"WindowWrapper"},"useValue":{"__symbolic":"reference","name":"window"}}]}}}}}},{"__symbolic":"module","version":1,"metadata":{"WindowWrapper":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"Window"}},"MsalModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[],"providers":[{"__symbolic":"reference","module":"./msal-guard.service","name":"MsalGuard"},{"__symbolic":"reference","module":"./broadcast.service","name":"BroadcastService"}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"MsalModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./msal.service","name":"MSAL_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}},{"__symbolic":"reference","module":"./msal.service","name":"MsalService"},{"provide":{"__symbolic":"reference","name":"WindowWrapper"},"useValue":{"__symbolic":"reference","name":"window"}}]}}}}}}]

@@ -25,7 +25,7 @@ import { InjectionToken } from "@angular/core";

updateDataFromCache(scopes: string[]): void;
private processHash;
private processRedirectCallBack;
private isUnprotectedResource;
private isEmpty;
private authCallback;
private processHash(hash);
private processRedirectCallBack(hash);
private isUnprotectedResource(url);
private isEmpty(str);
private authCallback(errorDesc, _token, error, _tokenType);
protected clearCache(): void;

@@ -32,0 +32,0 @@ getLogger(): Logger;

@@ -90,3 +90,2 @@ import { Inject, Injectable, InjectionToken } from "@angular/core";

}
//redirect flow
else if (window.parent && window.parent.msal) {

@@ -144,3 +143,3 @@ msal = window.parent.msal;

// since this is a token renewal request in iFrame, we don't need to proceed with the location change.
if (window.parent !== window) { //in iframe
if (window.parent !== window) {
if (event && event.preventDefault) {

@@ -162,3 +161,2 @@ event.preventDefault();

}
//redirect to redirect uri. No page reload here since we are only removing the url after the hash
else {

@@ -165,0 +163,0 @@ window.location.hash = '';

@@ -13,3 +13,3 @@ {

},
"version": "0.1.0",
"version": "0.1.1",
"keywords": [

@@ -28,3 +28,3 @@ "implicit",

"dependencies": {
"msal": "0.2.0",
"msal": "0.2.1",
"tslib": "1.7.1"

@@ -31,0 +31,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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