@azure/msal-angular
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"BroadcastService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"broadcast":[{"__symbolic":"method"}],"getMSALSubject":[{"__symbolic":"method"}],"getMSALItem":[{"__symbolic":"method"}],"subscribe":[{"__symbolic":"method"}]}},"MsalService":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"msal","name":"UserAgentApplication","line":31,"character":33},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":30,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":34,"character":9},"arguments":[{"__symbolic":"reference","name":"MSAL_CONFIG"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":35,"character":9},"arguments":[{"__symbolic":"reference","name":"MSAL_CONFIG_ANGULAR"}]}],null,null],"parameters":[{"__symbolic":"reference","module":"msal","name":"Configuration","line":34,"character":49},{"__symbolic":"reference","name":"MsalAngularConfiguration"},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":36,"character":24},{"__symbolic":"reference","name":"BroadcastService"}]}],"loginPopup":[{"__symbolic":"method"}],"ssoSilent":[{"__symbolic":"method"}],"acquireTokenSilent":[{"__symbolic":"method"}],"acquireTokenPopup":[{"__symbolic":"method"}],"handleRedirectCallback":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"clearCacheForScope":[{"__symbolic":"method"}],"getScopesForEndpoint":[{"__symbolic":"method"}]}},"MsalGuard":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":13,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":17,"character":9},"arguments":[{"__symbolic":"reference","name":"MSAL_CONFIG"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":18,"character":9},"arguments":[{"__symbolic":"reference","name":"MSAL_CONFIG_ANGULAR"}]}],null,null,null,null,null,null],"parameters":[{"__symbolic":"reference","module":"msal","name":"Configuration","line":17,"character":49},{"__symbolic":"reference","name":"MsalAngularConfiguration"},{"__symbolic":"reference","name":"MsalService"},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":20,"character":24},{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute","line":21,"character":32},{"__symbolic":"reference","module":"@angular/common","name":"Location","line":22,"character":26},{"__symbolic":"reference","module":"@angular/common","name":"PlatformLocation","line":23,"character":34},{"__symbolic":"reference","name":"BroadcastService"}]}],"getDestinationUrl":[{"__symbolic":"method"}],"loginInteractively":[{"__symbolic":"method"}],"canActivate":[{"__symbolic":"method"}]}},"MsalInterceptor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":16,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"MsalService"},{"__symbolic":"reference","name":"BroadcastService"}]}],"intercept":[{"__symbolic":"method"}]}},"MsalModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":10,"character":12}],"declarations":[],"providers":[{"__symbolic":"reference","name":"MsalGuard"},{"__symbolic":"reference","name":"BroadcastService"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config","angularConfig"],"defaults":[null,{"__symbolic":"reference","name":"ɵa"}],"value":{"ngModule":{"__symbolic":"reference","name":"MsalModule"},"providers":[{"provide":{"__symbolic":"reference","name":"MSAL_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}},{"provide":{"__symbolic":"reference","name":"MSAL_CONFIG_ANGULAR"},"useValue":{"__symbolic":"reference","name":"angularConfig"}},{"__symbolic":"reference","name":"MsalService"}]}}}},"ɵa":{"consentScopes":[],"popUp":false,"extraQueryParameters":{},"unprotectedResources":[],"protectedResourceMap":[]},"MsalAngularConfiguration":{"__symbolic":"interface"},"MSAL_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":31},"arguments":["MSAL_CONFIG"]},"MSAL_CONFIG_ANGULAR":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":39},"arguments":["MSAL_CONFIG_ANGULAR"]}},"origins":{"BroadcastService":"./src/broadcast.service","MsalService":"./src/msal.service","MsalGuard":"./src/msal-guard.service","MsalInterceptor":"./src/msal.interceptor","MsalModule":"./src/msal.module","ɵa":"./src/msal-angular.configuration","MsalAngularConfiguration":"./src/msal-angular.configuration","MSAL_CONFIG":"./src/constants","MSAL_CONFIG_ANGULAR":"./src/constants"},"importAs":"@azure/msal-angular"} | ||
{"__symbolic":"module","version":4,"metadata":{"BroadcastService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"broadcast":[{"__symbolic":"method"}],"getMSALSubject":[{"__symbolic":"method"}],"getMSALItem":[{"__symbolic":"method"}],"subscribe":[{"__symbolic":"method"}]}},"MsalService":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"msal","name":"UserAgentApplication","line":36,"character":33},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":35,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":39,"character":9},"arguments":[{"__symbolic":"reference","name":"MSAL_CONFIG"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":40,"character":9},"arguments":[{"__symbolic":"reference","name":"MSAL_CONFIG_ANGULAR"}]}],null,null],"parameters":[{"__symbolic":"reference","module":"msal","name":"Configuration","line":39,"character":49},{"__symbolic":"reference","name":"MsalAngularConfiguration"},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":41,"character":24},{"__symbolic":"reference","name":"BroadcastService"}]}],"loginPopup":[{"__symbolic":"method"}],"ssoSilent":[{"__symbolic":"method"}],"acquireTokenSilent":[{"__symbolic":"method"}],"acquireTokenPopup":[{"__symbolic":"method"}],"handleRedirectCallback":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"clearCacheForScope":[{"__symbolic":"method"}],"getScopesForEndpoint":[{"__symbolic":"method"}]}},"MsalGuard":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":18,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":22,"character":9},"arguments":[{"__symbolic":"reference","name":"MSAL_CONFIG"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":23,"character":9},"arguments":[{"__symbolic":"reference","name":"MSAL_CONFIG_ANGULAR"}]}],null,null,null,null,null,null],"parameters":[{"__symbolic":"reference","module":"msal","name":"Configuration","line":22,"character":49},{"__symbolic":"reference","name":"MsalAngularConfiguration"},{"__symbolic":"reference","name":"MsalService"},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":25,"character":24},{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute","line":26,"character":32},{"__symbolic":"reference","module":"@angular/common","name":"Location","line":27,"character":26},{"__symbolic":"reference","module":"@angular/common","name":"PlatformLocation","line":28,"character":34},{"__symbolic":"reference","name":"BroadcastService"}]}],"getDestinationUrl":[{"__symbolic":"method"}],"loginInteractively":[{"__symbolic":"method"}],"canActivate":[{"__symbolic":"method"}]}},"MsalInterceptor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":21,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"MsalService"},{"__symbolic":"reference","name":"BroadcastService"}]}],"intercept":[{"__symbolic":"method"}]}},"MsalModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":14,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":15,"character":14}],"declarations":[],"providers":[{"__symbolic":"reference","name":"MsalGuard"},{"__symbolic":"reference","name":"BroadcastService"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config","angularConfig"],"defaults":[null,{"__symbolic":"reference","name":"ɵa"}],"value":{"ngModule":{"__symbolic":"reference","name":"MsalModule"},"providers":[{"provide":{"__symbolic":"reference","name":"MSAL_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}},{"provide":{"__symbolic":"reference","name":"MSAL_CONFIG_ANGULAR"},"useValue":{"__symbolic":"reference","name":"angularConfig"}},{"__symbolic":"reference","name":"MsalService"}]}}}},"ɵa":{"consentScopes":[],"popUp":false,"extraQueryParameters":{},"unprotectedResources":[],"protectedResourceMap":[]},"MsalAngularConfiguration":{"__symbolic":"interface"},"MSAL_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":7,"character":31},"arguments":["MSAL_CONFIG"]},"MSAL_CONFIG_ANGULAR":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":8,"character":39},"arguments":["MSAL_CONFIG_ANGULAR"]}},"origins":{"BroadcastService":"./src/broadcast.service","MsalService":"./src/msal.service","MsalGuard":"./src/msal-guard.service","MsalInterceptor":"./src/msal.interceptor","MsalModule":"./src/msal.module","ɵa":"./src/msal-angular.configuration","MsalAngularConfiguration":"./src/msal-angular.configuration","MSAL_CONFIG":"./src/constants","MSAL_CONFIG_ANGULAR":"./src/constants"},"importAs":"@azure/msal-angular"} |
@@ -221,2 +221,6 @@ (function (global, factory) { | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var BroadcastService = /** @class */ (function () { | ||
@@ -247,2 +251,6 @@ function BroadcastService() { | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var MSALError = /** @class */ (function () { | ||
@@ -294,5 +302,13 @@ function MSALError(error, errorDesc, scopes) { | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var MSAL_CONFIG = new core.InjectionToken("MSAL_CONFIG"); | ||
var MSAL_CONFIG_ANGULAR = new core.InjectionToken("MSAL_CONFIG_ANGULAR"); | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var buildMsalConfig = function (config) { | ||
@@ -310,3 +326,3 @@ return __assign(__assign({}, config), { framework: __assign(__assign({}, config.framework), { isAngular: true }) }); | ||
_this.broadcastService = broadcastService; | ||
window.addEventListener("msal:popUpHashChanged", function (e) { | ||
window.addEventListener("msal:popUpHashChanged", function () { | ||
_this.getLogger().verbose("popUpHashChanged "); | ||
@@ -475,2 +491,6 @@ }); | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var MsalGuard = /** @class */ (function () { | ||
@@ -502,4 +522,6 @@ function MsalGuard(msalConfig, msalAngularConfig, authService, router, activatedRoute, location, platformLocation, broadcastService) { | ||
} | ||
// If using path location strategy, pathUrl will include the relative portion of the base path (e.g. /base/page). | ||
// Since baseUrl also includes /base, can just concatentate baseUrl + path | ||
/* | ||
* If using path location strategy, pathUrl will include the relative portion of the base path (e.g. /base/page). | ||
* Since baseUrl also includes /base, can just concatentate baseUrl + path | ||
*/ | ||
return "" + baseUrl + path; | ||
@@ -536,4 +558,6 @@ }; | ||
this.authService.getLogger().verbose("location change event from old url to new url"); | ||
// If a page with MSAL Guard is set as the redirect for acquireTokenSilent, | ||
// short-circuit to prevent redirecting or popups. | ||
/* | ||
* If a page with MSAL Guard is set as the redirect for acquireTokenSilent, | ||
* short-circuit to prevent redirecting or popups. | ||
*/ | ||
if (msal.UrlUtils.urlContainsHash(window.location.hash) && msal.WindowUtils.isInIframe()) { | ||
@@ -577,2 +601,6 @@ this.authService.getLogger().warning("redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."); | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var MsalInterceptor = /** @class */ (function () { | ||
@@ -603,5 +631,3 @@ function MsalInterceptor(auth, broadcastService) { | ||
})) | ||
.pipe(operators.mergeMap(function (nextReq) { return next.handle(nextReq); }), operators.tap(function (event) { }, // tslint:disable-line | ||
function (// tslint:disable-line | ||
err) { | ||
.pipe(operators.mergeMap(function (nextReq) { return next.handle(nextReq); }), operators.tap(function () { }, function (err) { | ||
if (err instanceof http.HttpErrorResponse && err.status === 401) { | ||
@@ -623,2 +649,6 @@ _this.auth.clearCacheForScope(token); | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var defaultMsalAngularConfiguration = { | ||
@@ -632,2 +662,6 @@ consentScopes: [], | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var MsalModule = /** @class */ (function () { | ||
@@ -634,0 +668,0 @@ function MsalModule() { |
@@ -15,3 +15,3 @@ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("msal"),require("@angular/router"),require("minimatch"),require("@angular/common"),require("@angular/common/http")):"function"==typeof define&&define.amd?define("@azure/msal-angular",["exports","@angular/core","rxjs","rxjs/operators","msal","@angular/router","minimatch","@angular/common","@angular/common/http"],t):t(((e=e||self).azure=e.azure||{},e.azure["msal-angular"]={}),e.ng.core,e.rxjs,e.rxjs.operators,e.msal,e.ng.router,e.minimatch,e.ng.common,e.ng.common.http)}(this,(function(e,t,r,o,n,a,i,c,s){"use strict"; | ||
and limitations under the License. | ||
***************************************************************************** */var u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};var l=function(){return(l=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function p(e,t,r,o){var n,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function f(e,t){return function(r,o){t(r,o,e)}}function h(e,t,r,o){return new(r||(r=Promise))((function(n,a){function i(e){try{s(o.next(e))}catch(e){a(e)}}function c(e){try{s(o.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}s((o=o.apply(e,t||[])).next())}))}function g(e,t){var r,o,n,a,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=(n=i.trys).length>0&&n[n.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var d=function(){function e(){this._msalSubject=new r.BehaviorSubject(1),this.msalItem$=this._msalSubject.asObservable()}return e.prototype.broadcast=function(e,t){this._msalSubject.next({type:e,payload:t})},e.prototype.getMSALSubject=function(){return this._msalSubject},e.prototype.getMSALItem=function(){return this.msalItem$},e.prototype.subscribe=function(e,t){return this.msalItem$.pipe(o.filter((function(t){return t.type===e})),o.map((function(e){return e.payload}))).subscribe(t)},e=p([t.Injectable()],e)}(),m=function(){function e(e,t,r){this._error="",this._errorDesc="",this._scopes="",this._error=e,t&&(this._errorDesc=t),r&&(this._scopes=r)}return Object.defineProperty(e.prototype,"error",{get:function(){return this._error},set:function(e){this._error=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorDesc",{get:function(){return this._errorDesc},set:function(e){this._errorDesc=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scopes",{get:function(){return this._scopes},set:function(e){this._scopes=e},enumerable:!0,configurable:!0}),e}(),y=new t.InjectionToken("MSAL_CONFIG"),b=new t.InjectionToken("MSAL_CONFIG_ANGULAR"),v=function(e){return l(l({},e),{framework:l(l({},e.framework),{isAngular:!0})})},S=function(e){function r(t,r,o,n){var a=e.call(this,v(t))||this;return a.msalConfig=t,a.msalAngularConfig=r,a.router=o,a.broadcastService=n,window.addEventListener("msal:popUpHashChanged",(function(e){a.getLogger().verbose("popUpHashChanged ")})),window.addEventListener("msal:popUpClosed",(function(e){var t=e.detail.split("|"),r=new m(t[0],t[1]);a.getLoginInProgress()?(n.broadcast("msal:loginFailure",r),a.setloginInProgress(!1)):a.getAcquireTokenInProgress()&&(n.broadcast("msal:acquireTokenFailure",r),a.setAcquireTokenInProgress(!1))})),a}return function(e,t){function r(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(r,e),r.prototype.loginPopup=function(t){var r=this;return e.prototype.loginPopup.call(this,t).then((function(e){return r.broadcastService.broadcast("msal:loginSuccess",e),e})).catch((function(e){throw r.broadcastService.broadcast("msal:loginFailure",e),r.getLogger().error("Error during login:\n"+e.errorMessage),e}))},r.prototype.ssoSilent=function(t){var r=this;return e.prototype.ssoSilent.call(this,t).then((function(e){return r.broadcastService.broadcast("msal:ssoSuccess",e),e})).catch((function(e){throw r.broadcastService.broadcast("msal:ssoFailure",e),r.getLogger().error("Error during login:\n"+e.errorMessage),e}))},r.prototype.acquireTokenSilent=function(t){var r=this;return e.prototype.acquireTokenSilent.call(this,t).then((function(e){return r.broadcastService.broadcast("msal:acquireTokenSuccess",e),e})).catch((function(e){throw r.broadcastService.broadcast("msal:acquireTokenFailure",e),r.getLogger().error("Error when acquiring token for scopes: "+t.scopes+" "+e),e}))},r.prototype.acquireTokenPopup=function(t){var r=this;return e.prototype.acquireTokenPopup.call(this,t).then((function(e){return r.broadcastService.broadcast("msal:acquireTokenSuccess",e),e})).catch((function(e){throw r.broadcastService.broadcast("msal:acquireTokenFailure",e),r.getLogger().error("Error when acquiring token for scopes : "+t.scopes+" "+e),e}))},r.prototype.handleRedirectCallback=function(t,r){var o=this;e.prototype.handleRedirectCallback.call(this,(function(e,n){e?(o.getAccount()?o.broadcastService.broadcast("msal:acquireTokenFailure",e):o.broadcastService.broadcast("msal:loginFailure",e),r?r(e,n.accountState):t(e,n)):n&&("id_token"===n.tokenType?o.broadcastService.broadcast("msal:loginSuccess",n):o.broadcastService.broadcast("msal:acquireTokenSuccess",n),r?t(n):t(null,n))}))},r.prototype.clearCacheForScope=function(t){return e.prototype.clearCacheForScope.call(this,t)},r.prototype.getScopesForEndpoint=function(t){(this.msalConfig.framework&&this.msalConfig.framework.unprotectedResources||this.msalAngularConfig&&this.msalAngularConfig.unprotectedResources)&&this.getLogger().info("unprotectedResources is deprecated and ignored. msalAngularConfig.protectedResourceMap now supports glob patterns");var r=this.msalConfig.framework&&this.msalConfig.framework.protectedResourceMap;r&&this.getLogger().info("msalConfig.framework.protectedResourceMap is deprecated, use msalAngularConfig.protectedResourceMap");var o=r&&r.size?r:new Map(this.msalAngularConfig.protectedResourceMap),a=Array.from(o.keys()).filter((function(e){return new i.Minimatch(e).match(t)||t.indexOf(e)>-1}));if(a.length>0){a.length>1&&(this.getLogger().warning("Multiple entries in protectedResourceMap found for resource. Using first entry."),this.getLogger().warningPii("Multiple entries found for: "+t));var c=a[0];if(c)return o.get(c)}return t.indexOf("http://")>-1||t.indexOf("https://")>-1?n.UrlUtils.getHostFromUri(t)===n.UrlUtils.getHostFromUri(e.prototype.getRedirectUri.call(this))?new Array(this.msalConfig.auth.clientId):null:new Array(this.msalConfig.auth.clientId)},r.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[y]}]},{type:void 0,decorators:[{type:t.Inject,args:[b]}]},{type:a.Router},{type:d}]},r=p([t.Injectable(),f(0,t.Inject(y)),f(1,t.Inject(b))],r)}(n.UserAgentApplication),w=function(){function e(e,t,r,o,n,a,i,c){this.msalConfig=e,this.msalAngularConfig=t,this.authService=r,this.router=o,this.activatedRoute=n,this.location=a,this.platformLocation=i,this.broadcastService=c}return e.prototype.getDestinationUrl=function(e){var t=document.getElementsByTagName("base"),r=this.location.normalize(t.length?t[0].href:window.location.origin),o=this.location.prepareExternalUrl(e);return o.startsWith("#")?r+"/"+o:""+r+e},e.prototype.loginInteractively=function(e){return h(this,void 0,void 0,(function(){var t;return g(this,(function(r){return this.msalAngularConfig.popUp?[2,this.authService.loginPopup({scopes:this.msalAngularConfig.consentScopes,extraQueryParameters:this.msalAngularConfig.extraQueryParameters}).then((function(){return!0})).catch((function(){return!1}))]:(t=this.getDestinationUrl(e),this.authService.loginRedirect({redirectStartPage:t,scopes:this.msalAngularConfig.consentScopes,extraQueryParameters:this.msalAngularConfig.extraQueryParameters}),[2])}))}))},e.prototype.canActivate=function(e,t){var r=this;return this.authService.getLogger().verbose("location change event from old url to new url"),n.UrlUtils.urlContainsHash(window.location.hash)&&n.WindowUtils.isInIframe()?(this.authService.getLogger().warning("redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."),!1):this.authService.getAccount()?this.authService.acquireTokenSilent({scopes:[this.msalConfig.auth.clientId]}).then((function(){return!0})).catch((function(e){if(n.InteractionRequiredAuthError.isInteractionRequiredError(e.errorCode))return r.authService.getLogger().info("Interaction required error in MSAL Guard, prompting for interaction."),r.loginInteractively(t.url);throw r.authService.getLogger().error("Non-interaction error in MSAL Guard: "+e.errorMessage),e})):this.loginInteractively(t.url)},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[y]}]},{type:void 0,decorators:[{type:t.Inject,args:[b]}]},{type:S},{type:a.Router},{type:a.ActivatedRoute},{type:c.Location},{type:c.PlatformLocation},{type:d}]},e=p([t.Injectable(),f(0,t.Inject(y)),f(1,t.Inject(b))],e)}(),A=function(){function e(e,t){this.auth=e,this.broadcastService=t}return e.prototype.intercept=function(e,t){var a,i=this,c=this.auth.getScopesForEndpoint(e.url);return this.auth.getLogger().verbose("Url: "+e.url+" maps to scopes: "+c),c?r.from(this.auth.acquireTokenSilent({scopes:c}).then((function(t){var r="Bearer "+(a=t.tokenType===n.ServerHashParamKeys.ID_TOKEN?t.idToken.rawIdToken:t.accessToken);return e.clone({setHeaders:{Authorization:r}})}))).pipe(o.mergeMap((function(e){return t.handle(e)})),o.tap((function(e){}),(function(e){e instanceof s.HttpErrorResponse&&401===e.status&&(i.auth.clearCacheForScope(a),i.broadcastService.broadcast("msal:notAuthorized",e.message))}))):t.handle(e)},e.ctorParameters=function(){return[{type:S},{type:d}]},e=p([t.Injectable()],e)}(),I={consentScopes:[],popUp:!1,extraQueryParameters:{},unprotectedResources:[],protectedResourceMap:[]},k=function(){function e(){}var r;return r=e,e.forRoot=function(e,t){return void 0===t&&(t=I),{ngModule:r,providers:[{provide:y,useValue:e},{provide:b,useValue:t},S]}},e=r=p([t.NgModule({imports:[c.CommonModule],declarations:[],providers:[w,d]})],e)}();e.BroadcastService=d,e.MSAL_CONFIG=y,e.MSAL_CONFIG_ANGULAR=b,e.MsalGuard=w,e.MsalInterceptor=A,e.MsalModule=k,e.MsalService=S,e.ɵa=I,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
***************************************************************************** */var u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};var l=function(){return(l=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function p(e,t,r,o){var n,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function f(e,t){return function(r,o){t(r,o,e)}}function h(e,t,r,o){return new(r||(r=Promise))((function(n,a){function i(e){try{s(o.next(e))}catch(e){a(e)}}function c(e){try{s(o.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}s((o=o.apply(e,t||[])).next())}))}function g(e,t){var r,o,n,a,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=(n=i.trys).length>0&&n[n.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var d=function(){function e(){this._msalSubject=new r.BehaviorSubject(1),this.msalItem$=this._msalSubject.asObservable()}return e.prototype.broadcast=function(e,t){this._msalSubject.next({type:e,payload:t})},e.prototype.getMSALSubject=function(){return this._msalSubject},e.prototype.getMSALItem=function(){return this.msalItem$},e.prototype.subscribe=function(e,t){return this.msalItem$.pipe(o.filter((function(t){return t.type===e})),o.map((function(e){return e.payload}))).subscribe(t)},e=p([t.Injectable()],e)}(),m=function(){function e(e,t,r){this._error="",this._errorDesc="",this._scopes="",this._error=e,t&&(this._errorDesc=t),r&&(this._scopes=r)}return Object.defineProperty(e.prototype,"error",{get:function(){return this._error},set:function(e){this._error=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorDesc",{get:function(){return this._errorDesc},set:function(e){this._errorDesc=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scopes",{get:function(){return this._scopes},set:function(e){this._scopes=e},enumerable:!0,configurable:!0}),e}(),y=new t.InjectionToken("MSAL_CONFIG"),b=new t.InjectionToken("MSAL_CONFIG_ANGULAR"),v=function(e){return l(l({},e),{framework:l(l({},e.framework),{isAngular:!0})})},S=function(e){function r(t,r,o,n){var a=e.call(this,v(t))||this;return a.msalConfig=t,a.msalAngularConfig=r,a.router=o,a.broadcastService=n,window.addEventListener("msal:popUpHashChanged",(function(){a.getLogger().verbose("popUpHashChanged ")})),window.addEventListener("msal:popUpClosed",(function(e){var t=e.detail.split("|"),r=new m(t[0],t[1]);a.getLoginInProgress()?(n.broadcast("msal:loginFailure",r),a.setloginInProgress(!1)):a.getAcquireTokenInProgress()&&(n.broadcast("msal:acquireTokenFailure",r),a.setAcquireTokenInProgress(!1))})),a}return function(e,t){function r(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(r,e),r.prototype.loginPopup=function(t){var r=this;return e.prototype.loginPopup.call(this,t).then((function(e){return r.broadcastService.broadcast("msal:loginSuccess",e),e})).catch((function(e){throw r.broadcastService.broadcast("msal:loginFailure",e),r.getLogger().error("Error during login:\n"+e.errorMessage),e}))},r.prototype.ssoSilent=function(t){var r=this;return e.prototype.ssoSilent.call(this,t).then((function(e){return r.broadcastService.broadcast("msal:ssoSuccess",e),e})).catch((function(e){throw r.broadcastService.broadcast("msal:ssoFailure",e),r.getLogger().error("Error during login:\n"+e.errorMessage),e}))},r.prototype.acquireTokenSilent=function(t){var r=this;return e.prototype.acquireTokenSilent.call(this,t).then((function(e){return r.broadcastService.broadcast("msal:acquireTokenSuccess",e),e})).catch((function(e){throw r.broadcastService.broadcast("msal:acquireTokenFailure",e),r.getLogger().error("Error when acquiring token for scopes: "+t.scopes+" "+e),e}))},r.prototype.acquireTokenPopup=function(t){var r=this;return e.prototype.acquireTokenPopup.call(this,t).then((function(e){return r.broadcastService.broadcast("msal:acquireTokenSuccess",e),e})).catch((function(e){throw r.broadcastService.broadcast("msal:acquireTokenFailure",e),r.getLogger().error("Error when acquiring token for scopes : "+t.scopes+" "+e),e}))},r.prototype.handleRedirectCallback=function(t,r){var o=this;e.prototype.handleRedirectCallback.call(this,(function(e,n){e?(o.getAccount()?o.broadcastService.broadcast("msal:acquireTokenFailure",e):o.broadcastService.broadcast("msal:loginFailure",e),r?r(e,n.accountState):t(e,n)):n&&("id_token"===n.tokenType?o.broadcastService.broadcast("msal:loginSuccess",n):o.broadcastService.broadcast("msal:acquireTokenSuccess",n),r?t(n):t(null,n))}))},r.prototype.clearCacheForScope=function(t){return e.prototype.clearCacheForScope.call(this,t)},r.prototype.getScopesForEndpoint=function(t){(this.msalConfig.framework&&this.msalConfig.framework.unprotectedResources||this.msalAngularConfig&&this.msalAngularConfig.unprotectedResources)&&this.getLogger().info("unprotectedResources is deprecated and ignored. msalAngularConfig.protectedResourceMap now supports glob patterns");var r=this.msalConfig.framework&&this.msalConfig.framework.protectedResourceMap;r&&this.getLogger().info("msalConfig.framework.protectedResourceMap is deprecated, use msalAngularConfig.protectedResourceMap");var o=r&&r.size?r:new Map(this.msalAngularConfig.protectedResourceMap),a=Array.from(o.keys()).filter((function(e){return new i.Minimatch(e).match(t)||t.indexOf(e)>-1}));if(a.length>0){a.length>1&&(this.getLogger().warning("Multiple entries in protectedResourceMap found for resource. Using first entry."),this.getLogger().warningPii("Multiple entries found for: "+t));var c=a[0];if(c)return o.get(c)}return t.indexOf("http://")>-1||t.indexOf("https://")>-1?n.UrlUtils.getHostFromUri(t)===n.UrlUtils.getHostFromUri(e.prototype.getRedirectUri.call(this))?new Array(this.msalConfig.auth.clientId):null:new Array(this.msalConfig.auth.clientId)},r.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[y]}]},{type:void 0,decorators:[{type:t.Inject,args:[b]}]},{type:a.Router},{type:d}]},r=p([t.Injectable(),f(0,t.Inject(y)),f(1,t.Inject(b))],r)}(n.UserAgentApplication),w=function(){function e(e,t,r,o,n,a,i,c){this.msalConfig=e,this.msalAngularConfig=t,this.authService=r,this.router=o,this.activatedRoute=n,this.location=a,this.platformLocation=i,this.broadcastService=c}return e.prototype.getDestinationUrl=function(e){var t=document.getElementsByTagName("base"),r=this.location.normalize(t.length?t[0].href:window.location.origin),o=this.location.prepareExternalUrl(e);return o.startsWith("#")?r+"/"+o:""+r+e},e.prototype.loginInteractively=function(e){return h(this,void 0,void 0,(function(){var t;return g(this,(function(r){return this.msalAngularConfig.popUp?[2,this.authService.loginPopup({scopes:this.msalAngularConfig.consentScopes,extraQueryParameters:this.msalAngularConfig.extraQueryParameters}).then((function(){return!0})).catch((function(){return!1}))]:(t=this.getDestinationUrl(e),this.authService.loginRedirect({redirectStartPage:t,scopes:this.msalAngularConfig.consentScopes,extraQueryParameters:this.msalAngularConfig.extraQueryParameters}),[2])}))}))},e.prototype.canActivate=function(e,t){var r=this;return this.authService.getLogger().verbose("location change event from old url to new url"),n.UrlUtils.urlContainsHash(window.location.hash)&&n.WindowUtils.isInIframe()?(this.authService.getLogger().warning("redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."),!1):this.authService.getAccount()?this.authService.acquireTokenSilent({scopes:[this.msalConfig.auth.clientId]}).then((function(){return!0})).catch((function(e){if(n.InteractionRequiredAuthError.isInteractionRequiredError(e.errorCode))return r.authService.getLogger().info("Interaction required error in MSAL Guard, prompting for interaction."),r.loginInteractively(t.url);throw r.authService.getLogger().error("Non-interaction error in MSAL Guard: "+e.errorMessage),e})):this.loginInteractively(t.url)},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[y]}]},{type:void 0,decorators:[{type:t.Inject,args:[b]}]},{type:S},{type:a.Router},{type:a.ActivatedRoute},{type:c.Location},{type:c.PlatformLocation},{type:d}]},e=p([t.Injectable(),f(0,t.Inject(y)),f(1,t.Inject(b))],e)}(),A=function(){function e(e,t){this.auth=e,this.broadcastService=t}return e.prototype.intercept=function(e,t){var a,i=this,c=this.auth.getScopesForEndpoint(e.url);return this.auth.getLogger().verbose("Url: "+e.url+" maps to scopes: "+c),c?r.from(this.auth.acquireTokenSilent({scopes:c}).then((function(t){var r="Bearer "+(a=t.tokenType===n.ServerHashParamKeys.ID_TOKEN?t.idToken.rawIdToken:t.accessToken);return e.clone({setHeaders:{Authorization:r}})}))).pipe(o.mergeMap((function(e){return t.handle(e)})),o.tap((function(){}),(function(e){e instanceof s.HttpErrorResponse&&401===e.status&&(i.auth.clearCacheForScope(a),i.broadcastService.broadcast("msal:notAuthorized",e.message))}))):t.handle(e)},e.ctorParameters=function(){return[{type:S},{type:d}]},e=p([t.Injectable()],e)}(),I={consentScopes:[],popUp:!1,extraQueryParameters:{},unprotectedResources:[],protectedResourceMap:[]},k=function(){function e(){}var r;return r=e,e.forRoot=function(e,t){return void 0===t&&(t=I),{ngModule:r,providers:[{provide:y,useValue:e},{provide:b,useValue:t},S]}},e=r=p([t.NgModule({imports:[c.CommonModule],declarations:[],providers:[w,d]})],e)}();e.BroadcastService=d,e.MSAL_CONFIG=y,e.MSAL_CONFIG_ANGULAR=b,e.MsalGuard=w,e.MsalInterceptor=A,e.MsalModule=k,e.MsalService=S,e.ɵa=I,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=azure-msal-angular.umd.min.js.map |
# Change Log - @azure/msal-angular | ||
This log was last generated on Tue, 25 Aug 2020 00:40:45 GMT and should not be manually modified. | ||
This log was last generated on Wed, 11 Nov 2020 23:33:20 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 1.1.2 | ||
Wed, 11 Nov 2020 23:33:20 GMT | ||
### Patches | ||
- Pass generic to ModuleWithProviders for MsalModule v1, set supported Angular versions to 6-9 (#2577) (janutter@microsoft.com) | ||
## 1.1.0 | ||
@@ -8,0 +16,0 @@ |
@@ -0,1 +1,5 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
import { __decorate } from "tslib"; | ||
@@ -29,2 +33,2 @@ import { Injectable } from "@angular/core"; | ||
export { BroadcastService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvYWRjYXN0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYXp1cmUvbXNhbC1hbmd1bGFyLyIsInNvdXJjZXMiOlsic3JjL2Jyb2FkY2FzdC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxlQUFlLEVBQTRCLE1BQU0sTUFBTSxDQUFDO0FBQ2pFLE9BQU8sRUFBRSxNQUFNLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFLN0MsSUFBYSxnQkFBZ0IsR0FBN0IsTUFBYSxnQkFBZ0I7SUFJekI7UUFDQyxJQUFJLENBQUMsWUFBWSxHQUFHLElBQUksZUFBZSxDQUFNLENBQUMsQ0FBQyxDQUFDO1FBQ2hELElBQUksQ0FBQyxTQUFTLEdBQUksSUFBSSxDQUFDLFlBQVksQ0FBQyxZQUFZLEVBQUUsQ0FBQztJQUNwRCxDQUFDO0lBRUQsU0FBUyxDQUFDLElBQVksRUFBRSxPQUFZO1FBQ2hDLElBQUksQ0FBQyxZQUFZLENBQUMsSUFBSSxDQUFDLEVBQUMsSUFBSSxFQUFHLE9BQU8sRUFBQyxDQUFDLENBQUM7SUFDN0MsQ0FBQztJQUVELGNBQWM7UUFDVixPQUFPLElBQUksQ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AgICBjb25zdHJ1Y3RvcigpIHtcclxuICAgICB0aGlzLl9tc2FsU3ViamVjdCA9IG5ldyBCZWhhdmlvclN1YmplY3Q8YW55PigxKTtcclxuICAgICB0aGlzLm1zYWxJdGVtJCAgPSB0aGlzLl9tc2FsU3ViamVjdC5hc09ic2VydmFibGUoKTtcclxuICAgIH1cclxuXHJcbiAgICBicm9hZGNhc3QodHlwZTogc3RyaW5nLCBwYXlsb2FkOiBhbnkpIHtcclxuICAgICAgICB0aGlzLl9tc2FsU3ViamVjdC5uZXh0KHt0eXBlICwgcGF5bG9hZH0pO1xyXG4gICAgfVxyXG5cclxuICAgIGdldE1TQUxTdWJqZWN0KCkge1xyXG4gICAgICAgIHJldHVybiB0aGlzLl9tc2FsU3ViamVjdDtcclxuICAgIH1cclxuXHJcbiAgICBnZXRNU0FMSXRlbSgpIHtcclxuICAgICAgICByZXR1cm4gdGhpcy5tc2FsSXRlbSQ7XHJcbiAgICB9XHJcblxyXG4gICAgc3Vic2NyaWJlKHR5cGU6IHN0cmluZywgY2FsbGJhY2s6IE1lc3NhZ2VDYWxsYmFjayk6IFN1YnNjcmlwdGlvbiB7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMubXNhbEl0ZW0kXHJcbiAgICAgICAgICAgIC5waXBlKFxyXG4gICAgICAgICAgICAgICAgZmlsdGVyKG1lc3NhZ2UgPT4gbWVzc2FnZS50eXBlID09PSB0eXBlKSxcclxuICAgICAgICAgICAgICAgIG1hcChtZXNzYWdlID0+IG1lc3NhZ2UucGF5bG9hZClcclxuICAgICAgICAgICAgKVxyXG4gICAgICAgICAgICAuc3Vic2NyaWJlKGNhbGxiYWNrKTtcclxuICAgIH1cclxuXHJcbn1cclxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvYWRjYXN0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYXp1cmUvbXNhbC1hbmd1bGFyLyIsInNvdX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IGJyb2FkY2FzdCh0eXBlOiBzdHJpbmcsIHBheWxvYWQ6IGFueSkge1xyXG4gICAgICAgIHRoaXMuX21zYWxTdWJqZWN0Lm5leHQoe3R5cGUgLCBwYXlsb2FkfSk7XHJcbiAgICB9XHJcblxyXG4gICAgZ2V0TVNBTFN1YmplY3QoKSB7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMuX21zYWxTdWJqZWN0O1xyXG4gICAgfVxyXG5cclxuICAgIGdldE1TQUxJdGVtKCkge1xyXG4gICAgICAgIHJldHVybiB0aGlzLm1zYWxJdGVtJDtcclxuICAgIH1cclxuXHJcbiAgICBzdWJzY3JpYmUodHlwZTogc3RyaW5nLCBjYWxsYmFjazogTWVzc2FnZUNhbGxiYWNrKTogU3Vic2NyaXB0aW9uIHtcclxuICAgICAgICByZXR1cm4gdGhpcy5tc2FsSXRlbSRcclxuICAgICAgICAgICAgLnBpcGUoXHJcbiAgICAgICAgICAgICAgICBmaWx0ZXIobWVzc2FnZSA9PiBtZXNzYWdlLnR5cGUgPT09IHR5cGUpLFxyXG4gICAgICAgICAgICAgICAgbWFwKG1lc3NhZ2UgPT4gbWVzc2FnZS5wYXlsb2FkKVxyXG4gICAgICAgICAgICApXHJcbiAgICAgICAgICAgIC5zdWJzY3JpYmUoY2FsbGJhY2spO1xyXG4gICAgfVxyXG5cclxufVxyXG4iXX0= |
@@ -0,4 +1,8 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
import { InjectionToken } from "@angular/core"; | ||
export const MSAL_CONFIG = new InjectionToken("MSAL_CONFIG"); | ||
export const MSAL_CONFIG_ANGULAR = new InjectionToken("MSAL_CONFIG_ANGULAR"); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGF6dXJlL21zYWwtYW5ndWxhci8iLCJzb3VyY2VzIjpb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qIENvcHlyaWdodCAoYykgTWljcm9zb2Z0IENvcnBvcmF0aW9uLiBBbGwgcmlnaHRzIHJlc2VydmVkLlxyXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgTUlUIExpY2Vuc2UuXHJcbiAqL1xyXG5cclxuaW1wb3J0IHsgSW5qZWN0aW9uVG9rZW4gfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xyXG5cclxuZXhwb3J0IGNvbnN0IE1TQUxfQ09ORklHID0gbmV3IEluamVjdGlvblRva2VuPHN0cmluZz4oXCJNU0FMX0NPTkZJR1wiKTtcclxuZXhwb3J0IGNvbnN0IE1TQUxfQ09ORklHX0FOR1VMQVIgPSBuZXcgSW5qZWN0aW9uVG9rZW48c3RyaW5nPihcIk1TQUxfQ09ORklHX0FOR1VMQVJcIik7XHJcbiJdfQ== |
@@ -0,1 +1,5 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
export const defaultMsalAngularConfiguration = { | ||
@@ -8,2 +12,2 @@ consentScopes: [], | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXNhbC1hbmd1bGFyLmNvbmZpZ3VyYXRpb24uanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYXp1cmUvbXNhbC1hbmd1bGFyLyIsInNvdXJjZXMiOlsic3JjL21zYWwtYW5ndWxhci5jb25maWd1cmF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFBLE1BQU0sQ0FBQyxNQUFNLCtCQUErQixHQUE4QjtJQUN0RSxhQUFhLEVBQUUsRUFBRTtJQUNqQixLQUFLLEVBQUUsS0FBSztJQUNaLG9CQUFvQixFQUFFLEVBQUU7SUFDeEIsb0JBQW9CLEVBQUUsRUFBRTtJQUN4QixvQkFBb0IsRUFBRSxFQUFFO0NBQzNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleH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UFFLEVBQUU7SUFDeEIsb0JBQW9CLEVBQUUsRUFBRTtJQUN4QixvQkFBb0IsRUFBRSxFQUFFO0NBQzNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdCBDb3Jwb3JhdGlvbi4gQWxsIHJpZ2h0cyByZXNlcnZlZC5cclxuICogTGljZW5zZWQgdW5kZXIgdGhlIE1JVCBMaWNlbnNlLlxyXG4gKi9cclxuXHJcbmV4cG9ydCB0eXBlIE1zYWxBbmd1bGFyQ29uZmlndXJhdGlvbiA9IHtcclxuICAgIGNvbnNlbnRTY29wZXM/OiBBcnJheTxzdHJpbmc+O1xyXG4gICAgcG9wVXA/OiBib29sZWFuO1xyXG4gICAgZXh0cmFRdWVyeVBhcmFtZXRlcnM/OiB7W2tleTogc3RyaW5nXTogc3RyaW5nfTtcclxuICAgIHVucHJvdGVjdGVkUmVzb3VyY2VzPzogc3RyaW5nW107XHJcbiAgICBwcm90ZWN0ZWRSZXNvdXJjZU1hcD86IFtzdHJpbmcsIHN0cmluZ1tdXVtdIHwgTWFwPHN0cmluZywgQXJyYXk8c3RyaW5nPj5cclxufTtcclxuXHJcbmV4cG9ydCBjb25zdCBkZWZhdWx0TXNhbEFuZ3VsYXJDb25maWd1cmF0aW9uIDogTXNhbEFuZ3VsYXJDb25maWd1cmF0aW9uID0ge1xyXG4gICAgY29uc2VudFNjb3BlczogW10sXHJcbiAgICBwb3BVcDogZmFsc2UsXHJcbiAgICBleHRyYVF1ZXJ5UGFyYW1ldGVyczoge30sXHJcbiAgICB1bnByb3RlY3RlZFJlc291cmNlczogW10sXHJcbiAgICBwcm90ZWN0ZWRSZXNvdXJjZU1hcDogW11cclxufTtcclxuIl19 |
@@ -0,1 +1,5 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
import { __awaiter, __decorate, __param } from "tslib"; | ||
@@ -35,4 +39,6 @@ import { Inject, Injectable } from "@angular/core"; | ||
} | ||
// If using path location strategy, pathUrl will include the relative portion of the base path (e.g. /base/page). | ||
// Since baseUrl also includes /base, can just concatentate baseUrl + path | ||
/* | ||
* If using path location strategy, pathUrl will include the relative portion of the base path (e.g. /base/page). | ||
* Since baseUrl also includes /base, can just concatentate baseUrl + path | ||
*/ | ||
return `${baseUrl}${path}`; | ||
@@ -64,4 +70,6 @@ } | ||
this.authService.getLogger().verbose("location change event from old url to new url"); | ||
// If a page with MSAL Guard is set as the redirect for acquireTokenSilent, | ||
// short-circuit to prevent redirecting or popups. | ||
/* | ||
* If a page with MSAL Guard is set as the redirect for acquireTokenSilent, | ||
* short-circuit to prevent redirecting or popups. | ||
*/ | ||
if (UrlUtils.urlContainsHash(window.location.hash) && WindowUtils.isInIframe()) { | ||
@@ -80,3 +88,3 @@ this.authService.getLogger().warning("redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."); | ||
if (InteractionRequiredAuthError.isInteractionRequiredError(error.errorCode)) { | ||
this.authService.getLogger().info(`Interaction required error in MSAL Guard, prompting for interaction.`); | ||
this.authService.getLogger().info("Interaction required error in MSAL Guard, prompting for interaction."); | ||
return this.loginInteractively(state.url); | ||
@@ -105,2 +113,2 @@ } | ||
export { MsalGuard }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXNhbC1ndWFyZC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGF6dXJlL21zYWwtYW5ndWxhci8iLCJzb3VyY2VzIjpbInNyYy9tc2FsLWd1YXJkLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFDSCxjQUFjLEVBQ2Qsc0JBQXNCLEVBQUUsV0FBVyxFQUFFLE1BQ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BTCBHdWFyZCwgcHJvbXB0aW5nIGZvciBpbnRlcmFjdGlvbi5cIik7XHJcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMubG9naW5JbnRlcmFjdGl2ZWx5KHN0YXRlLnVybCk7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgdGhpcy5hdXRoU2VydmljZS5nZXRMb2dnZXIoKS5lcnJvcihgTm9uLWludGVyYWN0aW9uIGVycm9yIGluIE1TQUwgR3VhcmQ6ICR7ZXJyb3IuZXJyb3JNZXNzYWdlfWApO1xyXG4gICAgICAgICAgICAgICAgdGhyb3cgZXJyb3I7XHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgfVxyXG5cclxufVxyXG4iXX0= |
@@ -0,1 +1,5 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
import { __decorate } from "tslib"; | ||
@@ -33,5 +37,3 @@ import { Injectable } from "@angular/core"; | ||
})) | ||
.pipe(mergeMap(nextReq => next.handle(nextReq)), tap(event => { }, // tslint:disable-line | ||
// tslint:disable-line | ||
err => { | ||
.pipe(mergeMap(nextReq => next.handle(nextReq)), tap(() => { }, err => { | ||
if (err instanceof HttpErrorResponse && err.status === 401) { | ||
@@ -52,2 +54,2 @@ this.auth.clearCacheForScope(token); | ||
export { MsalInterceptor }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXNhbC5pbnRlcmNlcHRvci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhenVyZS9tc2FsLWFuZ3VsYXIvIiwic291cmNlcyI6WyJzcmMvbXNhbC5pbnRlcmNlcHRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBS0gsaUJBQWlCLEVBQ3BCLE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RwRXZlbnQ8YW55Pj4ge1xyXG4gICAgICAgIGNvbnN0IHNjb3BlcyA9IHRoaXMuYXV0aC5nZXRTY29wZXNGb3JFbmRwb2ludChyZXEudXJsKTtcclxuICAgICAgICB0aGlzLmF1dGguZ2V0TG9nZ2VyKCkudmVyYm9zZShcIlVybDogXCIgKyByZXEudXJsICsgXCIgbWFwcyB0byBzY29wZXM6IFwiICsgc2NvcGVzKTtcclxuXHJcbiAgICAgICAgLy8gSWYgdGhlcmUgYXJlIG5vIHNjb3BlcyBzZXQgZm9yIHRoaXMgcmVxdWVzdCwgZG8gbm90aGluZy5cclxuICAgICAgICBpZiAoIXNjb3Blcykge1xyXG4gICAgICAgICAgICByZXR1cm4gbmV4dC5oYW5kbGUocmVxKTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGxldCB0b2tlbjogc3RyaW5nO1xyXG5cclxuICAgICAgICAvLyBBY3F1aXJlIGEgdG9rZW4gZm9yIHRoaXMgcmVxdWVzdCwgYW5kIGF0dGFjaCBhcyBwcm9wZXIgYXV0aCBoZWFkZXIuXHJcbiAgICAgICAgcmV0dXJuIGZyb20oXHJcbiAgICAgICAgICAgIHRoaXMuYXV0aC5hY3F1aXJlVG9rZW5TaWxlbnQoeyBzY29wZXMgfSlcclxuICAgICAgICAgICAgICAgIC50aGVuKChyZXNwb25zZTogQXV0aFJlc3BvbnNlKSA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgdG9rZW4gPSByZXNwb25zZS50b2tlblR5cGUgPT09IFNlcnZlckhhc2hQYXJhbUtleXMuSURfVE9LRU4gPyByZXNwb25zZS5pZFRva2VuLnJhd0lkVG9rZW4gOiByZXNwb25zZS5hY2Nlc3NUb2tlbjtcclxuICAgICAgICAgICAgICAgICAgICBjb25zdCBhdXRoSGVhZGVyID0gYEJlYXJlciAke3Rva2VufWA7XHJcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJlcS5jbG9uZSh7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHNldEhlYWRlcnM6IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF1dGhvcml6YXRpb246IGF1dGhIZWFkZXIsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgICAgIH0pXHJcbiAgICAgICAgKVxyXG4gICAgICAgIC5waXBlKFxyXG4gICAgICAgICAgICBtZXJnZU1hcChuZXh0UmVxID0+IG5leHQuaGFuZGxlKG5leHRSZXEpKSxcclxuICAgICAgICAgICAgdGFwKFxyXG4gICAgICAgICAgICAgICAgZXZlbnQgPT4ge30sIC8vIHRzbGludDpkaXNhYmxlLWxpbmVcclxuICAgICAgICAgICAgICAgIGVyciA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKGVyciBpbnN0YW5jZW9mIEh0dHBFcnJvclJlc3BvbnNlICYmIGVyci5zdGF0dXMgPT09IDQwMSkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmF1dGguY2xlYXJDYWNoZUZvclNjb3BlKHRva2VuKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5icm9hZGNhc3RTZXJ2aWNlLmJyb2FkY2FzdChcIm1zYWw6bm90QXV0aG9yaXplZFwiLCBlcnIubWVzc2FnZSk7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICApXHJcbiAgICAgICAgKTtcclxuICAgIH1cclxufVxyXG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXNhbC5pbnRlcmNlcHRvci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhenVyZS9tc2FsLWFuZ3VsYXIvIiwic291cmNlcyI6WyJzcmMvbXNhbC5pbnRlcmNlcHRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7O0FBRU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HJlc3BvbnNlLmlkVG9rZW4ucmF3SWRUb2tlbiA6IHJlc3BvbnNlLmFjY2Vzc1Rva2VuO1xyXG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGF1dGhIZWFkZXIgPSBgQmVhcmVyICR7dG9rZW59YDtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmVxLmNsb25lKHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgc2V0SGVhZGVyczoge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgQXV0aG9yaXphdGlvbjogYXV0aEhlYWRlcixcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICApXHJcbiAgICAgICAgICAgIC5waXBlKFxyXG4gICAgICAgICAgICAgICAgbWVyZ2VNYXAobmV4dFJlcSA9PiBuZXh0LmhhbmRsZShuZXh0UmVxKSksXHJcbiAgICAgICAgICAgICAgICB0YXAoXHJcbiAgICAgICAgICAgICAgICAgICAgKCkgPT4ge30sXHJcbiAgICAgICAgICAgICAgICAgICAgZXJyID0+IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGVyciBpbnN0YW5jZW9mIEh0dHBFcnJvclJlc3BvbnNlICYmIGVyci5zdGF0dXMgPT09IDQwMSkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5hdXRoLmNsZWFyQ2FjaGVGb3JTY29wZSh0b2tlbik7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmJyb2FkY2FzdFNlcnZpY2UuYnJvYWRjYXN0KFwibXNhbDpub3RBdXRob3JpemVkXCIsIGVyci5tZXNzYWdlKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIClcclxuICAgICAgICAgICAgKTtcclxuICAgIH1cclxufVxyXG4iXX0= |
@@ -0,1 +1,5 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var MsalModule_1; | ||
@@ -36,2 +40,2 @@ import { __decorate } from "tslib"; | ||
export { MsalModule }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXNhbC5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYXp1cmUvbXNhbC1hbmd1bGFyLyIsInNvdXJjZXMiOlsic3JjL21zYWwubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxFQUFtQyxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUUsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM3QyxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDakQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFFdkQsT0FBTyxFQUE0QiwrQkFBK0IsRUFBRSxNQUFNLDhCQUE4QixDQUFDO0FBQ3pHLE9BQU8sRUFBRSxXQUFXLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFTL0QsSUFBYSxVQUFVLGtCQUF2QixNQUFhLFVBQVU7SUFDcEIsTUFBTSxDQUFDLE9BQU8sQ0FDVixNQUFxQixFQUNyQixnQkFBMEMsK0JBQStCO1FBRTVFLE9BQU87WUFDTCxRQUFRLEVBQUUsWUFBVTtZQUNwQixTQUFTLEVBQUU7Z0JBQ1Q7b0JBQ0ksT0FBTyxFQUFFLFdBQVc7b0JBQ3BCLFFBQVEsRUFBRSxNQUFNO2lCQUNuQjtnQkFDRDtvQkFDSSxPQUFPLEVBQUUsbU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dNb2R1bGUoe1xyXG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdLFxyXG4gICAgZGVjbGFyYXRpb25zOiBbXHJcblxyXG4gICAgXSxcclxuICBwcm92aWRlcnM6IFtNc2FsR3VhcmQsIEJyb2FkY2FzdFNlcnZpY2VdLFxyXG59KVxyXG5leHBvcnQgY2xhc3MgTXNhbE1vZHVsZSB7XHJcbiAgIHN0YXRpYyBmb3JSb290KFxyXG4gICAgICAgY29uZmlnOiBDb25maWd1cmF0aW9uLFxyXG4gICAgICAgYW5ndWxhckNvbmZpZzogTXNhbEFuZ3VsYXJDb25maWd1cmF0aW9uID0gZGVmYXVsdE1zYWxBbmd1bGFyQ29uZmlndXJhdGlvblxyXG4gICAgKTogTW9kdWxlV2l0aFByb3ZpZGVycyB7XHJcbiAgICByZXR1cm4ge1xyXG4gICAgICBuZ01vZHVsZTogTXNhbE1vZHVsZSxcclxuICAgICAgcHJvdmlkZXJzOiBbXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgICBwcm92aWRlOiBNU0FMX0NPTkZJRyxcclxuICAgICAgICAgICAgdXNlVmFsdWU6IGNvbmZpZ1xyXG4gICAgICAgIH0sXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgICBwcm92aWRlOiBNU0FMX0NPTkZJR19BTkdVTEFSLFxyXG4gICAgICAgICAgICB1c2VWYWx1ZTogYW5ndWxhckNvbmZpZ1xyXG4gICAgICAgIH0sXHJcbiAgICAgICAgTXNhbFNlcnZpY2VcclxuICAgICAgXVxyXG4gICAgfTtcclxuICB9XHJcblxyXG59XHJcblxyXG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXNhbC5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYXp1cmUvbXNhbC1hbmd1bGFyLyIsInNvdXJjZXMiOlsic3JjL21zYWwubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU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bE1vZHVsZSB7XHJcbiAgICBzdGF0aWMgZm9yUm9vdChcclxuICAgICAgICBjb25maWc6IENvbmZpZ3VyYXRpb24sXHJcbiAgICAgICAgYW5ndWxhckNvbmZpZzogTXNhbEFuZ3VsYXJDb25maWd1cmF0aW9uID0gZGVmYXVsdE1zYWxBbmd1bGFyQ29uZmlndXJhdGlvblxyXG4gICAgKTogTW9kdWxlV2l0aFByb3ZpZGVyczxNc2FsTW9kdWxlPiB7XHJcbiAgICAgICAgcmV0dXJuIHtcclxuICAgICAgICAgICAgbmdNb2R1bGU6IE1zYWxNb2R1bGUsXHJcbiAgICAgICAgICAgIHByb3ZpZGVyczogW1xyXG4gICAgICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgICAgIHByb3ZpZGU6IE1TQUxfQ09ORklHLFxyXG4gICAgICAgICAgICAgICAgICAgIHVzZVZhbHVlOiBjb25maWdcclxuICAgICAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgICAgICB7XHJcbiAgICAgICAgICAgICAgICAgICAgcHJvdmlkZTogTVNBTF9DT05GSUdfQU5HVUxBUixcclxuICAgICAgICAgICAgICAgICAgICB1c2VWYWx1ZTogYW5ndWxhckNvbmZpZ1xyXG4gICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgICAgIE1zYWxTZXJ2aWNlXHJcbiAgICAgICAgICAgIF1cclxuICAgICAgICB9O1xyXG4gICAgfVxyXG5cclxufVxyXG5cclxuIl19 |
@@ -0,1 +1,5 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
import { __decorate, __param } from "tslib"; | ||
@@ -20,8 +24,8 @@ import { Inject, Injectable } from "@angular/core"; | ||
this.broadcastService = broadcastService; | ||
window.addEventListener("msal:popUpHashChanged", (e) => { | ||
window.addEventListener("msal:popUpHashChanged", () => { | ||
this.getLogger().verbose("popUpHashChanged "); | ||
}); | ||
window.addEventListener("msal:popUpClosed", (e) => { | ||
var errorParts = e.detail.split("|"); | ||
var msalError = new MSALError(errorParts[0], errorParts[1]); | ||
const errorParts = e.detail.split("|"); | ||
const msalError = new MSALError(errorParts[0], errorParts[1]); | ||
if (this.getLoginInProgress()) { | ||
@@ -179,2 +183,2 @@ broadcastService.broadcast("msal:loginFailure", msalError); | ||
export { ɵ0 }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXNhbC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGF6dXJlL21zYWwtYW5ndWxhci8iLCJzb3VyY2VzIjpbInNyYy9tc2FsLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFDSCxvQkFBb0IsRUFRcEIsUUFBUSxFQUNYLE1BQU0sTUFBTSxDQUFDO0FBQ2QsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3pDLE9BQU8sRUFBQyxnQkFBZ0IsRUFBQyxNQUFNLHFCQUFxQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFFeEMsT0FBTyxFQUFFLFdBQVcsRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUUvRCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBRXRDLE1BQU0sZUFBZSxHQUFHLENBQUMsTUFBcUIsRUFBa0IsRUFBRTtJQUM5RCx1Q0FDTyxNQUFNLEtBQ1QsU0FBUyxrQ0FDRixNQUFNLENBQUMsU0FBUyxLQUNuQixTQUFTLEVBQUUsSUFBSSxPQUVyQjtBQUNOLENBQUMsQ0FBQzs7QUFHRixJQUFhLFdBQVcsR0FBeEIsTUFBYSxXQU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ChhdXRoUmVzcG9uc2UudG9rZW5UeXBlID09PSBcImlkX3Rva2VuXCIpIHtcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmJyb2FkY2FzdFNlcnZpY2UuYnJvYWRjYXN0KFwibXNhbDpsb2dpblN1Y2Nlc3NcIiwgYXV0aFJlc3BvbnNlKTtcclxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5icm9hZGNhc3RTZXJ2aWNlLmJyb2FkY2FzdChcIm1zYWw6YWNxdWlyZVRva2VuU3VjY2Vzc1wiLCBhdXRoUmVzcG9uc2UpO1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgIGlmIChlcnJvclJlY2VpdmVkQ2FsbGJhY2spIHtcclxuICAgICAgICAgICAgICAgICAgICAoYXV0aE9yVG9rZW5DYWxsYmFjayBhcyB0b2tlblJlY2VpdmVkQ2FsbGJhY2spKGF1dGhSZXNwb25zZSk7XHJcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgICAgIChhdXRoT3JUb2tlbkNhbGxiYWNrIGFzIGF1dGhSZXNwb25zZUNhbGxiYWNrKShudWxsLCBhdXRoUmVzcG9uc2UpO1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBjbGVhckNhY2hlRm9yU2NvcGUoYWNjZXNzVG9rZW46IHN0cmluZykge1xyXG4gICAgICAgIHJldHVybiBzdXBlci5jbGVhckNhY2hlRm9yU2NvcGUoYWNjZXNzVG9rZW4pO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBnZXRTY29wZXNGb3JFbmRwb2ludChlbmRwb2ludDogc3RyaW5nKSA6IEFycmF5PHN0cmluZz4ge1xyXG4gICAgICAgIGlmICgodGhpcy5tc2FsQ29uZmlnLmZyYW1ld29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BvaW50QXJyYXlbMF07XHJcbiAgICAgICAgICAgIGlmIChrZXlGb3JFbmRwb2ludCkge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHByb3RlY3RlZFJlc291cmNlTWFwLmdldChrZXlGb3JFbmRwb2ludCk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9IFxyXG5cclxuICAgICAgICAvKlxyXG4gICAgICAgICAqIGRlZmF1bHQgcmVzb3VyY2Ugd2lsbCBiZSBjbGllbnRpZCBpZiBub3RoaW5nIHNwZWNpZmllZFxyXG4gICAgICAgICAqIEFwcCB3aWxsIHVzZSBpZHRva2VuIGZvciBjYWxscyB0byBpdHNlbGZcclxuICAgICAgICAgKiBjaGVjayBpZiBpdCdzIHN0YXJpbmcgZnJvbSBodHRwIG9yIGh0dHBzLCBuZWVkcyB0byBtYXRjaCB3aXRoIGFwcCBob3N0XHJcbiAgICAgICAgICovXHJcbiAgICAgICAgaWYgKGVuZHBvaW50LmluZGV4T2YoXCJodHRwOi8vXCIpID4gLTEgfHwgZW5kcG9pbnQuaW5kZXhPZihcImh0dHBzOi8vXCIpID4gLTEpIHtcclxuICAgICAgICAgICAgaWYgKFVybFV0aWxzLmdldEhvc3RGcm9tVXJpKGVuZHBvaW50KSA9PT0gVXJsVXRpbHMuZ2V0SG9zdEZyb21Vcmkoc3VwZXIuZ2V0UmVkaXJlY3RVcmkoKSkpIHtcclxuICAgICAgICAgICAgICAgIHJldHVybiBuZXcgQXJyYXk8c3RyaW5nPih0aGlzLm1zYWxDb25maWcuYXV0aC5jbGllbnRJZCk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAvKlxyXG4gICAgICAgICAgICAgKiBpbiBhbmd1bGFyIGxldmVsLCB0aGUgdXJsIGZvciAkaHR0cCBpbnRlcmNlcHRvciBjYWxsIGNvdWxkIGJlIHJlbGF0aXZlIHVybCxcclxuICAgICAgICAgICAgICogaWYgaXQncyByZWxhdGl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WxsYmFjaykge1xyXG4gICAgICAgICAgICAgICAgICAgIGVycm9yUmVjZWl2ZWRDYWxsYmFjayhhdXRoRXJyb3IsIGF1dGhSZXNwb25zZS5hY2NvdW50U3RhdGUpO1xyXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICAoYXV0aE9yVG9rZW5DYWxsYmFjayBhcyBhdXRoUmVzcG9uc2VDYWxsYmFjaykoYXV0aEVycm9yLCBhdXRoUmVzcG9uc2UpO1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgfSBlbHNlIGlmIChhdXRoUmVzcG9uc2UpIHtcclxuICAgICAgICAgICAgICAgIGlmIChhdXRoUmVzcG9uc2UudG9rZW5UeXBlID09PSBcImlkX3Rva2VuXCIpIHtcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmJyb2FkY2FzdFNlcnZpY2UuYnJvYWRjYXN0KFwibXNhbDpsb2dpblN1Y2Nlc3NcIiwgYXV0aFJlc3BvbnNlKTtcclxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5icm9hZGNhc3RTZXJ2aWNlLmJyb2FkY2FzdChcIm1zYWw6YWNxdWlyZVRva2VuU3VjY2Vzc1wiLCBhdXRoUmVzcG9uc2UpO1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgIGlmIChlcnJvclJlY2VpdmVkQ2FsbGJhY2spIHtcclxuICAgICAgICAgICAgICAgICAgICAoYXV0aE9yVG9rZW5DYWxsYmFjayBhcyB0b2tlblJlY2VpdmVkQ2FsbGJhY2spKGF1dGhSZXNwb25zZSk7XHJcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgICAgIChhdXRoT3JUb2tlbkNhbGxiYWNrIGFzIGF1dGhSZXNwb25zZUNhbGxiYWNrKShudWxsLCBhdXRoUmVzcG9uc2UpO1xyXG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md0aCA+IDEpIHtcclxuICAgICAgICAgICAgICAgIHRoaXMuZ2V0TG9nZ2VyKCkud2FybmluZyhcIk11bHRpcGxlIGVudHJpZXMgaW4gcHJvdGVjdGVkUmVzb3VyY2VNYXAgZm91bmQgZm9yIHJlc291cmNlLiBVc2luZyBmaXJzdCBlbnRyeS5cIik7XHJcbiAgICAgICAgICAgICAgICB0aGlzLmdldExvZ2dlcigpLndhcm5pbmdQaWkoYE11bHRpcGxlIGVudHJpZXMgZm91bmQgZm9yOiAke2VuZHBvaW50fWApO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIGNvbnN0IGtleUZvckVuZHBvaW50ID0ga2V5TWF0Y2hlc0VuZHBvaW50QXJyYXlbMF07XHJcbiAgICAgICAgICAgIGlmIChrZXlGb3JFbmRwb2ludCkge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHByb3RlY3RlZFJlc291cmNlTWFwLmdldChrZXlGb3JFbmRwb2ludCk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9IFxyXG5cclxuICAgICAgICAvKlxyXG4gICAgICAgICAqIGRlZmF1bHQgcmVzb3VyY2Ugd2lsbCBiZSBjbGllbnRpZCBpZiBub3RoaW5nIHNwZWNpZmllZFxyXG4gICAgICAgICAqIEFwcCB3aWxsIHVzZSBpZHRva2VuIGZvciBjYWxscyB0byBpdHNlbGZcclxuICAgICAgICAgKiBjaGVjayBpZiBpdCdzIHN0YXJpbmcgZnJvbSBodHRwIG9yIGh0dHBzLCBuZWVkcyB0byBtYXRjaCB3aXRoIGFwcCBob3N0XHJcbiAgICAgICAgICovXHJcbiAgICAgICAgaWYgKGVuZHBvaW50LmluZGV4T2YoXCJodHRwOi8vXCIpID4gLTEgfHwgZW5kcG9pbnQuaW5kZXhPZihcImh0dHBzOi8vXCIpID4gLTEpIHtcclxuICAgICAgICAgICAgaWYgKFVybFV0aWxzLmdldEhvc3RGcm9tVXJpKGVuZHBvaW50KSA9PT0gVXJsVXRpbHMuZ2V0SG9zdEZyb21Vcmkoc3VwZXIuZ2V0UmVkaXJlY3RVcmkoKSkpIHtcclxuICAgICAgICAgICAgICAgIHJldHVybiBuZXcgQXJyYXk8c3RyaW5nPih0aGlzLm1zYWxDb25maWcuYXV0aC5jbGllbnRJZCk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAvKlxyXG4gICAgICAgICAgICAgKiBpbiBhbmd1bGFyIGxldmVsLCB0aGUgdXJsIGZvciAkaHR0cCBpbnRlcmNlcHRvciBjYWxsIGNvdWxkIGJlIHJlbGF0aXZlIHVybCxcclxuICAgICAgICAgICAgICogaWYgaXQncyByZWxhdGl2ZSBjYWxsLCB3ZSdsbCB0cmVhdCBpdCBhcyBhcHAgYmFja2VuZCBjYWxsLlxyXG4gICAgICAgICAgICAgKi9cclxuICAgICAgICAgICAgcmV0dXJuIG5ldyBBcnJheTxzdHJpbmc+KHRoaXMubXNhbENvbmZpZy5hdXRoLmNsaWVudElkKTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIC8vIGlmIG5vdCB0aGUgYXBwJ3Mgb3duIGJhY2tlbmQgb3Igbm90IGEgZG9tYWluIGxpc3RlZCBpbiB0aGUgZW5kcG9pbnRzIHN0cnVjdHVyZVxyXG4gICAgICAgIHJldHVybiBudWxsO1xyXG4gICAgfVxyXG59XHJcbiJdfQ== |
@@ -0,1 +1,5 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
export class MSALError { | ||
@@ -33,2 +37,2 @@ constructor(error, errorDesc, scopes) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTVNBTEVycm9yLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGF6dXJlL21zYWwtYW5ndWxhci8iLCJzb3VyY2VzIjpbInNyYy9NU0FMRXJyb3IudHMiXSwibmFtZXMiOlt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uICAgIHByaXZhdGUgX2Vycm9yRGVzYzogc3RyaW5nID0gXCJcIjtcclxuICAgIHByaXZhdGUgX3Njb3Blczogc3RyaW5nID0gXCJcIjtcclxuXHJcblxyXG4gICAgY29uc3RydWN0b3IoZXJyb3I6IHN0cmluZyAsIGVycm9yRGVzYz86IHN0cmluZywgc2NvcGVzPzogc3RyaW5nKSB7XHJcbiAgICAgICAgdGhpcy5fZXJyb3IgPSBlcnJvcjtcclxuICAgICAgICBpZiAoZXJyb3JEZXNjKSB7XHJcbiAgICAgICAgICAgIHRoaXMuX2Vycm9yRGVzYyA9IGVycm9yRGVzYztcclxuICAgICAgICB9XHJcbiAgICAgICAgaWYgKHNjb3Blcykge1xyXG4gICAgICAgICAgICB0aGlzLl9zY29wZXMgPSBzY29wZXM7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIGdldCBlcnJvcigpOiBzdHJpbmcge1xyXG4gICAgICAgIHJldHVybiB0aGlzLl9lcnJvcjtcclxuICAgIH1cclxuXHJcbiAgICBzZXQgZXJyb3IodmFsdWU6IHN0cmluZykge1xyXG4gICAgICAgIHRoaXMuX2Vycm9yID0gdmFsdWU7XHJcbiAgICB9XHJcblxyXG4gICAgZ2V0IGVycm9yRGVzYygpOiBzdHJpbmcge1xyXG4gICAgICAgIHJldHVybiB0aGlzLl9lcnJvckRlc2M7XHJcbiAgICB9XHJcblxyXG4gICAgc2V0IGVycm9yRGVzYyh2YWx1ZTogc3RyaW5nKSB7XHJcbiAgICAgICAgdGhpcy5fZXJyb3JEZXNjID0gdmFsdWU7XHJcbiAgICB9XHJcblxyXG4gICAgZ2V0IHNjb3BlcygpOiBzdHJpbmcge1xyXG4gICAgICAgIHJldHVybiB0aGlzLl9zY29wZXM7XHJcbiAgICB9XHJcblxyXG4gICAgc2V0IHNjb3Blcyh2YWx1ZTogc3RyaW5nKSB7XHJcbiAgICAgICAgdGhpcy5fc2NvcGVzID0gdmFsdWU7XHJcbiAgICB9XHJcbn1ccl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cm4gdGhpcy5fZXJyb3JEZXNjO1xyXG4gICAgfVxyXG5cclxuICAgIHNldCBlcnJvckRlc2ModmFsdWU6IHN0cmluZykge1xyXG4gICAgICAgIHRoaXMuX2Vycm9yRGVzYyA9IHZhbHVlO1xyXG4gICAgfVxyXG5cclxuICAgIGdldCBzY29wZXMoKTogc3RyaW5nIHtcclxuICAgICAgICByZXR1cm4gdGhpcy5fc2NvcGVzO1xyXG4gICAgfVxyXG5cclxuICAgIHNldCBzY29wZXModmFsdWU6IHN0cmluZykge1xyXG4gICAgICAgIHRoaXMuX3Njb3BlcyA9IHZhbHVlO1xyXG4gICAgfVxyXG59XHJcbiJdfQ== |
@@ -0,1 +1,5 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
import { __decorate } from "tslib"; | ||
@@ -30,2 +34,2 @@ import { Injectable } from "@angular/core"; | ||
export { BroadcastService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvYWRjYXN0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYXp1cmUvbXNhbC1hbmd1bGFyLyIsInNvdXJjZXMiOlsic3JjL2Jyb2FkY2FzdC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxlQUFlLEVBQTRCLE1BQU0sTUFBTSxDQUFDO0FBQ2pFLE9BQU8sRUFBRSxNQUFNLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFLN0M7SUFJSTtRQUNDLElBQUksQ0FBQyxZQUFZLEdBQUcsSUFBSSxlQUFlLENBQU0sQ0FBQyxDQUFDLENBQUM7UUFDaEQsSUFBSSxDQUFDLFNBQVMsR0FBSSxJQUFJLENBQUMsWUFB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KGNhbGxiYWNrKTtcclxuICAgIH1cclxuXHJcbn1cclxuIl19 |
@@ -0,4 +1,8 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
import { InjectionToken } from "@angular/core"; | ||
export var MSAL_CONFIG = new InjectionToken("MSAL_CONFIG"); | ||
export var MSAL_CONFIG_ANGULAR = new InjectionToken("MSAL_CONFIG_ANGULAR"); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGF6dXJlL21zYWwtYW5ndWxhci8iLCJzb3VyY2VzIjpbInNyYy9jb25zdGFudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUvQyxNQUFNLENBQUMsSUFBTSxXQUFXLEdBQUcsSUFBSSxjQUFjLENBQVMsYUFBYSxDQUFDLENBQUM7QUFDckUsTUFBTSxDQUFDLElBQU0sbUJBQW1CLEdBQUcsSUFBSSxjQUFjLENBQVMscUJBQXFCLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGlvblRva2VuIH0gZnJvbSBcIkBhbmd1bGFyL2NvcmVcIjtcclxuXHJcbmV4cG9ydCBjb25zdCBNU0FMX0NPTkZJRyA9IG5ldyBJbmplY3Rpb25Ub2tlbjxzdHJpbmc+KFwiTVNBTF9DT05GSUdcIik7XHJcbmV4cG9ydCBjb25zdCBNU0FMX0NPTkZJR19BTkdVTEFSID0gbmV3IEluamVjdGlvblRva2VuPHN0cmluZz4oXCJNU0FMX0NPTkZJR19BTkdVTEFSXCIpO1xyXG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGF6dXJlL21zYWwtYW5ndWxhci8iLCJzb3VyY2VzIjpbInNyYy9jb25zdGFudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7OztHQUdHO0FBRUgsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUvQyxNQUFNLENBQUMsSUFBTSxXQUFXLEdBQUcsSUFBSSxjQUFjLENBQVMsYUFBYSxDQUFDLENBQUM7QUFDckUsTUFBTSxDQUFDLElBQU0sbUJBQW1CLEdBQUcsSUFBSSxjQUFjLENBQVMscUJBQXFCLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXHJcbiAqIENvcHlyaWdodCAoYykgTWljcm9zb2Z0IENvcnBvcmF0aW9uLiBBbGwgcmlnaHRzIHJlc2VydmVkLlxyXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgTUlUIExpY2Vuc2UuXHJcbiAqL1xyXG5cclxuaW1wb3J0IHsgSW5qZWN0aW9uVG9rZW4gfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xyXG5cclxuZXhwb3J0IGNvbnN0IE1TQUxfQ09ORklHID0gbmV3IEluamVjdGlvblRva2VuPHN0cmluZz4oXCJNU0FMX0NPTkZJR1wiKTtcclxuZXhwb3J0IGNvbnN0IE1TQUxfQ09ORklHX0FOR1VMQVIgPSBuZXcgSW5qZWN0aW9uVG9rZW48c3RyaW5nPihcIk1TQUxfQ09ORklHX0FOR1VMQVJcIik7XHJcbiJdfQ== |
@@ -0,1 +1,5 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
export var defaultMsalAngularConfiguration = { | ||
@@ -8,2 +12,2 @@ consentScopes: [], | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXNhbC1hbmd1bGFyLmNvbmZpZ3VyYXRpb24uanMiLCJzb3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uZ3VsYXJDb25maWd1cmF0aW9uIDogTXNhbEFuZ3VsYXJDb25maWd1cmF0aW9uID0ge1xyXG4gICAgY29uc2VudFNjb3BlczogW10sXHJcbiAgICBwb3BVcDogZmFsc2UsXHJcbiAgICBleHRyYVF1ZXJ5UGFyYW1ldGVyczoge30sXHJcbiAgICB1bnByb3RlY3RlZFJlc291cmNlczogW10sXHJcbiAgICBwcm90ZWN0ZWRSZXNvdXJjZU1hcDogW11cclxufTtcclxuIl19 |
@@ -0,1 +1,5 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
import { __awaiter, __decorate, __generator, __param } from "tslib"; | ||
@@ -35,4 +39,6 @@ import { Inject, Injectable } from "@angular/core"; | ||
} | ||
// If using path location strategy, pathUrl will include the relative portion of the base path (e.g. /base/page). | ||
// Since baseUrl also includes /base, can just concatentate baseUrl + path | ||
/* | ||
* If using path location strategy, pathUrl will include the relative portion of the base path (e.g. /base/page). | ||
* Since baseUrl also includes /base, can just concatentate baseUrl + path | ||
*/ | ||
return "" + baseUrl + path; | ||
@@ -69,4 +75,6 @@ }; | ||
this.authService.getLogger().verbose("location change event from old url to new url"); | ||
// If a page with MSAL Guard is set as the redirect for acquireTokenSilent, | ||
// short-circuit to prevent redirecting or popups. | ||
/* | ||
* If a page with MSAL Guard is set as the redirect for acquireTokenSilent, | ||
* short-circuit to prevent redirecting or popups. | ||
*/ | ||
if (UrlUtils.urlContainsHash(window.location.hash) && WindowUtils.isInIframe()) { | ||
@@ -110,2 +118,2 @@ this.authService.getLogger().warning("redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."); | ||
export { MsalGuard }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXNhbC1ndWFyZC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGF6dXJlL21zYWwtYW5ndWxhci8iLCJzb3VyY2VzI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dGNoKChlcnJvcjogQXV0aEVycm9yKSA9PiB7XHJcbiAgICAgICAgICAgICAgICBpZiAoSW50ZXJhY3Rpb25SZXF1aXJlZEF1dGhFcnJvci5pc0ludGVyYWN0aW9uUmVxdWlyZWRFcnJvcihlcnJvci5lcnJvckNvZGUpKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5hdXRoU2VydmljZS5nZXRMb2dnZXIoKS5pbmZvKFwiSW50ZXJhY3Rpb24gcmVxdWlyZWQgZXJyb3IgaW4gTVNBTCBHdWFyZCwgcHJvbXB0aW5nIGZvciBpbnRlcmFjdGlvbi5cIik7XHJcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMubG9naW5JbnRlcmFjdGl2ZWx5KHN0YXRlLnVybCk7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgdGhpcy5hdXRoU2VydmljZS5nZXRMb2dnZXIoKS5lcnJvcihgTm9uLWludGVyYWN0aW9uIGVycm9yIGluIE1TQUwgR3VhcmQ6ICR7ZXJyb3IuZXJyb3JNZXNzYWdlfWApO1xyXG4gICAgICAgICAgICAgICAgdGhyb3cgZXJyb3I7XHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgfVxyXG5cclxufVxyXG4iXX0= |
@@ -0,1 +1,5 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
import { __decorate } from "tslib"; | ||
@@ -34,5 +38,3 @@ import { Injectable } from "@angular/core"; | ||
})) | ||
.pipe(mergeMap(function (nextReq) { return next.handle(nextReq); }), tap(function (event) { }, // tslint:disable-line | ||
function (// tslint:disable-line | ||
err) { | ||
.pipe(mergeMap(function (nextReq) { return next.handle(nextReq); }), tap(function () { }, function (err) { | ||
if (err instanceof HttpErrorResponse && err.status === 401) { | ||
@@ -54,2 +56,2 @@ _this.auth.clearCacheForScope(token); | ||
export { MsalInterceptor }; | ||
//# sourceMappingURL=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b25zZS50b2tlblR5cGUgPT09IFNlcnZlckhhc2hQYXJhbUtleXMuSURfVE9LRU4gPyByZXNwb25zZS5pZFRva2VuLnJhd0lkVG9rZW4gOiByZXNwb25zZS5hY2Nlc3NUb2tlbjtcclxuICAgICAgICAgICAgICAgICAgICBjb25zdCBhdXRoSGVhZGVyID0gYEJlYXJlciAke3Rva2VufWA7XHJcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJlcS5jbG9uZSh7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHNldEhlYWRlcnM6IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF1dGhvcml6YXRpb246IGF1dGhIZWFkZXIsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgICAgIH0pXHJcbiAgICAgICAgKVxyXG4gICAgICAgIC5waXBlKFxyXG4gICAgICAgICAgICBtZXJnZU1hcChuZXh0UmVxID0+IG5leHQuaGFuZGxlKG5leHRSZXEpKSxcclxuICAgICAgICAgICAgdGFwKFxyXG4gICAgICAgICAgICAgICAgZXZlbnQgPT4ge30sIC8vIHRzbGludDpkaXNhYmxlLWxpbmVcclxuICAgICAgICAgICAgICAgIGVyciA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKGVyciBpbnN0YW5jZW9mIEh0dHBFcnJvclJlc3BvbnNlICYmIGVyci5zdGF0dXMgPT09IDQwMSkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmF1dGguY2xlYXJDYWNoZUZvclNjb3BlKHRva2VuKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5icm9hZGNhc3RTZXJ2aWNlLmJyb2FkY2FzdChcIm1zYWw6bm90QXV0aG9yaXplZFwiLCBlcnIubWVzc2FnZSk7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICApXHJcb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4gZnJvbShcclxuICAgICAgICAgICAgdGhpcy5hdXRoLmFjcXVpcmVUb2tlblNpbGVudCh7IHNjb3BlcyB9KVxyXG4gICAgICAgICAgICAgICAgLnRoZW4oKHJlc3BvbnNlOiBBdXRoUmVzcG9uc2UpID0+IHtcclxuICAgICAgICAgICAgICAgICAgICB0b2tlbiA9IHJlc3BvbnNlLnRva2VuVHlwZSA9PT0gU2VydmVySGFzaFBhcmFtS2V5cy5JRF9UT0tFTiA/IHJlc3BvbnNlLmlkVG9rZW4ucmF3SWRUb2tlbiA6IHJlc3BvbnNlLmFjY2Vzc1Rva2VuO1xyXG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGF1dGhIZWFkZXIgPSBgQmVhcmVyICR7dG9rZW59YDtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmVxLmNsb25lKHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgc2V0SGVhZGVyczoge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgQXV0aG9yaXphdGlvbjogYXV0aEhlYWRlcixcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICApXHJcbiAgICAgICAgICAgIC5waXBlKFxyXG4gICAgICAgICAgICAgICAgbWVyZ2VNYXAobmV4dFJlcSA9PiBuZXh0LmhhbmRsZShuZXh0UmVxKSksXHJcbiAgICAgICAgICAgICAgICB0YXAoXHJcbiAgICAgICAgICAgICAgICAgICAgKCkgPT4ge30sXHJcbiAgICAgICAgICAgICAgICAgICAgZXJyID0+IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGVyciBpbnN0YW5jZW9mIEh0dHBFcnJvclJlc3BvbnNlICYmIGVyci5zdGF0dXMgPT09IDQwMSkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5hdXRoLmNsZWFyQ2FjaGVGb3JTY29wZSh0b2tlbik7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmJyb2FkY2FzdFNlcnZpY2UuYnJvYWRjYXN0KFwibXNhbDpub3RBdXRob3JpemVkXCIsIGVyci5tZXNzYWdlKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIClcclxuICAgICAgICAgICAgKTtcclxuICAgIH1cclxufVxyXG4iXX0= |
@@ -0,1 +1,5 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
import { __decorate } from "tslib"; | ||
@@ -41,2 +45,2 @@ import { NgModule } from "@angular/core"; | ||
export { MsalModule }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXNhbC5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYXp1cmUvbXNhbC1hbmd1bGFyLyIsInNvdXJjZXMiOlsic3JjL21zYWwubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQW1DLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzdDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNqRCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUV2RCxPQUFPLEVBQTRCLCtCQUErQixFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDekcsT0FBTyxFQUFFLFdBQVcsRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQVMvRDtJQUFBO0lBcUJBLENBQUM7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i4vbXNhbC1hbmd1bGFyLmNvbmZpZ3VyYXRpb25cIjtcclxuaW1wb3J0IHsgTVNBTF9DT05GSUcsIE1TQUxfQ09ORklHX0FOR1VMQVIgfSBmcm9tIFwiLi9jb25zdGFudHNcIjtcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXSxcclxuICAgIGRlY2xhcmF0aW9uczogW1xyXG5cclxuICAgIF0sXHJcbiAgICBwcm92aWRlcnM6IFtNc2FsR3VhcmQsIEJyb2FkY2FzdFNlcnZpY2VdLFxyXG59KVxyXG5leHBvcnQgY2xhc3MgTXNhbE1vZHVsZSB7XHJcbiAgICBzdGF0aWMgZm9yUm9vdChcclxuICAgICAgICBjb25maWc6IENvbmZpZ3VyYXRpb24sXHJcbiAgICAgICAgYW5ndWxhckNvbmZpZzogTXNhbEFuZ3VsYXJDb25maWd1cmF0aW9uID0gZGVmYXVsdE1zYWxBbmd1bGFyQ29uZmlndXJhdGlvblxyXG4gICAgKTogTW9kdWxlV2l0aFByb3ZpZGVyczxNc2FsTW9kdWxlPiB7XHJcbiAgICAgICAgcmV0dXJuIHtcclxuICAgICAgICAgICAgbmdNb2R1bGU6IE1zYWxNb2R1bGUsXHJcbiAgICAgICAgICAgIHByb3ZpZGVyczogW1xyXG4gICAgICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgICAgIHByb3ZpZGU6IE1TQUxfQ09ORklHLFxyXG4gICAgICAgICAgICAgICAgICAgIHVzZVZhbHVlOiBjb25maWdcclxuICAgICAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgICAgICB7XHJcbiAgICAgICAgICAgICAgICAgICAgcHJvdmlkZTogTVNBTF9DT05GSUdfQU5HVUxBUixcclxuICAgICAgICAgICAgICAgICAgICB1c2VWYWx1ZTogYW5ndWxhckNvbmZpZ1xyXG4gICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgICAgIE1zYWxTZXJ2aWNlXHJcbiAgICAgICAgICAgIF1cclxuICAgICAgICB9O1xyXG4gICAgfVxyXG5cclxufVxyXG5cclxuIl19 |
@@ -0,1 +1,5 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
import { __assign, __decorate, __extends, __param } from "tslib"; | ||
@@ -21,3 +25,3 @@ import { Inject, Injectable } from "@angular/core"; | ||
_this.broadcastService = broadcastService; | ||
window.addEventListener("msal:popUpHashChanged", function (e) { | ||
window.addEventListener("msal:popUpHashChanged", function () { | ||
_this.getLogger().verbose("popUpHashChanged "); | ||
@@ -187,2 +191,2 @@ }); | ||
export { ɵ0 }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXNhbC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGF6dXJlL21zYWwtYW5ndWxhci8iLCJzb3VyY2VzIjpbInNyYy9tc2FsLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFDSCxvQkFBb0IsRUFRcEIsUUFBUSxFQUNYLE1BQU0sTUFBTSxDQUFDO0FBQ2QsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3pDLE9BQU8sRUFBQyxnQkFBZ0IsRUFBQyxNQUFNLHFCQUFxQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFFeEMsT0FBTyxFQUFFLFdBQVcsRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUUvRCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBRXRDLElBQU0sZUFBZSxHQUFHLFVBQUMsTUFBcUI7SUF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FsOmxvZ2luU3VjY2Vzc1wiLCBhdXRoUmVzcG9uc2UpO1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIGF1dGhSZXNwb25zZTtcclxuICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgLmNhdGNoKChlcnJvcjogQXV0aEVycm9yKSA9PiB7XHJcbiAgICAgICAgICAgICAgICB0aGlzLmJyb2FkY2FzdFNlcnZpY2UuYnJvYWRjYXN0KFwibXNhbDpsb2dpbkZhaWx1cmVcIiwgZXJyb3IpO1xyXG4gICAgICAgICAgICAgICAgdGhpcy5nZXRMb2dnZXIoKS5lcnJvcihcIkVycm9yIGR1cmluZyBsb2dpbjpcXG5cIiArIGVycm9yLmVycm9yTWVzc2FnZSk7XHJcbiAgICAgICAgICAgICAgICB0aHJvdyBlcnJvcjtcclxuICAgICAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIHNzb1NpbGVudChyZXF1ZXN0OiBBdXRoZW50aWNhdGlvblBhcmFtZXRlcnMpOiBQcm9taXNlPEF1dGhSZXNwb25zZT4ge1xyXG4gICAgICAgIHJldHVybiBzdXBlci5zc29TaWxlbnQocmVxdWVzdClcclxuICAgICAgICAgICAgLnRoZW4oKGF1dGhSZXNwb25zZTogQXV0aFJlc3BvbnNlKSA9PiB7XHJcbiAgICAgICAgICAgICAgICB0aGlzLmJyb2FkY2FzdFNlcnZpY2UuYnJvYWRjYXN0KFwibXNhbDpzc29TdWNjZXNzXCIsIGF1dGhSZXNwb25zZSk7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gYXV0aFJlc3BvbnNlO1xyXG4gICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICAuY2F0Y2goKGVycm9yOiBBdXRoRXJyb3IpID0+IHtcclxuICAgICAgICAgICAgICAgIHRoaXMuYnJvYWRjYXN0U2VydmljZS5icm9hZGNhc3QoXCJtc2FsOnNzb0ZhaWx1cmVcIiwgZXJyb3IpO1xyXG4gICAgICAgICAgICAgICAgdGhpcy5nZXRMb2dnZXIoKS5lcnJvcihcIkVycm9yIGR1cmluZyBsb2dpbjpcXG5cIiArIGVycm9yLmVycm9yTWVzc2FnZSk7XHJcbiAgICAgICAgICAgICAgICB0aHJvdyBlcnJvcjtcclxuICAgICAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIGFjcXVpcmVUb2tlblNpbGVudChyZXF1ZXN0OiBBdXRoZW50aWNhdGlvblBhcmFtZXRlcnMpOiBQcm9taXNlPEF1dGhSZXNwb25zZT4ge1xyXG4gICAgICAgIHJldHVybiBzdXBlci5hY3F1aXJlVG9rZW5TaWxlbnQocmVxdWVzdClcclxuICAgICAgICAgICAgLnRoZW4oKGF1dGhSZXNwb25zZTogQXV0aFJlc3BvbnNlKSA9PiB7XHJcbiAgICAgICAgICAgICAgICB0aGlzLmJyb2FkY2FzdFNlcnZpY2UuYnJvYWRjYXN0KFwibXNhbDphY3F1aXJlVG9rZW5TdWNjZXNzXCIsIGF1dGhSZXNwb25zZSk7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gYXV0aFJlc3BvbnNlO1xyXG4gICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICAuY2F0Y2goKGVycm9yOiBBdXRoRXJyb3IpID0+IHtcclxuICAgICAgICAgICAgICAgIHRoaXMuYnJvYWRjYXN0U2VydmljZS5icm9hZGNhc3QoXCJtc2FsOmFjcXVpcmVUb2tlbkZhaWx1cmVcIiwgZXJyb3IpO1xyXG4gICAgICAgICAgICAgICAgdGhpcy5nZXRMb2dnZXIoKS5lcnJvcihcIkVycm9yIHdoZW4gYWNxdWlyaW5nIHRva2VuIGZvciBzY29wZXM6IFwiICsgcmVxdWVzdC5zY29wZXMgKyBcIiBcIiArIGVycm9yKTtcclxuICAgICAgICAgICAgICAgIHRocm93IGVycm9yO1xyXG4gICAgICAgICAgICB9KTtcclxuXHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIGFjcXVpcmVUb2tlblBvcHVwKHJlc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k7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICB9IGVsc2UgaWYgKGF1dGhSZXNwb25zZSkge1xyXG4gICAgICAgICAgICAgICAgaWYgKGF1dGhSZXNwb25zZS50b2tlblR5cGUgPT09IFwiaWRfdG9rZW5cIikge1xyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuYnJvYWRjYXN0U2VydmljZS5icm9hZGNhc3QoXCJtc2FsOmxvZ2luU3VjY2Vzc1wiLCBhdXRoUmVzcG9uc2UpO1xyXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmJyb2FkY2FzdFNlcnZpY2UuYnJvYWRjYXN0KFwibXNhbDphY3F1aXJlVG9rZW5TdWNjZXNzXCIsIGF1dGhSZXNwb25zZSk7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgaWYgKGVycm9yUmVjZWl2ZWRDYWxsYmFjaykge1xyXG4gICAgICAgICAgICAgICAgICAgIChhdXRoT3JUb2tlbkNhbGxiYWNrIGFzIHRva2VuUmVjZWl2ZWRDYWxsYmFjaykoYXV0aFJlc3BvbnNlKTtcclxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgKGF1dGhPclRva2VuQ2FsbGJhY2sgYXMgYXV0aFJlc3BvbnNlQ2FsbGJhY2spKG51bGwsIGF1dGhSZXNwb25zZSk7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIGNsZWFyQ2FjaGVGb3JTY29wZShhY2Nlc3NUb2tlbjogc3RyaW5nKSB7XHJcbiAgICAgICAgcmV0dXJuIHN1cGVyLmNsZWFyQ2FjaGVGb3JTY29wZShhY2Nlc3NUb2tlbik7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIGdldFNjb3Bl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bG9naW5Qb3B1cChyZXF1ZXN0PzogQXV0aGVudGljYXRpb25QYXJhbWV0ZXJzKTogUHJvbWlzZTxhbnk+IHtcclxuICAgICAgICByZXR1cm4gc3VwZXIubG9naW5Qb3B1cChyZXF1ZXN0KVxyXG4gICAgICAgICAgICAudGhlbigoYXV0aFJlc3BvbnNlOiBBdXRoUmVzcG9uc2UpID0+IHtcclxuICAgICAgICAgICAgICAgIHRoaXMuYnJvYWRjYXN0U2VydmljZS5icm9hZGNhc3QoXCJtc2FsOmxvZ2luU3VjY2Vzc1wiLCBhdXRoUmVzcG9uc2UpO1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIGF1dGhSZXNwb25zZTtcclxuICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgLmNhdGNoKChlcnJvcjogQXV0aEVycm9yKSA9PiB7XHJcbiAgICAgICAgICAgICAgICB0aGlzLmJyb2FkY2FzdFNlcnZpY2UuYnJvYWRjYXN0KFwibXNhbDpsb2dpbkZhaWx1cmVcIiwgZXJyb3IpO1xyXG4gICAgICAgICAgICAgICAgdGhpcy5nZXRMb2dnZXIoKS5lcnJvcihcIkVycm9yIGR1cmluZyBsb2dpbjpcXG5cIiArIGVycm9yLmVycm9yTWVzc2FnZSk7XHJcbiAgICAgICAgICAgICAgICB0aHJvdyBlcnJvcjtcclxuICAgICAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIHNzb1NpbGVudChyZXF1ZXN0OiBBdXRoZW50aWNhdGlvblBhcmFtZXRlcnMpOiBQcm9taXNlPEF1dGhSZXNwb25zZT4ge1xyXG4gICAgICAgIHJldHVybiBzdXBlci5zc29TaWxlbnQocmVxdWVzdClcclxuICAgICAgICAgICAgLnRoZW4oKGF1dGhSZXNwb25zZTogQXV0aFJlc3BvbnNlKSA9PiB7XHJcbiAgICAgICAgICAgICAgICB0aGlzLmJyb2FkY2FzdFNlcnZpY2UuYnJvYWRjYXN0KFwibXNhbDpzc29TdWNjZXNzXCIsIGF1dGhSZXNwb25zZSk7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gYXV0aFJlc3BvbnNlO1xyXG4gICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICAuY2F0Y2goKGVycm9yOiBBdXRoRXJyb3IpID0+IHtcclxuICAgICAgICAgICAgICAgIHRoaXMuYnJvYWRjYXN0U2VydmljZS5icm9hZGNhc3QoXCJtc2FsOnNzb0ZhaWx1cmVcIiwgZXJyb3IpO1xyXG4gICAgICAgICAgICAgICAgdGhpcy5nZXRMb2dnZXIoKS5lcnJvcihcIkVycm9yIGR1cmluZyBsb2dpbjpcXG5cIiArIGVycm9yLmVycm9yTWVzc2FnZSk7XHJcbiAgICAgICAgICAgICAgICB0aHJvdyBlcnJvcjtcclxuICAgICAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIGFjcXVpcmVUb2tlblNpbGVudChyZXF1ZXN0OiBBdXRoZW50aWNhdGlvblBhcmFtZXRlcnMpOiBQcm9taXNlPEF1dGhSZXNwb25zZT4ge1xyXG4gICAgICAgIHJldHVybiBzdXBlci5hY3F1aXJlVG9rZW5TaWxlbnQocmVxdWVzdClcclxuICAgICAgICAgICAgLnRoZW4oKGF1dGhSZXNwb25zZTogQXV0aFJlc3BvbnNlKSA9PiB7XHJcbiAgICAgICAgICAgICAgICB0aGlzLmJyb2FkY2FzdFNlcnZpY2UuYnJvYWRjYXN0KFwibXNhbDphY3F1aXJlVG9rZW5TdWNjZXNzXCIsIGF1dGhSZXNwb25zZSk7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gYXV0aFJlc3BvbnNlO1xyXG4gICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICAuY2F0Y2goKGVycm9yOiBBdXRoRXJyb3IpID0+IHtcclxuICAgICAgICAgICAgICAgIHRoaXMuYnJvYWRjYXN0U2VydmljZS5icm9hZGNhc3QoXCJtc2FsOmFjcXVpcmVUb2tlbkZhaWx1cmVcIiwgZXJyb3IpO1x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ENhbGxiYWNrKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgZXJyb3JSZWNlaXZlZENhbGxiYWNrKGF1dGhFcnJvciwgYXV0aFJlc3BvbnNlLmFjY291bnRTdGF0ZSk7XHJcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgICAgIChhdXRoT3JUb2tlbkNhbGxiYWNrIGFzIGF1dGhSZXNwb25zZUNhbGxiYWNrKShhdXRoRXJyb3IsIGF1dGhSZXNwb25zZSk7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICB9IGVsc2UgaWYgKGF1dGhSZXNwb25zZSkge1xyXG4gICAgICAgICAgICAgICAgaWYgKGF1dGhSZXNwb25zZS50b2tlblR5cGUgPT09IFwiaWRfdG9rZW5cIikge1xyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuYnJvYWRjYXN0U2VydmljZS5icm9hZGNhc3QoXCJtc2FsOmxvZ2luU3VjY2Vzc1wiLCBhdXRoUmVzcG9uc2UpO1xyXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmJyb2FkY2FzdFNlcnZpY2UuYnJvYWRjYXN0KFwibXNhbDphY3F1aXJlVG9rZW5TdWNjZXNzXCIsIGF1dGhSZXNwb25zZSk7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgaWYgKGVycm9yUmVjZWl2ZWRDYWxsYmFjaykge1xyXG4gICAgICAgICAgICAgICAgICAgIChhdXRoT3JUb2tlbkNhbGxiYWNrIGFzIHRva2VuUmVjZWl2ZWRDYWxsYmFjaykoYXV0aFJlc3BvbnNlKTtcclxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgKGF1dGhPclRva2VuQ2FsbGJhY2sgYXMgYXV0aFJlc3BvbnNlQ2FsbGJhY2spKG51bGwsIGF1dGhSZXNwb25zZSk7X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pbHMuZ2V0SG9zdEZyb21VcmkoZW5kcG9pbnQpID09PSBVcmxVdGlscy5nZXRIb3N0RnJvbVVyaShzdXBlci5nZXRSZWRpcmVjdFVyaSgpKSkge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBBcnJheTxzdHJpbmc+KHRoaXMubXNhbENvbmZpZy5hdXRoLmNsaWVudElkKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgIC8qXHJcbiAgICAgICAgICAgICAqIGluIGFuZ3VsYXIgbGV2ZWwsIHRoZSB1cmwgZm9yICRodHRwIGludGVyY2VwdG9yIGNhbGwgY291bGQgYmUgcmVsYXRpdmUgdXJsLFxyXG4gICAgICAgICAgICAgKiBpZiBpdCdzIHJlbGF0aXZlIGNhbGwsIHdlJ2xsIHRyZWF0IGl0IGFzIGFwcCBiYWNrZW5kIGNhbGwuXHJcbiAgICAgICAgICAgICAqL1xyXG4gICAgICAgICAgICByZXR1cm4gbmV3IEFycmF5PHN0cmluZz4odGhpcy5tc2FsQ29uZmlnLmF1dGguY2xpZW50SWQpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgLy8gaWYgbm90IHRoZSBhcHAncyBvd24gYmFja2VuZCBvciBub3QgYSBkb21haW4gbGlzdGVkIGluIHRoZSBlbmRwb2ludHMgc3RydWN0dXJlXHJcbiAgICAgICAgcmV0dXJuIG51bGw7XHJcbiAgICB9XHJcbn1cclxuIl19 |
@@ -0,1 +1,5 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var MSALError = /** @class */ (function () { | ||
@@ -47,2 +51,2 @@ function MSALError(error, errorDesc, scopes) { | ||
export { MSALError }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTVNBTEVycm9yLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGF6dXJlL21zYWwtY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Db250ZW50IjpbImV4cG9ydCBjbGFzcyBNU0FMRXJyb3Ige1xyXG4gICAgcHJpdmF0ZSBfZXJyb3I6IHN0cmluZyA9IFwiXCI7XHJcbiAgICBwcml2YXRlIF9lcnJvckRlc2M6IHN0cmluZyA9IFwiXCI7XHJcbiAgICBwcml2YXRlIF9zY29wZXM6IHN0cmluZyA9IFwiXCI7XHJcblxyXG5cclxuICAgIGNvbnN0cnVjdG9yKGVycm9yOiBzdHJpbmcgLCBlcnJvckRlc2M/OiBzdHJpbmcsIHNjb3Blcz86IHN0cmluZykge1xyXG4gICAgICAgIHRoaXMuX2Vycm9yID0gZXJyb3I7XHJcbiAgICAgICAgaWYgKGVycm9yRGVzYykge1xyXG4gICAgICAgICAgICB0aGlzLl9lcnJvckRlc2MgPSBlcnJvckRlc2M7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGlmIChzY29wZXMpIHtcclxuICAgICAgICAgICAgdGhpcy5fc2NvcGVzID0gc2NvcGVzO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICBnZXQgZXJyb3IoKTogc3RyaW5nIHtcclxuICAgICAgICByZXR1cm4gdGhpcy5fZXJyb3I7XHJcbiAgICB9XHJcblxyXG4gICAgc2V0IGVycm9yKHZhbHVlOiBzdHJpbmcpIHtcclxuICAgICAgICB0aGlzLl9lcnJvciA9IHZhbHVlO1xyXG4gICAgfVxyXG5cclxuICAgIGdldCBlcnJvckRlc2MoKTogc3RyaW5nIHtcclxuICAgICAgICByZXR1cm4gdGhpcy5fZXJyb3JEZXNjO1xyXG4gICAgfVxyXG5cclxuICAgIHNldCBlcnJvckRlc2ModmFsdWU6IHN0cmluZykge1xyXG4gICAgICAgIHRoaXMuX2Vycm9yRGVzYyA9IHZhbHVlO1xyXG4gICAgfVxyXG5cclxuICAgIGdldCBzY29wZXMoKTogc3RyaW5nIHtcclxuICAgICAgICByZXR1cm4gdGhpcy5fc2NvcGVzO1xyXG4gICAgfVxyXG5cclxuICAgIHN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3RyaW5nKSB7XHJcbiAgICAgICAgdGhpcy5fZXJyb3IgPSB2YWx1ZTtcclxuICAgIH1cclxuXHJcbiAgICBnZXQgZXJyb3JEZXNjKCk6IHN0cmluZyB7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMuX2Vycm9yRGVzYztcclxuICAgIH1cclxuXHJcbiAgICBzZXQgZXJyb3JEZXNjKHZhbHVlOiBzdHJpbmcpIHtcclxuICAgICAgICB0aGlzLl9lcnJvckRlc2MgPSB2YWx1ZTtcclxuICAgIH1cclxuXHJcbiAgICBnZXQgc2NvcGVzKCk6IHN0cmluZyB7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMuX3Njb3BlcztcclxuICAgIH1cclxuXHJcbiAgICBzZXQgc2NvcGVzKHZhbHVlOiBzdHJpbmcpIHtcclxuICAgICAgICB0aGlzLl9zY29wZXMgPSB2YWx1ZTtcclxuICAgIH1cclxufVxyXG4iXX0= |
@@ -11,2 +11,6 @@ import { __decorate, __param, __awaiter } from 'tslib'; | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
let BroadcastService = class BroadcastService { | ||
@@ -36,2 +40,6 @@ constructor() { | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
class MSALError { | ||
@@ -70,5 +78,13 @@ constructor(error, errorDesc, scopes) { | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
const MSAL_CONFIG = new InjectionToken("MSAL_CONFIG"); | ||
const MSAL_CONFIG_ANGULAR = new InjectionToken("MSAL_CONFIG_ANGULAR"); | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
const buildMsalConfig = (config) => { | ||
@@ -85,8 +101,8 @@ return Object.assign(Object.assign({}, config), { framework: Object.assign(Object.assign({}, config.framework), { isAngular: true }) }); | ||
this.broadcastService = broadcastService; | ||
window.addEventListener("msal:popUpHashChanged", (e) => { | ||
window.addEventListener("msal:popUpHashChanged", () => { | ||
this.getLogger().verbose("popUpHashChanged "); | ||
}); | ||
window.addEventListener("msal:popUpClosed", (e) => { | ||
var errorParts = e.detail.split("|"); | ||
var msalError = new MSALError(errorParts[0], errorParts[1]); | ||
const errorParts = e.detail.split("|"); | ||
const msalError = new MSALError(errorParts[0], errorParts[1]); | ||
if (this.getLoginInProgress()) { | ||
@@ -243,2 +259,6 @@ broadcastService.broadcast("msal:loginFailure", msalError); | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
let MsalGuard = class MsalGuard { | ||
@@ -270,4 +290,6 @@ constructor(msalConfig, msalAngularConfig, authService, router, activatedRoute, location, platformLocation, broadcastService) { | ||
} | ||
// If using path location strategy, pathUrl will include the relative portion of the base path (e.g. /base/page). | ||
// Since baseUrl also includes /base, can just concatentate baseUrl + path | ||
/* | ||
* If using path location strategy, pathUrl will include the relative portion of the base path (e.g. /base/page). | ||
* Since baseUrl also includes /base, can just concatentate baseUrl + path | ||
*/ | ||
return `${baseUrl}${path}`; | ||
@@ -299,4 +321,6 @@ } | ||
this.authService.getLogger().verbose("location change event from old url to new url"); | ||
// If a page with MSAL Guard is set as the redirect for acquireTokenSilent, | ||
// short-circuit to prevent redirecting or popups. | ||
/* | ||
* If a page with MSAL Guard is set as the redirect for acquireTokenSilent, | ||
* short-circuit to prevent redirecting or popups. | ||
*/ | ||
if (UrlUtils.urlContainsHash(window.location.hash) && WindowUtils.isInIframe()) { | ||
@@ -315,3 +339,3 @@ this.authService.getLogger().warning("redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."); | ||
if (InteractionRequiredAuthError.isInteractionRequiredError(error.errorCode)) { | ||
this.authService.getLogger().info(`Interaction required error in MSAL Guard, prompting for interaction.`); | ||
this.authService.getLogger().info("Interaction required error in MSAL Guard, prompting for interaction."); | ||
return this.loginInteractively(state.url); | ||
@@ -340,2 +364,6 @@ } | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
let MsalInterceptor = class MsalInterceptor { | ||
@@ -365,5 +393,3 @@ constructor(auth, broadcastService) { | ||
})) | ||
.pipe(mergeMap(nextReq => next.handle(nextReq)), tap(event => { }, // tslint:disable-line | ||
// tslint:disable-line | ||
err => { | ||
.pipe(mergeMap(nextReq => next.handle(nextReq)), tap(() => { }, err => { | ||
if (err instanceof HttpErrorResponse && err.status === 401) { | ||
@@ -384,2 +410,6 @@ this.auth.clearCacheForScope(token); | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
const defaultMsalAngularConfiguration = { | ||
@@ -393,2 +423,6 @@ consentScopes: [], | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var MsalModule_1; | ||
@@ -395,0 +429,0 @@ let MsalModule = MsalModule_1 = class MsalModule { |
@@ -11,2 +11,6 @@ import { __decorate, __assign, __extends, __param, __awaiter, __generator } from 'tslib'; | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var BroadcastService = /** @class */ (function () { | ||
@@ -37,2 +41,6 @@ function BroadcastService() { | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var MSALError = /** @class */ (function () { | ||
@@ -84,5 +92,13 @@ function MSALError(error, errorDesc, scopes) { | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var MSAL_CONFIG = new InjectionToken("MSAL_CONFIG"); | ||
var MSAL_CONFIG_ANGULAR = new InjectionToken("MSAL_CONFIG_ANGULAR"); | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var buildMsalConfig = function (config) { | ||
@@ -100,3 +116,3 @@ return __assign(__assign({}, config), { framework: __assign(__assign({}, config.framework), { isAngular: true }) }); | ||
_this.broadcastService = broadcastService; | ||
window.addEventListener("msal:popUpHashChanged", function (e) { | ||
window.addEventListener("msal:popUpHashChanged", function () { | ||
_this.getLogger().verbose("popUpHashChanged "); | ||
@@ -265,2 +281,6 @@ }); | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var MsalGuard = /** @class */ (function () { | ||
@@ -292,4 +312,6 @@ function MsalGuard(msalConfig, msalAngularConfig, authService, router, activatedRoute, location, platformLocation, broadcastService) { | ||
} | ||
// If using path location strategy, pathUrl will include the relative portion of the base path (e.g. /base/page). | ||
// Since baseUrl also includes /base, can just concatentate baseUrl + path | ||
/* | ||
* If using path location strategy, pathUrl will include the relative portion of the base path (e.g. /base/page). | ||
* Since baseUrl also includes /base, can just concatentate baseUrl + path | ||
*/ | ||
return "" + baseUrl + path; | ||
@@ -326,4 +348,6 @@ }; | ||
this.authService.getLogger().verbose("location change event from old url to new url"); | ||
// If a page with MSAL Guard is set as the redirect for acquireTokenSilent, | ||
// short-circuit to prevent redirecting or popups. | ||
/* | ||
* If a page with MSAL Guard is set as the redirect for acquireTokenSilent, | ||
* short-circuit to prevent redirecting or popups. | ||
*/ | ||
if (UrlUtils.urlContainsHash(window.location.hash) && WindowUtils.isInIframe()) { | ||
@@ -367,2 +391,6 @@ this.authService.getLogger().warning("redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."); | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var MsalInterceptor = /** @class */ (function () { | ||
@@ -393,5 +421,3 @@ function MsalInterceptor(auth, broadcastService) { | ||
})) | ||
.pipe(mergeMap(function (nextReq) { return next.handle(nextReq); }), tap(function (event) { }, // tslint:disable-line | ||
function (// tslint:disable-line | ||
err) { | ||
.pipe(mergeMap(function (nextReq) { return next.handle(nextReq); }), tap(function () { }, function (err) { | ||
if (err instanceof HttpErrorResponse && err.status === 401) { | ||
@@ -413,2 +439,6 @@ _this.auth.clearCacheForScope(token); | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var defaultMsalAngularConfiguration = { | ||
@@ -422,2 +452,6 @@ consentScopes: [], | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
var MsalModule = /** @class */ (function () { | ||
@@ -424,0 +458,0 @@ function MsalModule() { |
@@ -13,3 +13,3 @@ { | ||
}, | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"keywords": [ | ||
@@ -28,5 +28,5 @@ "implicit", | ||
"peerDependencies": { | ||
"@angular/common": ">= 6.0.0", | ||
"@angular/core": ">= 6.0.0", | ||
"msal": "^1.4.0", | ||
"@angular/common": "6 - 9", | ||
"@angular/core": "6 - 9", | ||
"msal": "^1.4.4", | ||
"rxjs": "^6.0.0", | ||
@@ -33,0 +33,0 @@ "tslib": "^1.10.0" |
@@ -5,3 +5,3 @@ import { ModuleWithProviders } from "@angular/core"; | ||
export declare class MsalModule { | ||
static forRoot(config: Configuration, angularConfig?: MsalAngularConfiguration): ModuleWithProviders; | ||
static forRoot(config: Configuration, angularConfig?: MsalAngularConfiguration): ModuleWithProviders<MsalModule>; | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
457438
3277
0