@igo2/auth 1.10.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/igo2-auth.umd.js +11 -9
- package/bundles/igo2-auth.umd.js.map +1 -1
- package/esm2015/lib/auth-form/auth-facebook.component.js +1 -1
- package/esm2015/lib/auth-form/auth-form.component.js +1 -1
- package/esm2015/lib/auth-form/auth-google.component.js +1 -1
- package/esm2015/lib/auth-form/auth-intern.component.js +6 -8
- package/esm2015/lib/auth-form/auth-microsoft.component.js +1 -1
- package/esm2015/lib/auth-form/auth-microsoftb2c.component.js +1 -1
- package/esm2015/lib/auth-form/index.js +1 -1
- package/esm2015/lib/auth-routing.module.js +1 -1
- package/esm2015/lib/auth.module.js +1 -1
- package/esm2015/lib/shared/admin.guard.js +1 -1
- package/esm2015/lib/shared/auth-microsoft.provider.js +1 -1
- package/esm2015/lib/shared/auth-msalBroadcastServiceb2c.service.js +1 -1
- package/esm2015/lib/shared/auth-msalServiceb2c.service..js +1 -1
- package/esm2015/lib/shared/auth.guard.js +1 -1
- package/esm2015/lib/shared/auth.interceptor.js +7 -3
- package/esm2015/lib/shared/auth.interface.js +1 -1
- package/esm2015/lib/shared/auth.service.js +1 -1
- package/esm2015/lib/shared/logged.guard.js +1 -1
- package/esm2015/lib/shared/profils.guard.js +1 -1
- package/esm2015/lib/shared/protected.directive.js +1 -1
- package/esm2015/lib/shared/storage.interface.js +1 -1
- package/esm2015/lib/shared/storage.service.js +1 -1
- package/esm2015/lib/shared/token.service.js +1 -1
- package/esm2015/public_api.js +1 -1
- package/fesm2015/igo2-auth.js +11 -9
- package/fesm2015/igo2-auth.js.map +1 -1
- package/package.json +3 -3
package/bundles/igo2-auth.umd.js
CHANGED
|
@@ -1157,7 +1157,7 @@
|
|
|
1157
1157
|
return AuthInternComponent;
|
|
1158
1158
|
}());
|
|
1159
1159
|
AuthInternComponent.ɵfac = function AuthInternComponent_Factory(t) { return new (t || AuthInternComponent)(i0__namespace.ɵɵdirectiveInject(AuthService), i0__namespace.ɵɵdirectiveInject(i2__namespace.LanguageService), i0__namespace.ɵɵdirectiveInject(i3__namespace$2.FormBuilder)); };
|
|
1160
|
-
AuthInternComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: AuthInternComponent, selectors: [["igo-auth-intern"]], inputs: { allowAnonymous: "allowAnonymous" }, outputs: { login: "login" }, decls: 14, vars:
|
|
1160
|
+
AuthInternComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: AuthInternComponent, selectors: [["igo-auth-intern"]], inputs: { allowAnonymous: "allowAnonymous" }, outputs: { login: "login" }, decls: 14, vars: 12, consts: [["role", "form", 3, "formGroup", "ngSubmit"], [1, "full-width"], ["matInput", "", "required", "", "formControlName", "username", 3, "placeholder"], ["matInput", "", "required", "", "type", "password", "formControlName", "password", 3, "placeholder"], ["mat-raised-button", "", "type", "submit"], ["mat-raised-button", "", "class", "anonymous", "type", "button", 3, "disabled", "click", 4, "ngIf"], [4, "ngIf"], ["mat-raised-button", "", "type", "button", 1, "anonymous", 3, "disabled", "click"], ["size", "3", "color", "red"]], template: function AuthInternComponent_Template(rf, ctx) {
|
|
1161
1161
|
if (rf & 1) {
|
|
1162
1162
|
i0__namespace.ɵɵelementStart(0, "form", 0);
|
|
1163
1163
|
i0__namespace.ɵɵlistener("ngSubmit", function AuthInternComponent_Template_form_ngSubmit_0_listener() { return ctx.loginUser(ctx.form.value); });
|
|
@@ -1184,13 +1184,11 @@
|
|
|
1184
1184
|
if (rf & 2) {
|
|
1185
1185
|
i0__namespace.ɵɵproperty("formGroup", ctx.form);
|
|
1186
1186
|
i0__namespace.ɵɵadvance(3);
|
|
1187
|
-
i0__namespace.ɵɵpropertyInterpolate("placeholder", i0__namespace.ɵɵpipeBind1(4,
|
|
1187
|
+
i0__namespace.ɵɵpropertyInterpolate("placeholder", i0__namespace.ɵɵpipeBind1(4, 6, "igo.auth.user"));
|
|
1188
1188
|
i0__namespace.ɵɵadvance(4);
|
|
1189
|
-
i0__namespace.ɵɵpropertyInterpolate("placeholder", i0__namespace.ɵɵpipeBind1(8,
|
|
1190
|
-
i0__namespace.ɵɵadvance(
|
|
1191
|
-
i0__namespace.ɵɵ
|
|
1192
|
-
i0__namespace.ɵɵadvance(1);
|
|
1193
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(11, 11, "igo.auth.login"));
|
|
1189
|
+
i0__namespace.ɵɵpropertyInterpolate("placeholder", i0__namespace.ɵɵpipeBind1(8, 8, "igo.auth.password"));
|
|
1190
|
+
i0__namespace.ɵɵadvance(3);
|
|
1191
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(11, 10, "igo.auth.login"));
|
|
1194
1192
|
i0__namespace.ɵɵadvance(2);
|
|
1195
1193
|
i0__namespace.ɵɵproperty("ngIf", ctx.allowAnonymous);
|
|
1196
1194
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -1808,8 +1806,12 @@
|
|
|
1808
1806
|
var hostWithAuthByKey = _c.value;
|
|
1809
1807
|
var domainRegex = new RegExp(hostWithAuthByKey.domainRegFilters);
|
|
1810
1808
|
if (domainRegex.test(reqUrl)) {
|
|
1811
|
-
|
|
1812
|
-
|
|
1809
|
+
var replace = hostWithAuthByKey.keyProperty + "=" + hostWithAuthByKey.keyValue;
|
|
1810
|
+
var keyAdded = new RegExp(replace, "gm");
|
|
1811
|
+
if (!keyAdded.test(reqUrl)) {
|
|
1812
|
+
hostWithKey = { key: hostWithAuthByKey.keyProperty, value: hostWithAuthByKey.keyValue };
|
|
1813
|
+
break;
|
|
1814
|
+
}
|
|
1813
1815
|
}
|
|
1814
1816
|
}
|
|
1815
1817
|
}
|