@volo/abp.ng.identity 5.0.0-beta.1 → 5.0.0-rc.2
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/README.md +2 -2
- package/bundles/volo-abp.ng.identity-config.umd.js +1 -1
- package/bundles/volo-abp.ng.identity-proxy.umd.js +1 -1
- package/bundles/volo-abp.ng.identity.umd.js +2 -2
- package/config/components/my-link-users-modal.component.d.ts +9 -1
- package/config/handlers/link-login.handler.d.ts +7 -5
- package/config/services/identity-link-login.service.d.ts +12 -0
- package/config/services/index.d.ts +1 -0
- package/esm2015/config/components/identity-settings.component.js +1 -1
- package/esm2015/config/components/my-link-users-modal.component.js +1 -1
- package/esm2015/config/handlers/link-login.handler.js +1 -1
- package/esm2015/config/identity-config.module.js +1 -1
- package/esm2015/config/services/identity-config.service.js +1 -1
- package/esm2015/config/services/identity-link-login.service.js +1 -0
- package/esm2015/config/services/index.js +1 -1
- package/esm2015/lib/components/claim-modal/claim-modal.component.js +1 -1
- package/esm2015/lib/components/claims/claims.component.js +1 -1
- package/esm2015/lib/components/organization-units/abstract-organization-unit/abstract-organization-unit.component.js +1 -1
- package/esm2015/lib/components/organization-units/organization-members/organization-members-modal-body.component.js +1 -1
- package/esm2015/lib/components/organization-units/organization-members/organization-members.component.js +1 -1
- package/esm2015/lib/components/organization-units/organization-roles/organization-roles-modal-body.component.js +1 -1
- package/esm2015/lib/components/organization-units/organization-roles/organization-roles.component.js +1 -1
- package/esm2015/lib/components/organization-units/organization-units.component.js +1 -1
- package/esm2015/lib/components/roles/roles.component.js +1 -1
- package/esm2015/lib/components/security-logs/security-logs.component.js +1 -1
- package/esm2015/lib/components/users/users.component.js +1 -1
- package/esm2015/lib/defaults/default-organization-members-entity-props.js +1 -1
- package/esm2015/lib/defaults/default-roles-entity-props.js +1 -1
- package/esm2015/lib/defaults/default-users-entity-actions.js +1 -1
- package/esm2015/lib/defaults/default-users-entity-props.js +1 -1
- package/esm2015/lib/guards/extensions.guard.js +1 -1
- package/esm2015/lib/identity-routing.module.js +1 -1
- package/esm2015/lib/identity.module.js +1 -1
- package/esm2015/proxy/lib/proxy/identity/identity-claim-type.service.js +1 -1
- package/esm2015/proxy/lib/proxy/identity/identity-role.service.js +1 -1
- package/esm2015/proxy/lib/proxy/identity/identity-security-log.service.js +1 -1
- package/esm2015/proxy/lib/proxy/identity/identity-settings.service.js +1 -1
- package/esm2015/proxy/lib/proxy/identity/identity-user-lookup.service.js +1 -1
- package/esm2015/proxy/lib/proxy/identity/identity-user.service.js +1 -1
- package/esm2015/proxy/lib/proxy/identity/index.js +1 -1
- package/esm2015/proxy/lib/proxy/identity/organization-unit.service.js +1 -1
- package/fesm2015/volo-abp.ng.identity-config.js +122 -33
- package/fesm2015/volo-abp.ng.identity-proxy.js +34 -108
- package/fesm2015/volo-abp.ng.identity.js +225 -196
- package/lib/components/users/users.component.d.ts +2 -10
- package/lib/identity.module.d.ts +2 -1
- package/package.json +7 -6
- package/proxy/lib/proxy/identity/identity-user.service.d.ts +4 -2
- package/proxy/lib/proxy/identity/index.d.ts +0 -2
- package/proxy/lib/proxy/identity/models.d.ts +14 -50
- package/esm2015/proxy/lib/proxy/identity/identity-link-user.service.js +0 -1
- package/esm2015/proxy/lib/proxy/identity/profile.service.js +0 -1
- package/proxy/lib/proxy/identity/identity-link-user.service.d.ts +0 -17
- package/proxy/lib/proxy/identity/profile.service.d.ts +0 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i4 from '@abp/ng.core';
|
|
2
|
-
import { SubscriptionService, ListService, ConfigStateService, AuthService, EnvironmentService, RoutesService, ContentProjectionService, PROJECTION_STRATEGY, noop, CoreModule } from '@abp/ng.core';
|
|
2
|
+
import { SubscriptionService, WebHttpUrlEncodingCodec, ListService, ConfigStateService, AuthService, EnvironmentService, RoutesService, ContentProjectionService, PROJECTION_STRATEGY, noop, CoreModule } from '@abp/ng.core';
|
|
3
3
|
import * as i2 from '@abp/ng.theme.shared';
|
|
4
4
|
import { ConfirmationService, Confirmation, ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
@@ -8,14 +8,17 @@ import * as i3 from '@angular/forms';
|
|
|
8
8
|
import { Validators } from '@angular/forms';
|
|
9
9
|
import { filter, finalize, switchMap, catchError, tap } from 'rxjs/operators';
|
|
10
10
|
import * as i5 from '@angular/common';
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import * as i1 from '@angular/router';
|
|
14
|
-
import
|
|
11
|
+
import { IdentityLinkUserService } from '@volo/abp.ng.account/public/proxy';
|
|
12
|
+
import { of, pipe, from } from 'rxjs';
|
|
13
|
+
import * as i1$1 from '@angular/router';
|
|
14
|
+
import * as i2$1 from '@angular/common/http';
|
|
15
|
+
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
|
16
|
+
import * as i1 from 'angular-oauth2-oidc';
|
|
15
17
|
import * as i2$2 from '@swimlane/ngx-datatable';
|
|
16
|
-
import * as
|
|
18
|
+
import * as i4$1 from '@ng-bootstrap/ng-bootstrap';
|
|
17
19
|
import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
|
|
18
20
|
import { SettingTabsService } from '@abp/ng.setting-management/config';
|
|
21
|
+
import { OPEN_MY_LINK_USERS_MODAL } from '@volo/abp.commercial.ng.ui/config';
|
|
19
22
|
|
|
20
23
|
class IdentityConfigService {
|
|
21
24
|
constructor(restService) {
|
|
@@ -36,9 +39,9 @@ class IdentityConfigService {
|
|
|
36
39
|
}, { apiName: this.apiName });
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
|
-
IdentityConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
40
|
-
IdentityConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
42
|
+
IdentityConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityConfigService, deps: [{ token: i4.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
43
|
+
IdentityConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityConfigService, providedIn: 'root' });
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityConfigService, decorators: [{
|
|
42
45
|
type: Injectable,
|
|
43
46
|
args: [{
|
|
44
47
|
providedIn: 'root',
|
|
@@ -121,9 +124,9 @@ class IdentitySettingsComponent {
|
|
|
121
124
|
.subscribe(() => this.toaster.success('AbpIdentity::SavedSuccessfully', null));
|
|
122
125
|
}
|
|
123
126
|
}
|
|
124
|
-
IdentitySettingsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
125
|
-
IdentitySettingsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.8", type: IdentitySettingsComponent, selector: "abp-identity-settings", providers: [SubscriptionService], ngImport: i0, template: "<h2>{{ 'AbpIdentity::Menu:IdentityManagement' | abpLocalization }}</h2>\n<hr class=\"my-4\" />\n<form\n *ngIf=\"form\"\n id=\"IdentitySettingsForm\"\n [formGroup]=\"form\"\n (ngSubmit)=\"submit()\"\n validateOnSubmit\n>\n <div class=\"row\">\n <div class=\"col-md-12\">\n <div formGroupName=\"password\">\n <h4>{{ 'AbpIdentity::PasswordSettings' | abpLocalization }}</h4>\n <div class=\"form-group\">\n <label for=\"Password_RequiredLength\">{{\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequiredLength' | abpLocalization\n }}</label\n ><input\n type=\"number\"\n id=\"Password_RequiredLength\"\n name=\"Password.RequiredLength\"\n class=\"form-control\"\n formControlName=\"requiredLength\"\n min=\"2\"\n max=\"32\"\n />\n <small class=\"form-text text-muted\">{{\n 'AbpIdentity::Description:Abp.Identity.Password.RequiredLength' | abpLocalization\n }}</small>\n </div>\n <div class=\"form-group\">\n <label for=\"Password_RequiredUniqueChars\">{{\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequiredUniqueChars' | abpLocalization\n }}</label\n ><input\n type=\"number\"\n id=\"Password_RequiredUniqueChars\"\n name=\"Password.RequiredUniqueChars\"\n class=\"form-control\"\n formControlName=\"requiredUniqueChars\"\n min=\"0\"\n max=\"32\"\n />\n <small class=\"form-text text-muted\">{{\n 'AbpIdentity::Description:Abp.Identity.Password.RequiredUniqueChars' | abpLocalization\n }}</small>\n </div>\n <div class=\"custom-checkbox custom-control mb-2\">\n <input\n type=\"checkbox\"\n id=\"Password_RequireNonAlphanumeric\"\n name=\"Password.RequireNonAlphanumeric\"\n class=\"custom-control-input \"\n formControlName=\"requireNonAlphanumeric\"\n /><label class=\"custom-control-label\" for=\"Password_RequireNonAlphanumeric\">{{\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireNonAlphanumeric'\n | abpLocalization\n }}</label>\n <small class=\"form-text text-muted\">{{\n 'AbpIdentity::Description:Abp.Identity.Password.RequireNonAlphanumeric'\n | abpLocalization\n }}</small>\n </div>\n <div class=\"custom-checkbox custom-control mb-2\">\n <input\n type=\"checkbox\"\n id=\"Password_RequireLowercase\"\n name=\"Password.RequireLowercase\"\n class=\"custom-control-input \"\n formControlName=\"requireLowercase\"\n /><label class=\"custom-control-label\" for=\"Password_RequireLowercase\">{{\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireLowercase' | abpLocalization\n }}</label>\n <small class=\"form-text text-muted\">{{\n 'AbpIdentity::Description:Abp.Identity.Password.RequireLowercase' | abpLocalization\n }}</small>\n </div>\n <div class=\"custom-checkbox custom-control mb-2\">\n <input\n type=\"checkbox\"\n id=\"Password_RequireUppercase\"\n name=\"Password.RequireUppercase\"\n class=\"custom-control-input \"\n formControlName=\"requireUppercase\"\n /><label class=\"custom-control-label\" for=\"Password_RequireUppercase\">{{\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireUppercase' | abpLocalization\n }}</label>\n <small class=\"form-text text-muted\">{{\n 'AbpIdentity::Description:Abp.Identity.Password.RequireUppercase' | abpLocalization\n }}</small>\n </div>\n <div class=\"custom-checkbox custom-control mb-2\">\n <input\n type=\"checkbox\"\n id=\"Password_RequireDigit\"\n name=\"Password.RequireDigit\"\n class=\"custom-control-input \"\n formControlName=\"requireDigit\"\n /><label class=\"custom-control-label\" for=\"Password_RequireDigit\">{{\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireDigit' | abpLocalization\n }}</label>\n <small class=\"form-text text-muted\">{{\n 'AbpIdentity::Description:Abp.Identity.Password.RequireDigit' | abpLocalization\n }}</small>\n </div>\n </div>\n <hr class=\"my-4\" />\n <div formGroupName=\"lockout\">\n <h4>{{ 'AbpIdentity::LockoutSettings' | abpLocalization }}</h4>\n <div class=\"custom-checkbox custom-control mb-2\">\n <input\n type=\"checkbox\"\n id=\"Lockout_AllowedForNewUsers\"\n name=\"Lockout.AllowedForNewUsers\"\n class=\"custom-control-input \"\n formControlName=\"allowedForNewUsers\"\n /><label class=\"custom-control-label\" for=\"Lockout_AllowedForNewUsers\">{{\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.AllowedForNewUsers' | abpLocalization\n }}</label>\n <small class=\"form-text text-muted\">{{\n 'AbpIdentity::Description:Abp.Identity.Lockout.AllowedForNewUsers' | abpLocalization\n }}</small>\n </div>\n <div class=\"form-group\">\n <label for=\"Lockout_LockoutDuration\">{{\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.LockoutDuration' | abpLocalization\n }}</label\n ><input\n type=\"number\"\n id=\"Lockout_LockoutDuration\"\n name=\"Lockout.LockoutDuration\"\n class=\"form-control\"\n formControlName=\"lockoutDuration\"\n />\n <small class=\"form-text text-muted\">{{\n 'AbpIdentity::Description:Abp.Identity.Lockout.LockoutDuration' | abpLocalization\n }}</small>\n </div>\n <div class=\"form-group\">\n <label for=\"Lockout_MaxFailedAccessAttempts\">{{\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.MaxFailedAccessAttempts'\n | abpLocalization\n }}</label\n ><input\n type=\"number\"\n id=\"Lockout_MaxFailedAccessAttempts\"\n name=\"Lockout.MaxFailedAccessAttempts\"\n class=\"form-control\"\n formControlName=\"maxFailedAccessAttempts\"\n />\n <small class=\"form-text text-muted\">{{\n 'AbpIdentity::Description:Abp.Identity.Lockout.MaxFailedAccessAttempts'\n | abpLocalization\n }}</small>\n </div>\n </div>\n <hr class=\"my-4\" />\n <div formGroupName=\"signIn\">\n <h4>{{ 'AbpIdentity::SignInSettings' | abpLocalization }}</h4>\n <div class=\"custom-checkbox custom-control mb-2\">\n <input\n type=\"checkbox\"\n id=\"SignIn_RequireConfirmedEmail\"\n name=\"SignIn.RequireConfirmedEmail\"\n class=\"custom-control-input \"\n formControlName=\"requireConfirmedEmail\"\n /><label class=\"custom-control-label\" for=\"SignIn_RequireConfirmedEmail\">{{\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.RequireConfirmedEmail' | abpLocalization\n }}</label>\n <small class=\"form-text text-muted\">{{\n 'AbpIdentity::Description:Abp.Identity.SignIn.RequireConfirmedEmail' | abpLocalization\n }}</small>\n </div>\n <div class=\"custom-checkbox custom-control mb-2\">\n <input\n type=\"checkbox\"\n id=\"SignIn_EnablePhoneNumberConfirmation\"\n name=\"SignIn.EnablePhoneNumberConfirmation\"\n class=\"custom-control-input \"\n formControlName=\"enablePhoneNumberConfirmation\"\n /><label class=\"custom-control-label\" for=\"SignIn_EnablePhoneNumberConfirmation\">{{\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.EnablePhoneNumberConfirmation'\n | abpLocalization\n }}</label>\n <small class=\"form-text text-muted\">{{\n 'AbpIdentity::Description:Abp.Identity.SignIn.EnablePhoneNumberConfirmation'\n | abpLocalization\n }}</small>\n </div>\n <div class=\"custom-checkbox custom-control mb-2\">\n <input\n type=\"checkbox\"\n id=\"SignIn_RequireConfirmedPhoneNumber\"\n name=\"SignIn.RequireConfirmedPhoneNumber\"\n class=\"custom-control-input \"\n formControlName=\"requireConfirmedPhoneNumber\"\n /><label class=\"custom-control-label\" for=\"SignIn_RequireConfirmedPhoneNumber\">{{\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.RequireConfirmedPhoneNumber'\n | abpLocalization\n }}</label>\n <small class=\"form-text text-muted\">{{\n 'AbpIdentity::Description:Abp.Identity.SignIn.RequireConfirmedPhoneNumber'\n | abpLocalization\n }}</small>\n </div>\n </div>\n <hr class=\"my-4\" />\n <div formGroupName=\"user\">\n <h4>{{ 'AbpIdentity::UserSettings' | abpLocalization }}</h4>\n <div class=\"custom-checkbox custom-control mb-2\">\n <input\n type=\"checkbox\"\n id=\"User_IsEmailUpdateEnabled\"\n name=\"User.IsEmailUpdateEnabled\"\n class=\"custom-control-input \"\n formControlName=\"isEmailUpdateEnabled\"\n /><label class=\"custom-control-label\" for=\"User_IsEmailUpdateEnabled\">{{\n 'AbpIdentity::DisplayName:Abp.Identity.User.IsEmailUpdateEnabled' | abpLocalization\n }}</label>\n <small class=\"form-text text-muted\">{{\n 'AbpIdentity::Description:Abp.Identity.User.IsEmailUpdateEnabled' | abpLocalization\n }}</small>\n </div>\n <div class=\"custom-checkbox custom-control mb-2\">\n <input\n type=\"checkbox\"\n id=\"User_IsUserNameUpdateEnabled\"\n name=\"User.IsUserNameUpdateEnabled\"\n class=\"custom-control-input \"\n formControlName=\"isUserNameUpdateEnabled\"\n /><label class=\"custom-control-label\" for=\"User_IsUserNameUpdateEnabled\">{{\n 'AbpIdentity::DisplayName:Abp.Identity.User.IsUserNameUpdateEnabled' | abpLocalization\n }}</label>\n <small class=\"form-text text-muted\">{{\n 'AbpIdentity::Description:Abp.Identity.User.IsUserNameUpdateEnabled' | abpLocalization\n }}</small>\n </div>\n </div>\n <hr class=\"my-4\" />\n <div>\n <abp-button\n iconClass=\"fa fa-save\"\n [loading]=\"loading\"\n buttonType=\"submit\"\n [disabled]=\"form?.invalid\"\n >\n {{ 'AbpIdentity::Save' | abpLocalization }}\n </abp-button>\n </div>\n </div>\n </div>\n</form>\n", components: [{ type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i3.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { type: i3.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { type: i3.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { type: i3.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i3.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }], pipes: { "abpLocalization": i4.LocalizationPipe } });
|
|
126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
127
|
+
IdentitySettingsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentitySettingsComponent, deps: [{ token: IdentityConfigService }, { token: i2.ToasterService }, { token: i3.FormBuilder }, { token: i4.SubscriptionService }, { token: i4.ConfigStateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
128
|
+
IdentitySettingsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: IdentitySettingsComponent, selector: "abp-identity-settings", providers: [SubscriptionService], ngImport: i0, template: "<h2>{{ 'AbpIdentity::Menu:IdentityManagement' | abpLocalization }}</h2>\r\n<hr class=\"my-4\" />\r\n<form\r\n *ngIf=\"form\"\r\n id=\"IdentitySettingsForm\"\r\n [formGroup]=\"form\"\r\n (ngSubmit)=\"submit()\"\r\n validateOnSubmit\r\n>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <div formGroupName=\"password\">\r\n <h4>{{ 'AbpIdentity::PasswordSettings' | abpLocalization }}</h4>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Password_RequiredLength\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequiredLength' | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Password_RequiredLength\"\r\n name=\"Password.RequiredLength\"\r\n class=\"form-control\"\r\n formControlName=\"requiredLength\"\r\n min=\"2\"\r\n max=\"32\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequiredLength' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Password_RequiredUniqueChars\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequiredUniqueChars' | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Password_RequiredUniqueChars\"\r\n name=\"Password.RequiredUniqueChars\"\r\n class=\"form-control\"\r\n formControlName=\"requiredUniqueChars\"\r\n min=\"0\"\r\n max=\"32\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequiredUniqueChars' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireNonAlphanumeric\"\r\n name=\"Password.RequireNonAlphanumeric\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireNonAlphanumeric\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireNonAlphanumeric\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireNonAlphanumeric'\r\n | abpLocalization\r\n }}</label>\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireNonAlphanumeric'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireLowercase\"\r\n name=\"Password.RequireLowercase\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireLowercase\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireLowercase\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireLowercase' | abpLocalization\r\n }}</label>\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireLowercase' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireUppercase\"\r\n name=\"Password.RequireUppercase\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireUppercase\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireUppercase\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireUppercase' | abpLocalization\r\n }}</label>\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireUppercase' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireDigit\"\r\n name=\"Password.RequireDigit\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireDigit\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireDigit\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireDigit' | abpLocalization\r\n }}</label>\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireDigit' | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n <div formGroupName=\"lockout\">\r\n <h4>{{ 'AbpIdentity::LockoutSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Lockout_AllowedForNewUsers\"\r\n name=\"Lockout.AllowedForNewUsers\"\r\n class=\"form-check-input\"\r\n formControlName=\"allowedForNewUsers\"\r\n /><label class=\"form-check-label\" for=\"Lockout_AllowedForNewUsers\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.AllowedForNewUsers' | abpLocalization\r\n }}</label>\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Lockout.AllowedForNewUsers' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Lockout_LockoutDuration\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.LockoutDuration' | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Lockout_LockoutDuration\"\r\n name=\"Lockout.LockoutDuration\"\r\n class=\"form-control\"\r\n formControlName=\"lockoutDuration\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Lockout.LockoutDuration' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Lockout_MaxFailedAccessAttempts\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.MaxFailedAccessAttempts'\r\n | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Lockout_MaxFailedAccessAttempts\"\r\n name=\"Lockout.MaxFailedAccessAttempts\"\r\n class=\"form-control\"\r\n formControlName=\"maxFailedAccessAttempts\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Lockout.MaxFailedAccessAttempts'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n <div formGroupName=\"signIn\">\r\n <h4>{{ 'AbpIdentity::SignInSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"SignIn_RequireConfirmedEmail\"\r\n name=\"SignIn.RequireConfirmedEmail\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireConfirmedEmail\"\r\n /><label class=\"form-check-label\" for=\"SignIn_RequireConfirmedEmail\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.RequireConfirmedEmail' | abpLocalization\r\n }}</label>\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.SignIn.RequireConfirmedEmail' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"SignIn_EnablePhoneNumberConfirmation\"\r\n name=\"SignIn.EnablePhoneNumberConfirmation\"\r\n class=\"form-check-input\"\r\n formControlName=\"enablePhoneNumberConfirmation\"\r\n /><label class=\"form-check-label\" for=\"SignIn_EnablePhoneNumberConfirmation\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.EnablePhoneNumberConfirmation'\r\n | abpLocalization\r\n }}</label>\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.SignIn.EnablePhoneNumberConfirmation'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"SignIn_RequireConfirmedPhoneNumber\"\r\n name=\"SignIn.RequireConfirmedPhoneNumber\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireConfirmedPhoneNumber\"\r\n /><label class=\"form-check-label\" for=\"SignIn_RequireConfirmedPhoneNumber\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.RequireConfirmedPhoneNumber'\r\n | abpLocalization\r\n }}</label>\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.SignIn.RequireConfirmedPhoneNumber'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n <div formGroupName=\"user\">\r\n <h4>{{ 'AbpIdentity::UserSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"User_IsEmailUpdateEnabled\"\r\n name=\"User.IsEmailUpdateEnabled\"\r\n class=\"form-check-input\"\r\n formControlName=\"isEmailUpdateEnabled\"\r\n /><label class=\"form-check-label\" for=\"User_IsEmailUpdateEnabled\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.User.IsEmailUpdateEnabled' | abpLocalization\r\n }}</label>\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.User.IsEmailUpdateEnabled' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"User_IsUserNameUpdateEnabled\"\r\n name=\"User.IsUserNameUpdateEnabled\"\r\n class=\"form-check-input\"\r\n formControlName=\"isUserNameUpdateEnabled\"\r\n /><label class=\"form-check-label\" for=\"User_IsUserNameUpdateEnabled\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.User.IsUserNameUpdateEnabled' | abpLocalization\r\n }}</label>\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.User.IsUserNameUpdateEnabled' | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-3\" />\r\n <div>\r\n <abp-button\r\n iconClass=\"fa fa-save\"\r\n [loading]=\"loading\"\r\n buttonType=\"submit\"\r\n [disabled]=\"form?.invalid\"\r\n >\r\n {{ 'AbpIdentity::Save' | abpLocalization }}\r\n </abp-button>\r\n </div>\r\n </div>\r\n </div>\r\n</form>\r\n", components: [{ type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i3.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { type: i3.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { type: i3.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { type: i3.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i3.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }], pipes: { "abpLocalization": i4.LocalizationPipe } });
|
|
129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentitySettingsComponent, decorators: [{
|
|
127
130
|
type: Component,
|
|
128
131
|
args: [{
|
|
129
132
|
selector: 'abp-identity-settings',
|
|
@@ -132,11 +135,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
132
135
|
}]
|
|
133
136
|
}], ctorParameters: function () { return [{ type: IdentityConfigService }, { type: i2.ToasterService }, { type: i3.FormBuilder }, { type: i4.SubscriptionService }, { type: i4.ConfigStateService }]; } });
|
|
134
137
|
|
|
138
|
+
class IdentityLinkLoginService {
|
|
139
|
+
constructor(oAuthService, http) {
|
|
140
|
+
this.oAuthService = oAuthService;
|
|
141
|
+
this.http = http;
|
|
142
|
+
}
|
|
143
|
+
linkLogin(input) {
|
|
144
|
+
const { tokenEndpoint, clientId, dummyClientSecret, scope } = this.oAuthService;
|
|
145
|
+
let headers = new HttpHeaders();
|
|
146
|
+
headers = headers.set('Content-Type', 'application/x-www-form-urlencoded');
|
|
147
|
+
let params = new HttpParams({ encoder: new WebHttpUrlEncodingCodec() })
|
|
148
|
+
.set('grant_type', 'LinkLogin')
|
|
149
|
+
.set('LinkUserId', input.linkUserId)
|
|
150
|
+
.set('access_token', this.oAuthService.getAccessToken())
|
|
151
|
+
.set('client_id', clientId)
|
|
152
|
+
.set('client_secret', dummyClientSecret)
|
|
153
|
+
.set('scope', scope);
|
|
154
|
+
if (input.linkTenantId) {
|
|
155
|
+
params = params.set('LinkTenantId', input.linkTenantId);
|
|
156
|
+
}
|
|
157
|
+
return this.http.post(tokenEndpoint, params, {
|
|
158
|
+
headers,
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
IdentityLinkLoginService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityLinkLoginService, deps: [{ token: i1.OAuthService }, { token: i2$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
163
|
+
IdentityLinkLoginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityLinkLoginService, providedIn: 'root' });
|
|
164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityLinkLoginService, decorators: [{
|
|
165
|
+
type: Injectable,
|
|
166
|
+
args: [{
|
|
167
|
+
providedIn: 'root',
|
|
168
|
+
}]
|
|
169
|
+
}], ctorParameters: function () { return [{ type: i1.OAuthService }, { type: i2$1.HttpClient }]; } });
|
|
170
|
+
|
|
135
171
|
class LinkLoginHandler {
|
|
136
|
-
constructor(router, route,
|
|
172
|
+
constructor(router, route, identityLinkLoginService, toaster) {
|
|
137
173
|
this.router = router;
|
|
138
174
|
this.route = route;
|
|
139
|
-
this.
|
|
175
|
+
this.identityLinkLoginService = identityLinkLoginService;
|
|
140
176
|
this.toaster = toaster;
|
|
141
177
|
this.handleLinkLoginError = (err) => {
|
|
142
178
|
var _a;
|
|
@@ -147,34 +183,62 @@ class LinkLoginHandler {
|
|
|
147
183
|
}
|
|
148
184
|
listenToQueryParams() {
|
|
149
185
|
this.route.queryParams
|
|
150
|
-
.pipe(filter(params => params.handler === 'linkLogin' && params.linkUserId), switchMap((params) =>
|
|
186
|
+
.pipe(filter(params => params.handler === 'linkLogin' && (params.linkUserId || params.token)), switchMap((params) => {
|
|
187
|
+
if (params.token) {
|
|
188
|
+
Object.entries(JSON.parse(params.token)).forEach(([key, value]) => {
|
|
189
|
+
localStorage.setItem(key, value);
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
return params.linkUserId
|
|
193
|
+
? this.linkLogin(params)
|
|
194
|
+
: of(null).pipe(this.pipeToNavigate());
|
|
195
|
+
}))
|
|
151
196
|
.subscribe();
|
|
152
197
|
}
|
|
153
198
|
linkLogin(input) {
|
|
154
|
-
return this.
|
|
199
|
+
return this.identityLinkLoginService.linkLogin(input).pipe(catchError(this.handleLinkLoginError), switchMap(res => {
|
|
200
|
+
if (res.tenant_domain) {
|
|
201
|
+
const now = new Date().valueOf();
|
|
202
|
+
const token = {
|
|
203
|
+
access_token: res.access_token,
|
|
204
|
+
refresh_token: res.refresh_token,
|
|
205
|
+
access_token_stored_at: now,
|
|
206
|
+
expires_at: now + res.expires_in * 1000,
|
|
207
|
+
};
|
|
208
|
+
location.href = `${res.tenant_domain}?handler=linkLogin&token=${JSON.stringify(token)}`;
|
|
209
|
+
return of(null);
|
|
210
|
+
}
|
|
155
211
|
localStorage.setItem('access_token', res.access_token);
|
|
156
212
|
if (res.refresh_token)
|
|
157
213
|
localStorage.setItem('refresh_token', res.refresh_token);
|
|
158
|
-
|
|
214
|
+
return of(null).pipe(this.pipeToNavigate());
|
|
215
|
+
}));
|
|
216
|
+
}
|
|
217
|
+
pipeToNavigate() {
|
|
218
|
+
return pipe(switchMap(() => from(this.router.navigate(['.'], {
|
|
159
219
|
relativeTo: this.route,
|
|
160
|
-
queryParams: { handler: null, linkUserId: null, linkTenantId: null },
|
|
220
|
+
queryParams: { handler: null, linkUserId: null, linkTenantId: null, token: null },
|
|
161
221
|
queryParamsHandling: 'merge',
|
|
162
222
|
}))), tap(() => location.reload()));
|
|
163
223
|
}
|
|
164
224
|
}
|
|
165
|
-
LinkLoginHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
166
|
-
LinkLoginHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
167
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
225
|
+
LinkLoginHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: LinkLoginHandler, deps: [{ token: i1$1.Router }, { token: i1$1.ActivatedRoute }, { token: IdentityLinkLoginService }, { token: i2.ToasterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
226
|
+
LinkLoginHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: LinkLoginHandler, providedIn: 'root' });
|
|
227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: LinkLoginHandler, decorators: [{
|
|
168
228
|
type: Injectable,
|
|
169
229
|
args: [{ providedIn: 'root' }]
|
|
170
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type:
|
|
230
|
+
}], ctorParameters: function () { return [{ type: i1$1.Router }, { type: i1$1.ActivatedRoute }, { type: IdentityLinkLoginService }, { type: i2.ToasterService }]; } });
|
|
171
231
|
|
|
172
232
|
class MyLinkUsersModalComponent {
|
|
173
233
|
constructor(injector) {
|
|
174
234
|
this.injector = injector;
|
|
175
235
|
this._isModalOpen = true;
|
|
176
236
|
this.data = [];
|
|
237
|
+
this.filteredData = [];
|
|
238
|
+
this.filterText = '';
|
|
239
|
+
this.resultCount = 0;
|
|
177
240
|
this.list = injector.get(ListService);
|
|
241
|
+
this.list.maxResultCount = 5;
|
|
178
242
|
this.linkUserService = injector.get(IdentityLinkUserService);
|
|
179
243
|
this.confirmation = injector.get(ConfirmationService);
|
|
180
244
|
this.configState = injector.get(ConfigStateService);
|
|
@@ -196,6 +260,12 @@ class MyLinkUsersModalComponent {
|
|
|
196
260
|
get currentTenant() {
|
|
197
261
|
return this.configState.getAll().currentTenant;
|
|
198
262
|
}
|
|
263
|
+
get pageStartIndex() {
|
|
264
|
+
return this.list.page * this.list.maxResultCount;
|
|
265
|
+
}
|
|
266
|
+
get pageEndIndex() {
|
|
267
|
+
return this.pageStartIndex + this.list.maxResultCount;
|
|
268
|
+
}
|
|
199
269
|
navigateToLogin() {
|
|
200
270
|
this.linkUserService.generateLinkToken().subscribe(token => {
|
|
201
271
|
if (this.authService.isInternalAuth) {
|
|
@@ -217,14 +287,33 @@ class MyLinkUsersModalComponent {
|
|
|
217
287
|
window.open(fullUrl, '_self');
|
|
218
288
|
});
|
|
219
289
|
}
|
|
290
|
+
filterByText() {
|
|
291
|
+
this.filteredData = this.getPageData(this.pageStartIndex, this.pageEndIndex);
|
|
292
|
+
}
|
|
293
|
+
getFilteredData() {
|
|
294
|
+
const list = this.data.filter(linkUser => linkUser.targetUserName.toLowerCase().includes(this.filterText.toLowerCase()));
|
|
295
|
+
this.resultCount = list.length;
|
|
296
|
+
return list;
|
|
297
|
+
}
|
|
298
|
+
getPageData(start, end) {
|
|
299
|
+
return this.getFilteredData().slice(start, end);
|
|
300
|
+
}
|
|
220
301
|
ngOnInit() {
|
|
221
302
|
this.getAllList();
|
|
222
303
|
}
|
|
223
304
|
getAllList() {
|
|
224
|
-
this.linkUserService.getAllList().subscribe(res =>
|
|
305
|
+
this.linkUserService.getAllList().subscribe(res => {
|
|
306
|
+
this.data = res.items;
|
|
307
|
+
this.filteredData = this.getPageData(this.pageStartIndex, this.pageEndIndex);
|
|
308
|
+
});
|
|
309
|
+
this.list
|
|
310
|
+
.hookToQuery(query => of({ items: this.getPageData(query.skipCount, query.skipCount + query.maxResultCount) }))
|
|
311
|
+
.subscribe(res => (this.filteredData = res.items));
|
|
225
312
|
}
|
|
226
313
|
createNewLinkUser() {
|
|
227
|
-
this.confirmation
|
|
314
|
+
this.confirmation
|
|
315
|
+
.warn('AbpAccount::NewLinkAccountWarning', 'AbpUi::AreYouSure')
|
|
316
|
+
.subscribe(res => {
|
|
228
317
|
if (res === Confirmation.Status.confirm) {
|
|
229
318
|
this.navigateToLogin();
|
|
230
319
|
}
|
|
@@ -252,13 +341,13 @@ class MyLinkUsersModalComponent {
|
|
|
252
341
|
.subscribe(() => (this.isModalOpen = false));
|
|
253
342
|
}
|
|
254
343
|
}
|
|
255
|
-
MyLinkUsersModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
256
|
-
MyLinkUsersModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
344
|
+
MyLinkUsersModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: MyLinkUsersModalComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
345
|
+
MyLinkUsersModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: MyLinkUsersModalComponent, selector: "abp-my-link-users-modal", providers: [ListService], ngImport: i0, template: "<abp-modal [(visible)]=\"isModalOpen\" [suppressUnsavedChangesWarning]=\"true\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">{{ 'AbpAccount::LinkedAccounts' | abpLocalization }}</h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <div class=\"text-end mb-3\">\r\n <button\r\n id=\"create-link-user\"\r\n class=\"btn btn-primary\"\r\n type=\"button\"\r\n (click)=\"createNewLinkUser()\"\r\n >\r\n {{ 'AbpAccount::NewLinkAccount' | abpLocalization }}\r\n </button>\r\n\r\n <div class=\"mt-2\">\r\n <label class=\"form-label d-inline-block\">\r\n {{ 'AbpAccount::Search' | abpLocalization }}\r\n <input\r\n type=\"search\"\r\n class=\"form-control form-control-sm d-inline-block w-auto\"\r\n [(ngModel)]=\"filterText\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"filterByText()\"\r\n aria-controls=\"MyLinkUsersTable\"\r\n />\r\n </label>\r\n </div>\r\n <div class=\"mt-2\">\r\n <ngx-datatable [rows]=\"filteredData\" [count]=\"resultCount\" [list]=\"list\" default>\r\n <ngx-datatable-column\r\n [name]=\"'AbpUi::Actions' | abpLocalization\"\r\n [maxWidth]=\"150\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button\r\n class=\"btn btn-primary btn-sm dropdown-toggle\"\r\n data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\"\r\n ngbDropdownToggle\r\n >\r\n <i class=\"fa fa-cog me-1\"></i>{{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"LoginAsThisAccount(row)\">\r\n {{ 'AbpAccount::LoginAsThisAccount' | abpLocalization }}\r\n </button>\r\n <button *ngIf=\"row.directlyLinked\" ngbDropdownItem (click)=\"delete(row)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column [name]=\"'AbpAccount::UserName' | abpLocalization\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <a href=\"javascript:void(0)\" class=\"text-body\" (click)=\"LoginAsThisAccount(row)\">\r\n {{ row.targetTenantName ? row.targetTenantName + '\\\\' : ''\r\n }}{{ row.targetUserName }}\r\n </a>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column [name]=\"'AbpAccount::DirectlyLinked' | abpLocalization\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <i class=\"fas fa-{{ row.directlyLinked ? 'check' : 'times' }}\"></i>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</abp-modal>\r\n", components: [{ type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i2$2.DatatableComponent, selector: "ngx-datatable", inputs: ["selected", "scrollbarV", "scrollbarH", "rowHeight", "columnMode", "headerHeight", "footerHeight", "externalPaging", "externalSorting", "loadingIndicator", "reorderable", "swapColumns", "sortType", "sorts", "cssClasses", "messages", "groupExpansionDefault", "selectAllRowsOnPage", "virtualization", "summaryRow", "summaryHeight", "summaryPosition", "rowIdentity", "rows", "groupedRows", "groupRowsBy", "columns", "limit", "count", "offset", "targetMarkerTemplate", "selectionType", "rowClass", "selectCheck", "displayCheck", "trackByProp", "treeFromRelation", "treeToRelation"], outputs: ["scroll", "activate", "select", "sort", "page", "reorder", "resize", "tableContextmenu", "treeAction"] }], directives: [{ type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2.NgxDatatableDefaultDirective, selector: "ngx-datatable[default]", inputs: ["class"], exportAs: ["ngxDatatableDefault"] }, { type: i2.NgxDatatableListDirective, selector: "ngx-datatable[list]", inputs: ["list"], exportAs: ["ngxDatatableList"] }, { type: i2$2.DataTableColumnDirective, selector: "ngx-datatable-column", inputs: ["name", "prop", "frozenLeft", "frozenRight", "flexGrow", "resizeable", "comparator", "pipe", "sortable", "draggable", "canAutoResize", "minWidth", "width", "maxWidth", "checkboxable", "headerCheckboxable", "headerClass", "cellClass", "isTreeColumn", "treeLevelIndent", "summaryFunc", "summaryTemplate", "cellTemplate", "headerTemplate", "treeToggleTemplate"] }, { type: i2$2.DataTableColumnCellDirective, selector: "[ngx-datatable-cell-template]" }, { type: i4$1.NgbDropdown, selector: "[ngbDropdown]", inputs: ["open", "placement", "container", "autoClose", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { type: i4$1.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { type: i4$1.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { type: i4$1.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "abpLocalization": i4.LocalizationPipe } });
|
|
346
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: MyLinkUsersModalComponent, decorators: [{
|
|
258
347
|
type: Component,
|
|
259
348
|
args: [{
|
|
260
349
|
selector: 'abp-my-link-users-modal',
|
|
261
|
-
templateUrl: 'my-link-users-modal.component.html',
|
|
350
|
+
templateUrl: './my-link-users-modal.component.html',
|
|
262
351
|
providers: [ListService],
|
|
263
352
|
}]
|
|
264
353
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
@@ -363,10 +452,10 @@ class IdentityConfigModule {
|
|
|
363
452
|
};
|
|
364
453
|
}
|
|
365
454
|
}
|
|
366
|
-
IdentityConfigModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
367
|
-
IdentityConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
368
|
-
IdentityConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
369
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
455
|
+
IdentityConfigModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
456
|
+
IdentityConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityConfigModule, declarations: [IdentitySettingsComponent, MyLinkUsersModalComponent], imports: [CoreModule, ThemeSharedModule, NgbDropdownModule], exports: [IdentitySettingsComponent, MyLinkUsersModalComponent] });
|
|
457
|
+
IdentityConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityConfigModule, imports: [[CoreModule, ThemeSharedModule, NgbDropdownModule]] });
|
|
458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityConfigModule, decorators: [{
|
|
370
459
|
type: NgModule,
|
|
371
460
|
args: [{
|
|
372
461
|
imports: [CoreModule, ThemeSharedModule, NgbDropdownModule],
|
|
@@ -379,5 +468,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
379
468
|
* Generated bundle index. Do not edit.
|
|
380
469
|
*/
|
|
381
470
|
|
|
382
|
-
export { IDENTITY_ROUTE_PROVIDERS, IDENTITY_SETTING_TAB_PROVIDERS, IdentityConfigModule, IdentityConfigService, IdentitySettingsComponent, LinkLoginHandler, MyLinkUsersModalComponent, configureRoutes, configureSettingTabs };
|
|
471
|
+
export { IDENTITY_ROUTE_PROVIDERS, IDENTITY_SETTING_TAB_PROVIDERS, IdentityConfigModule, IdentityConfigService, IdentityLinkLoginService, IdentitySettingsComponent, LinkLoginHandler, MyLinkUsersModalComponent, configureRoutes, configureSettingTabs };
|
|
383
472
|
//# sourceMappingURL=volo-abp.ng.identity-config.js.map
|
|
@@ -32,9 +32,9 @@ class IdentityClaimTypeService {
|
|
|
32
32
|
}, { apiName: this.apiName });
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
IdentityClaimTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
36
|
-
IdentityClaimTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
35
|
+
IdentityClaimTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityClaimTypeService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
36
|
+
IdentityClaimTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityClaimTypeService, providedIn: 'root' });
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityClaimTypeService, decorators: [{
|
|
38
38
|
type: Injectable,
|
|
39
39
|
args: [{
|
|
40
40
|
providedIn: 'root',
|
|
@@ -50,50 +50,6 @@ var IdentityClaimValueType;
|
|
|
50
50
|
})(IdentityClaimValueType || (IdentityClaimValueType = {}));
|
|
51
51
|
const identityClaimValueTypeOptions = mapEnumToOptions(IdentityClaimValueType);
|
|
52
52
|
|
|
53
|
-
class IdentityLinkUserService {
|
|
54
|
-
constructor(restService) {
|
|
55
|
-
this.restService = restService;
|
|
56
|
-
this.apiName = 'AbpIdentity';
|
|
57
|
-
this.generateLinkToken = () => this.restService.request({
|
|
58
|
-
method: 'POST',
|
|
59
|
-
responseType: 'text',
|
|
60
|
-
url: '/api/identity/link-user/generate-link-token',
|
|
61
|
-
}, { apiName: this.apiName });
|
|
62
|
-
this.getAllList = () => this.restService.request({
|
|
63
|
-
method: 'GET',
|
|
64
|
-
url: '/api/identity/link-user',
|
|
65
|
-
}, { apiName: this.apiName });
|
|
66
|
-
this.isLinked = (input) => this.restService.request({
|
|
67
|
-
method: 'POST',
|
|
68
|
-
url: '/api/identity/link-user/is-linked',
|
|
69
|
-
body: input,
|
|
70
|
-
}, { apiName: this.apiName });
|
|
71
|
-
this.link = (input) => this.restService.request({
|
|
72
|
-
method: 'POST',
|
|
73
|
-
url: '/api/identity/link-user/link',
|
|
74
|
-
body: input,
|
|
75
|
-
}, { apiName: this.apiName });
|
|
76
|
-
this.unlink = (input) => this.restService.request({
|
|
77
|
-
method: 'POST',
|
|
78
|
-
url: '/api/identity/link-user/unlink',
|
|
79
|
-
body: input,
|
|
80
|
-
}, { apiName: this.apiName });
|
|
81
|
-
this.verifyLinkToken = (token) => this.restService.request({
|
|
82
|
-
method: 'POST',
|
|
83
|
-
url: '/api/identity/link-user/verify-link-token',
|
|
84
|
-
body: token,
|
|
85
|
-
}, { apiName: this.apiName });
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
IdentityLinkUserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: IdentityLinkUserService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
89
|
-
IdentityLinkUserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: IdentityLinkUserService, providedIn: 'root' });
|
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: IdentityLinkUserService, decorators: [{
|
|
91
|
-
type: Injectable,
|
|
92
|
-
args: [{
|
|
93
|
-
providedIn: 'root',
|
|
94
|
-
}]
|
|
95
|
-
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
96
|
-
|
|
97
53
|
class IdentityRoleService {
|
|
98
54
|
constructor(restService) {
|
|
99
55
|
this.restService = restService;
|
|
@@ -140,9 +96,9 @@ class IdentityRoleService {
|
|
|
140
96
|
}, { apiName: this.apiName });
|
|
141
97
|
}
|
|
142
98
|
}
|
|
143
|
-
IdentityRoleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
144
|
-
IdentityRoleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
99
|
+
IdentityRoleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityRoleService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
100
|
+
IdentityRoleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityRoleService, providedIn: 'root' });
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityRoleService, decorators: [{
|
|
146
102
|
type: Injectable,
|
|
147
103
|
args: [{
|
|
148
104
|
providedIn: 'root',
|
|
@@ -173,9 +129,9 @@ class IdentitySecurityLogService {
|
|
|
173
129
|
}, { apiName: this.apiName });
|
|
174
130
|
}
|
|
175
131
|
}
|
|
176
|
-
IdentitySecurityLogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
177
|
-
IdentitySecurityLogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
178
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
132
|
+
IdentitySecurityLogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentitySecurityLogService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
133
|
+
IdentitySecurityLogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentitySecurityLogService, providedIn: 'root' });
|
|
134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentitySecurityLogService, decorators: [{
|
|
179
135
|
type: Injectable,
|
|
180
136
|
args: [{
|
|
181
137
|
providedIn: 'root',
|
|
@@ -197,9 +153,9 @@ class IdentitySettingsService {
|
|
|
197
153
|
}, { apiName: this.apiName });
|
|
198
154
|
}
|
|
199
155
|
}
|
|
200
|
-
IdentitySettingsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
201
|
-
IdentitySettingsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
156
|
+
IdentitySettingsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentitySettingsService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
157
|
+
IdentitySettingsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentitySettingsService, providedIn: 'root' });
|
|
158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentitySettingsService, decorators: [{
|
|
203
159
|
type: Injectable,
|
|
204
160
|
args: [{
|
|
205
161
|
providedIn: 'root',
|
|
@@ -230,9 +186,9 @@ class IdentityUserLookupService {
|
|
|
230
186
|
}, { apiName: this.apiName });
|
|
231
187
|
}
|
|
232
188
|
}
|
|
233
|
-
IdentityUserLookupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
234
|
-
IdentityUserLookupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
189
|
+
IdentityUserLookupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityUserLookupService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
190
|
+
IdentityUserLookupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityUserLookupService, providedIn: 'root' });
|
|
191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityUserLookupService, decorators: [{
|
|
236
192
|
type: Injectable,
|
|
237
193
|
args: [{
|
|
238
194
|
providedIn: 'root',
|
|
@@ -283,12 +239,20 @@ class IdentityUserService {
|
|
|
283
239
|
this.getList = (input) => this.restService.request({
|
|
284
240
|
method: 'GET',
|
|
285
241
|
url: '/api/identity/users',
|
|
286
|
-
params: { filter: input.filter, roleId: input.roleId, organizationUnitId: input.organizationUnitId, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
242
|
+
params: { filter: input.filter, roleId: input.roleId, organizationUnitId: input.organizationUnitId, userName: input.userName, phoneNumber: input.phoneNumber, emailAddress: input.emailAddress, isLockedOut: input.isLockedOut, notActive: input.notActive, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
243
|
+
}, { apiName: this.apiName });
|
|
244
|
+
this.getOrganizationUnitLookup = () => this.restService.request({
|
|
245
|
+
method: 'GET',
|
|
246
|
+
url: '/api/identity/users/lookup/organization-units',
|
|
287
247
|
}, { apiName: this.apiName });
|
|
288
248
|
this.getOrganizationUnits = (id) => this.restService.request({
|
|
289
249
|
method: 'GET',
|
|
290
250
|
url: `/api/identity/users/${id}/organization-units`,
|
|
291
251
|
}, { apiName: this.apiName });
|
|
252
|
+
this.getRoleLookup = () => this.restService.request({
|
|
253
|
+
method: 'GET',
|
|
254
|
+
url: '/api/identity/users/lookup/roles',
|
|
255
|
+
}, { apiName: this.apiName });
|
|
292
256
|
this.getRoles = (id) => this.restService.request({
|
|
293
257
|
method: 'GET',
|
|
294
258
|
url: `/api/identity/users/${id}/roles`,
|
|
@@ -297,9 +261,9 @@ class IdentityUserService {
|
|
|
297
261
|
method: 'GET',
|
|
298
262
|
url: `/api/identity/users/${id}/two-factor-enabled`,
|
|
299
263
|
}, { apiName: this.apiName });
|
|
300
|
-
this.lock = (id,
|
|
264
|
+
this.lock = (id, lockoutEnd) => this.restService.request({
|
|
301
265
|
method: 'PUT',
|
|
302
|
-
url: `/api/identity/users/${id}/lock/${
|
|
266
|
+
url: `/api/identity/users/${id}/lock/${lockoutEnd}`,
|
|
303
267
|
}, { apiName: this.apiName });
|
|
304
268
|
this.setTwoFactorEnabled = (id, enabled) => this.restService.request({
|
|
305
269
|
method: 'PUT',
|
|
@@ -331,9 +295,9 @@ class IdentityUserService {
|
|
|
331
295
|
}, { apiName: this.apiName });
|
|
332
296
|
}
|
|
333
297
|
}
|
|
334
|
-
IdentityUserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
335
|
-
IdentityUserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
336
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
298
|
+
IdentityUserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityUserService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
299
|
+
IdentityUserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityUserService, providedIn: 'root' });
|
|
300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityUserService, decorators: [{
|
|
337
301
|
type: Injectable,
|
|
338
302
|
args: [{
|
|
339
303
|
providedIn: 'root',
|
|
@@ -390,7 +354,7 @@ class OrganizationUnitService {
|
|
|
390
354
|
this.getMembers = (id, input) => this.restService.request({
|
|
391
355
|
method: 'GET',
|
|
392
356
|
url: `/api/identity/organization-units/${id}/members`,
|
|
393
|
-
params: { filter: input.filter, roleId: input.roleId, organizationUnitId: input.organizationUnitId, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
357
|
+
params: { filter: input.filter, roleId: input.roleId, organizationUnitId: input.organizationUnitId, userName: input.userName, phoneNumber: input.phoneNumber, emailAddress: input.emailAddress, isLockedOut: input.isLockedOut, notActive: input.notActive, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
394
358
|
}, { apiName: this.apiName });
|
|
395
359
|
this.getRoles = (id, input) => this.restService.request({
|
|
396
360
|
method: 'GET',
|
|
@@ -417,47 +381,9 @@ class OrganizationUnitService {
|
|
|
417
381
|
}, { apiName: this.apiName });
|
|
418
382
|
}
|
|
419
383
|
}
|
|
420
|
-
OrganizationUnitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
421
|
-
OrganizationUnitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
423
|
-
type: Injectable,
|
|
424
|
-
args: [{
|
|
425
|
-
providedIn: 'root',
|
|
426
|
-
}]
|
|
427
|
-
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
428
|
-
|
|
429
|
-
class ProfileService {
|
|
430
|
-
constructor(restService) {
|
|
431
|
-
this.restService = restService;
|
|
432
|
-
this.apiName = 'AbpIdentity';
|
|
433
|
-
this.changePassword = (input) => this.restService.request({
|
|
434
|
-
method: 'POST',
|
|
435
|
-
url: '/api/identity/my-profile/change-password',
|
|
436
|
-
body: input,
|
|
437
|
-
}, { apiName: this.apiName });
|
|
438
|
-
this.get = () => this.restService.request({
|
|
439
|
-
method: 'GET',
|
|
440
|
-
url: '/api/identity/my-profile',
|
|
441
|
-
}, { apiName: this.apiName });
|
|
442
|
-
this.getTwoFactorEnabled = () => this.restService.request({
|
|
443
|
-
method: 'GET',
|
|
444
|
-
url: '/api/identity/my-profile/two-factor-enabled',
|
|
445
|
-
}, { apiName: this.apiName });
|
|
446
|
-
this.setTwoFactorEnabled = (enabled) => this.restService.request({
|
|
447
|
-
method: 'POST',
|
|
448
|
-
url: '/api/identity/my-profile/set-two-factor-enabled',
|
|
449
|
-
params: { enabled },
|
|
450
|
-
}, { apiName: this.apiName });
|
|
451
|
-
this.update = (input) => this.restService.request({
|
|
452
|
-
method: 'PUT',
|
|
453
|
-
url: '/api/identity/my-profile',
|
|
454
|
-
body: input,
|
|
455
|
-
}, { apiName: this.apiName });
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
ProfileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: ProfileService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
459
|
-
ProfileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: ProfileService, providedIn: 'root' });
|
|
460
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: ProfileService, decorators: [{
|
|
384
|
+
OrganizationUnitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: OrganizationUnitService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
385
|
+
OrganizationUnitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: OrganizationUnitService, providedIn: 'root' });
|
|
386
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: OrganizationUnitService, decorators: [{
|
|
461
387
|
type: Injectable,
|
|
462
388
|
args: [{
|
|
463
389
|
providedIn: 'root',
|
|
@@ -468,5 +394,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
468
394
|
* Generated bundle index. Do not edit.
|
|
469
395
|
*/
|
|
470
396
|
|
|
471
|
-
export { IdentityClaimTypeService, IdentityClaimValueType,
|
|
397
|
+
export { IdentityClaimTypeService, IdentityClaimValueType, IdentityRoleService, IdentitySecurityLogService, IdentitySettingsService, IdentityUserLookupService, IdentityUserService, OrganizationUnitService, identityClaimValueTypeOptions };
|
|
472
398
|
//# sourceMappingURL=volo-abp.ng.identity-proxy.js.map
|