New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ngx-uomlibraryangular-authentication

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-uomlibraryangular-authentication - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

bundles/ngx-uomlibraryangular-authentication.umd.js

@@ -413,5 +413,5 @@ (function (global, factory) {

UomLibraryAuthenticationCasReturnPickupUsernameResolver.prototype.resolve = function (route, _state) {
if (!tscommonsCore.CommonsType.hasPropertyString(route.params, 'username'))
if (!tscommonsCore.CommonsType.hasPropertyString(route.queryParams, 'username'))
return undefined;
return route.params.username;
return route.queryParams.username;
};

@@ -418,0 +418,0 @@ UomLibraryAuthenticationCasReturnPickupUsernameResolver = __decorate([

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/router"),require("ngx-angularcommons-core"),require("ngx-angularcommons-app"),require("tscommons-core"),require("fast-sha256")):"function"==typeof define&&define.amd?define("ngx-uomlibraryangular-authentication",["exports","@angular/core","@angular/router","ngx-angularcommons-core","ngx-angularcommons-app","tscommons-core","fast-sha256"],t):t((e=e||self)["ngx-uomlibraryangular-authentication"]={},e.ng.core,e.ng.router,e["ngx-angularcommons-core"],e["ngx-angularcommons-app"],e["tscommons-core"],e["fast-sha256"])}(this,(function(e,t,n,r,o,a,i){"use strict";
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/router"),require("ngx-angularcommons-core"),require("ngx-angularcommons-app"),require("tscommons-core"),require("fast-sha256")):"function"==typeof define&&define.amd?define("ngx-uomlibraryangular-authentication",["exports","@angular/core","@angular/router","ngx-angularcommons-core","ngx-angularcommons-app","tscommons-core","fast-sha256"],t):t((e=e||self)["ngx-uomlibraryangular-authentication"]={},e.ng.core,e.ng.router,e["ngx-angularcommons-core"],e["ngx-angularcommons-app"],e["tscommons-core"],e["fast-sha256"])}(this,(function(e,t,r,n,o,a,i){"use strict";
/*! *****************************************************************************

@@ -15,3 +15,3 @@ Copyright (c) Microsoft Corporation. All rights reserved.

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 n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function c(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}function s(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function u(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,u)}c((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}var l=function(){function e(e){this.settingsService=e}return e.prototype.getUsername=function(){return this.settingsService.getString(r.CommonsStorageService.SESSION,"uomlibraryauth_cas_username")},e.prototype.setUsername=function(e){this.settingsService.setString(r.CommonsStorageService.SESSION,"uomlibraryauth_cas_username",e)},e.prototype.clearUsername=function(){this.settingsService.delete(r.CommonsStorageService.SESSION,"uomlibraryauth_cas_username",!0)},e.ctorParameters=function(){return[{type:o.CommonsSettingsService}]},e=c([t.Injectable()],e)}();function h(e){return!!a.CommonsType.hasPropertyString(e,"casUrl")&&(!!a.CommonsType.hasPropertyString(e,"returnUrl")&&(!!a.CommonsType.hasPropertyString(e,"postReturnRoute")&&(!!a.CommonsBase62.hasPropertyId(e,"outboundKey")&&!!a.CommonsBase62.hasPropertyId(e,"inboundKey"))))}var p=function(e){function r(t,n,r,o){var a=e.call(this)||this;a.router=t,a.activatedRoute=n,a.casService=o;var i=r.getDirect("uomAuthentication");if(!h(i))throw new Error("Unable to read uomAuthentication from config file");return a.config=i,a}return function(e,t){function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(r,e),r.prototype.ngOnInit=function(){return s(this,void 0,void 0,(function(){var t=this;return f(this,(function(n){return e.prototype.ngOnInit.call(this),this.subscribe(this.activatedRoute.data,(function(e){return s(t,void 0,void 0,(function(){return f(this,(function(t){return e.username?(this.casService.setUsername(e.username),this.router.navigate([this.config.postReturnRoute],{relativeTo:this.activatedRoute}),[2]):(this.casService.clearUsername(),[2])}))}))})),[2]}))}))},r.ctorParameters=function(){return[{type:n.Router},{type:n.ActivatedRoute},{type:o.CommonsConfigService},{type:l}]},r=c([t.Component({template:"<p>Returning from CAS authentication</p>\n",styles:[""]})],r)}(r.CommonsComponent),y=function(){function e(){}return e.generate=function(){return[a.CommonsBase62.generateRandomId(),a.CommonsBase62.generateRandomId(),a.CommonsBase62.generateRandomId(),a.CommonsBase62.generateRandomId()].join("")},e.hash=function(e,t){var n=new TextEncoder,r=new i.Hash;return r.update(n.encode(e)),r.update(n.encode(t)),function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}(new Uint8Array(r.digest())).map((function(e){return e.toString(16).padStart(2,"0")})).join("")},e}(),g=function(){function e(e,t){this.casService=t;var n=e.getDirect("uomAuthentication");if(!h(n))throw new Error("Unable to read uomAuthentication from config file");this.config=n}return e.prototype.canActivate=function(e,t){if(!this.casService.getUsername()){var n=encodeURIComponent(this.config.returnUrl),r=y.generate(),o=y.hash(r,this.config.outboundKey);return window.location.href=this.config.casUrl+"?nonce="+r+"&hash="+o+"&returnUrl="+n,!1}return!0},e.ctorParameters=function(){return[{type:o.CommonsConfigService},{type:l}]},e=c([t.Injectable()],e)}(),d=function(){function e(e,t){this.casService=t;var n=e.getDirect("uomAuthentication");if(!h(n))throw new Error("Unable to read uomAuthentication from config file");this.config=n}return e.prototype.canActivate=function(e,t){try{if(!a.CommonsType.hasPropertyString(e.queryParams,"nonce"))throw new Error("No nonce returned");if(!a.CommonsType.hasPropertyString(e.queryParams,"hash"))throw new Error("No hash returned");if(y.hash(e.queryParams.nonce,this.config.inboundKey)!==e.queryParams.hash)throw new Error("Nonce hash check failed.");if(!a.CommonsType.hasPropertyString(e.queryParams,"username"))throw new Error("No username returned");return!0}catch(e){return console.log(e.message),this.casService.clearUsername(),!1}},e.ctorParameters=function(){return[{type:o.CommonsConfigService},{type:l}]},e=c([t.Injectable()],e)}(),v=function(){function e(e){this.casService=e}return e.prototype.resolve=function(e,t){return this.casService.getUsername()},e.ctorParameters=function(){return[{type:l}]},e=c([t.Injectable()],e)}(),b=function(){function e(){}return e.prototype.resolve=function(e,t){if(a.CommonsType.hasPropertyString(e.params,"username"))return e.params.username},e=c([t.Injectable()],e)}(),S=function(){function e(){}var n;return n=e,e.forRoot=function(){return{ngModule:n,providers:[l,g,d,v,b]}},e=n=c([t.NgModule({imports:[r.NgxAngularCommonsCoreModule,o.NgxAngularCommonsAppModule],declarations:[p],exports:[p]})],e)}();e.NgxUomLibraryAngularAuthenticationModule=S,e.UomLibraryAuthenticationCasGuard=g,e.UomLibraryAuthenticationCasReturnGuard=d,e.UomLibraryAuthenticationCasReturnPickupComponent=p,e.UomLibraryAuthenticationCasReturnPickupUsernameResolver=b,e.UomLibraryAuthenticationCasService=l,e.UomLibraryAuthenticationCasUsernameResolver=v,e.isTUomLibraryAngularAuthenticationConfig=h,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)};function c(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function s(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function u(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,u)}c((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}var l=function(){function e(e){this.settingsService=e}return e.prototype.getUsername=function(){return this.settingsService.getString(n.CommonsStorageService.SESSION,"uomlibraryauth_cas_username")},e.prototype.setUsername=function(e){this.settingsService.setString(n.CommonsStorageService.SESSION,"uomlibraryauth_cas_username",e)},e.prototype.clearUsername=function(){this.settingsService.delete(n.CommonsStorageService.SESSION,"uomlibraryauth_cas_username",!0)},e.ctorParameters=function(){return[{type:o.CommonsSettingsService}]},e=c([t.Injectable()],e)}();function h(e){return!!a.CommonsType.hasPropertyString(e,"casUrl")&&(!!a.CommonsType.hasPropertyString(e,"returnUrl")&&(!!a.CommonsType.hasPropertyString(e,"postReturnRoute")&&(!!a.CommonsBase62.hasPropertyId(e,"outboundKey")&&!!a.CommonsBase62.hasPropertyId(e,"inboundKey"))))}var p=function(e){function n(t,r,n,o){var a=e.call(this)||this;a.router=t,a.activatedRoute=r,a.casService=o;var i=n.getDirect("uomAuthentication");if(!h(i))throw new Error("Unable to read uomAuthentication from config file");return a.config=i,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)}(n,e),n.prototype.ngOnInit=function(){return s(this,void 0,void 0,(function(){var t=this;return f(this,(function(r){return e.prototype.ngOnInit.call(this),this.subscribe(this.activatedRoute.data,(function(e){return s(t,void 0,void 0,(function(){return f(this,(function(t){return e.username?(this.casService.setUsername(e.username),this.router.navigate([this.config.postReturnRoute],{relativeTo:this.activatedRoute}),[2]):(this.casService.clearUsername(),[2])}))}))})),[2]}))}))},n.ctorParameters=function(){return[{type:r.Router},{type:r.ActivatedRoute},{type:o.CommonsConfigService},{type:l}]},n=c([t.Component({template:"<p>Returning from CAS authentication</p>\n",styles:[""]})],n)}(n.CommonsComponent),y=function(){function e(){}return e.generate=function(){return[a.CommonsBase62.generateRandomId(),a.CommonsBase62.generateRandomId(),a.CommonsBase62.generateRandomId(),a.CommonsBase62.generateRandomId()].join("")},e.hash=function(e,t){var r=new TextEncoder,n=new i.Hash;return n.update(r.encode(e)),n.update(r.encode(t)),function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}(new Uint8Array(n.digest())).map((function(e){return e.toString(16).padStart(2,"0")})).join("")},e}(),g=function(){function e(e,t){this.casService=t;var r=e.getDirect("uomAuthentication");if(!h(r))throw new Error("Unable to read uomAuthentication from config file");this.config=r}return e.prototype.canActivate=function(e,t){if(!this.casService.getUsername()){var r=encodeURIComponent(this.config.returnUrl),n=y.generate(),o=y.hash(n,this.config.outboundKey);return window.location.href=this.config.casUrl+"?nonce="+n+"&hash="+o+"&returnUrl="+r,!1}return!0},e.ctorParameters=function(){return[{type:o.CommonsConfigService},{type:l}]},e=c([t.Injectable()],e)}(),d=function(){function e(e,t){this.casService=t;var r=e.getDirect("uomAuthentication");if(!h(r))throw new Error("Unable to read uomAuthentication from config file");this.config=r}return e.prototype.canActivate=function(e,t){try{if(!a.CommonsType.hasPropertyString(e.queryParams,"nonce"))throw new Error("No nonce returned");if(!a.CommonsType.hasPropertyString(e.queryParams,"hash"))throw new Error("No hash returned");if(y.hash(e.queryParams.nonce,this.config.inboundKey)!==e.queryParams.hash)throw new Error("Nonce hash check failed.");if(!a.CommonsType.hasPropertyString(e.queryParams,"username"))throw new Error("No username returned");return!0}catch(e){return console.log(e.message),this.casService.clearUsername(),!1}},e.ctorParameters=function(){return[{type:o.CommonsConfigService},{type:l}]},e=c([t.Injectable()],e)}(),v=function(){function e(e){this.casService=e}return e.prototype.resolve=function(e,t){return this.casService.getUsername()},e.ctorParameters=function(){return[{type:l}]},e=c([t.Injectable()],e)}(),b=function(){function e(){}return e.prototype.resolve=function(e,t){if(a.CommonsType.hasPropertyString(e.queryParams,"username"))return e.queryParams.username},e=c([t.Injectable()],e)}(),S=function(){function e(){}var r;return r=e,e.forRoot=function(){return{ngModule:r,providers:[l,g,d,v,b]}},e=r=c([t.NgModule({imports:[n.NgxAngularCommonsCoreModule,o.NgxAngularCommonsAppModule],declarations:[p],exports:[p]})],e)}();e.NgxUomLibraryAngularAuthenticationModule=S,e.UomLibraryAuthenticationCasGuard=g,e.UomLibraryAuthenticationCasReturnGuard=d,e.UomLibraryAuthenticationCasReturnPickupComponent=p,e.UomLibraryAuthenticationCasReturnPickupUsernameResolver=b,e.UomLibraryAuthenticationCasService=l,e.UomLibraryAuthenticationCasUsernameResolver=v,e.isTUomLibraryAngularAuthenticationConfig=h,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ngx-uomlibraryangular-authentication.umd.min.js.map

@@ -6,5 +6,5 @@ import { __decorate } from "tslib";

resolve(route, _state) {
if (!CommonsType.hasPropertyString(route.params, 'username'))
if (!CommonsType.hasPropertyString(route.queryParams, 'username'))
return undefined;
return route.params.username;
return route.queryParams.username;
}

@@ -16,2 +16,2 @@ };

export { UomLibraryAuthenticationCasReturnPickupUsernameResolver };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FzLXJldHVybi1waWNrdXAtdXNlcm5hbWUucmVzb2x2ZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtdW9tbGlicmFyeWFuZ3VsYXItYXV0aGVudGljYXRpb24vIiwic291cmNlcyI6WyJsaWIvcmVzb2x2ZXJzL2Nhcy1yZXR1cm4tcGlja3VwLXVzZXJuYW1lLnJlc29sdmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRzNDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUc3QyxJQUFhLHVEQUF1RCxHQUFwRSxNQUFhLHVEQUF1RDtJQUM1RCxPQUFPLENBQUMsS0FBNkIsRUFBRSxNQUEyQjtRQUN4RSxJQUFJLENBQUMsV0FBVyxDQUFDLGlCQUFpQixDQUFDLEtBQUssQ0FBQyxNQUFNLEVBQUUsVUFBVSxDQUFDO1lBQUUsT0FBTyxTQUFTLENBQUM7UUFDL0UsT0FBTyxLQUFLLENBQUMsTUFBTSxDQUFDLFFBQVEsQ0FBQztJQUM5QixDQUFDO0NBQ0QsQ0FBQTtBQUxZLHVEQUF1RDtJQURuRSxVQUFVLEVBQUU7R0FDQSx1REFBdUQsQ0FLbkU7U0FMWSx1REFBdUQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXB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nR5U3RyaW5nKHJvdXRlLnF1ZXJ5UGFyYW1zLCAndXNlcm5hbWUnKSkgcmV0dXJuIHVuZGVmaW5lZDtcblx0XHRyZXR1cm4gcm91dGUucXVlcnlQYXJhbXMudXNlcm5hbWU7XG5cdH1cbn1cbiJdfQ==

@@ -8,5 +8,5 @@ import { __decorate } from "tslib";

UomLibraryAuthenticationCasReturnPickupUsernameResolver.prototype.resolve = function (route, _state) {
if (!CommonsType.hasPropertyString(route.params, 'username'))
if (!CommonsType.hasPropertyString(route.queryParams, 'username'))
return undefined;
return route.params.username;
return route.queryParams.username;
};

@@ -19,2 +19,2 @@ UomLibraryAuthenticationCasReturnPickupUsernameResolver = __decorate([

export { UomLibraryAuthenticationCasReturnPickupUsernameResolver };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FzLXJldHVybi1waWNrdXAtdXNlcm5hbWUucmVzb2x2ZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtdW9tbGlicmFyeWFuZ3VsYXItYXV0aGVudGljYXRpb24vIiwic291cmNlcyI6WyJsaWIvcmVzb2x2ZXJzL2Nhcy1yZXR1cm4tcGlja3VwLXVzZXJuYW1lLnJlc29sdmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRzNDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUc3QztJQUFBO0lBS0EsQ0FBQztJQUpPLHlFQUFPLEdBQWQsVUFBZSxLQUE2QixFQUFFLE1BQTJCO1FBQ3hFLElBQUksQ0FBQyxXQUFXLENBQUMsaUJBQWlCLENBQUMsS0FBSyxDQUFDLE1BQU0sRUFBRSxVQUFVLENBQUM7WUFBRSxPQUFPLFNBQVMsQ0FBQztRQUMvRSxPQUFPLEtBQUssQ0FBQyxNQUFNLENBQUMsUUF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yByZXNvbHZlKHJvdXRlOiBBY3RpdmF0ZWRSb3V0ZVNuYXBzaG90LCBfc3RhdGU6IFJvdXRlclN0YXRlU25hcHNob3QpOiBzdHJpbmd8dW5kZWZpbmVkIHtcblx0XHRpZiAoIUNvbW1vbnNUeXBlLmhhc1Byb3BlcnR5U3RyaW5nKHJvdXRlLnF1ZXJ5UGFyYW1zLCAndXNlcm5hbWUnKSkgcmV0dXJuIHVuZGVmaW5lZDtcblx0XHRyZXR1cm4gcm91dGUucXVlcnlQYXJhbXMudXNlcm5hbWU7XG5cdH1cbn1cbiJdfQ==

@@ -186,5 +186,5 @@ import { __decorate, __awaiter } from 'tslib';

resolve(route, _state) {
if (!CommonsType.hasPropertyString(route.params, 'username'))
if (!CommonsType.hasPropertyString(route.queryParams, 'username'))
return undefined;
return route.params.username;
return route.queryParams.username;
}

@@ -191,0 +191,0 @@ };

@@ -201,5 +201,5 @@ import { __decorate, __extends, __awaiter, __generator, __spread } from 'tslib';

UomLibraryAuthenticationCasReturnPickupUsernameResolver.prototype.resolve = function (route, _state) {
if (!CommonsType.hasPropertyString(route.params, 'username'))
if (!CommonsType.hasPropertyString(route.queryParams, 'username'))
return undefined;
return route.params.username;
return route.queryParams.username;
};

@@ -206,0 +206,0 @@ UomLibraryAuthenticationCasReturnPickupUsernameResolver = __decorate([

{
"name": "ngx-uomlibraryangular-authentication",
"version": "0.1.1",
"version": "0.1.2",
"peerDependencies": {

@@ -5,0 +5,0 @@ "@angular/common": "^9.1.3",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc