fix(console): table pagination, diverse optimizations, lint workspace (#1563)

* show app redirect issues, action layout

* refactor pagination

* tos, privacy

* new paginator everywhere

* layout width and table optim

* lint pt1

* lint config, ts

* stylelint

* chore(deps-dev): bump @angular/cli from 11.2.7 to 11.2.8 in /console (#1566)

* fix: remove app name check on ChangeAPIApplication (#1561)

* fix: remove app name check on ChangeAPIApplication

* fix APIConfigInvalid message

* chore(workflow): ignore tags for docs and codecov flows (#1564)

* chore(deps-dev): bump @angular/cli from 11.2.7 to 11.2.8 in /console

Bumps [@angular/cli](https://github.com/angular/angular-cli) from 11.2.7 to 11.2.8.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/compare/v11.2.7...v11.2.8)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Livio Amstutz <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump jasmine-spec-reporter from 6.0.0 to 7.0.0 in /console (#1573)

* fix: remove app name check on ChangeAPIApplication (#1561)

* fix: remove app name check on ChangeAPIApplication

* fix APIConfigInvalid message

* chore(workflow): ignore tags for docs and codecov flows (#1564)

* chore(deps-dev): bump jasmine-spec-reporter in /console

Bumps [jasmine-spec-reporter](https://github.com/bcaudan/jasmine-spec-reporter) from 6.0.0 to 7.0.0.
- [Release notes](https://github.com/bcaudan/jasmine-spec-reporter/releases)
- [Changelog](https://github.com/bcaudan/jasmine-spec-reporter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcaudan/jasmine-spec-reporter/compare/v6.0.0...v7.0.0)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Livio Amstutz <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @angular-devkit/build-angular from 0.1102.7 to 0.1102.8 in /console (#1574)

* fix: remove app name check on ChangeAPIApplication (#1561)

* fix: remove app name check on ChangeAPIApplication

* fix APIConfigInvalid message

* chore(workflow): ignore tags for docs and codecov flows (#1564)

* chore(deps-dev): bump @angular-devkit/build-angular in /console

Bumps [@angular-devkit/build-angular](https://github.com/angular/angular-cli) from 0.1102.7 to 0.1102.8.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/commits)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Livio Amstutz <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <[email protected]>

* chore(deps): bump @types/file-saver from 2.0.1 to 2.0.2 in /console (#1576)

* fix: remove app name check on ChangeAPIApplication (#1561)

* fix: remove app name check on ChangeAPIApplication

* fix APIConfigInvalid message

* chore(workflow): ignore tags for docs and codecov flows (#1564)

* chore(deps): bump @types/file-saver from 2.0.1 to 2.0.2 in /console

Bumps [@types/file-saver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/file-saver) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/file-saver)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Livio Amstutz <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @angular/language-service from 11.2.8 to 11.2.9 in /console (#1567)

* fix: remove app name check on ChangeAPIApplication (#1561)

* fix: remove app name check on ChangeAPIApplication

* fix APIConfigInvalid message

* chore(workflow): ignore tags for docs and codecov flows (#1564)

* chore(deps-dev): bump @angular/language-service in /console

Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 11.2.8 to 11.2.9.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/commits/11.2.9/packages/language-service)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Livio Amstutz <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* update protobuf, libphone

* chore(deps): bump rxjs from 6.6.3 to 6.6.7 in /console (#1488)

Bumps [rxjs](https://github.com/reactivex/rxjs) from 6.6.3 to 6.6.7.
- [Release notes](https://github.com/reactivex/rxjs/releases)
- [Changelog](https://github.com/ReactiveX/rxjs/blob/6.6.7/CHANGELOG.md)
- [Commits](https://github.com/reactivex/rxjs/compare/6.6.3...6.6.7)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @types/jasmine from 3.6.3 to 3.6.9 in /console (#1485)

Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.6.3 to 3.6.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <[email protected]>

* chore(deps-dev): bump jasmine-core from 3.6.0 to 3.7.1 in /console (#1445)

Bumps [jasmine-core](https://github.com/jasmine/jasmine) from 3.6.0 to 3.7.1.
- [Release notes](https://github.com/jasmine/jasmine/releases)
- [Changelog](https://github.com/jasmine/jasmine/blob/main/RELEASE.md)
- [Commits](https://github.com/jasmine/jasmine/compare/v3.6.0...v3.7.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
Max Peintner
2021-04-15 15:54:10 +02:00
committed by GitHub
co-authored by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Livio Amstutz
parent b0681a0bbe
commit 56b527060b
142 changed files with 2055 additions and 1585 deletions
+48 -44
View File
@@ -123,15 +123,17 @@ export class AdminService {
public listLoginPolicyMultiFactors(): Promise<ListLoginPolicyMultiFactorsResponse.AsObject> {
const req = new ListLoginPolicyMultiFactorsRequest();
return this.grpcService.admin.listLoginPolicyMultiFactors(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.listLoginPolicyMultiFactors(req, null).then(resp => resp.toObject());
}
public addMultiFactorToLoginPolicy(req: AddMultiFactorToLoginPolicyRequest): Promise<AddMultiFactorToLoginPolicyResponse.AsObject> {
return this.grpcService.admin.addMultiFactorToLoginPolicy(req, null).then(resp => resp.toObject());;
public addMultiFactorToLoginPolicy(req: AddMultiFactorToLoginPolicyRequest):
Promise<AddMultiFactorToLoginPolicyResponse.AsObject> {
return this.grpcService.admin.addMultiFactorToLoginPolicy(req, null).then(resp => resp.toObject());
}
public removeMultiFactorFromLoginPolicy(req: RemoveMultiFactorFromLoginPolicyRequest): Promise<RemoveMultiFactorFromLoginPolicyResponse.AsObject> {
return this.grpcService.admin.removeMultiFactorFromLoginPolicy(req, null).then(resp => resp.toObject());;
public removeMultiFactorFromLoginPolicy(req: RemoveMultiFactorFromLoginPolicyRequest):
Promise<RemoveMultiFactorFromLoginPolicyResponse.AsObject> {
return this.grpcService.admin.removeMultiFactorFromLoginPolicy(req, null).then(resp => resp.toObject());
}
public listLoginPolicySecondFactors(): Promise<ListLoginPolicySecondFactorsResponse.AsObject> {
@@ -139,34 +141,36 @@ export class AdminService {
return this.grpcService.admin.listLoginPolicySecondFactors(req, null).then(resp => resp.toObject());
}
public addSecondFactorToLoginPolicy(req: AddSecondFactorToLoginPolicyRequest): Promise<AddSecondFactorToLoginPolicyResponse.AsObject> {
return this.grpcService.admin.addSecondFactorToLoginPolicy(req, null).then(resp => resp.toObject());;
public addSecondFactorToLoginPolicy(req: AddSecondFactorToLoginPolicyRequest):
Promise<AddSecondFactorToLoginPolicyResponse.AsObject> {
return this.grpcService.admin.addSecondFactorToLoginPolicy(req, null).then(resp => resp.toObject());
}
public removeSecondFactorFromLoginPolicy(req: RemoveSecondFactorFromLoginPolicyRequest): Promise<RemoveSecondFactorFromLoginPolicyResponse.AsObject> {
return this.grpcService.admin.removeSecondFactorFromLoginPolicy(req, null).then(resp => resp.toObject());;
public removeSecondFactorFromLoginPolicy(req: RemoveSecondFactorFromLoginPolicyRequest):
Promise<RemoveSecondFactorFromLoginPolicyResponse.AsObject> {
return this.grpcService.admin.removeSecondFactorFromLoginPolicy(req, null).then(resp => resp.toObject());
}
public listIAMMemberRoles(): Promise<ListIAMMemberRolesResponse.AsObject> {
const req = new ListIAMMemberRolesRequest();
return this.grpcService.admin.listIAMMemberRoles(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.listIAMMemberRoles(req, null).then(resp => resp.toObject());
}
public listViews(): Promise<ListViewsResponse.AsObject> {
const req = new ListViewsRequest();
return this.grpcService.admin.listViews(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.listViews(req, null).then(resp => resp.toObject());
}
public listFailedEvents(): Promise<ListFailedEventsResponse.AsObject> {
const req = new ListFailedEventsRequest();
return this.grpcService.admin.listFailedEvents(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.listFailedEvents(req, null).then(resp => resp.toObject());
}
public clearView(viewname: string, db: string): Promise<ClearViewResponse.AsObject> {
const req = new ClearViewRequest();
req.setDatabase(db);
req.setViewName(viewname);
return this.grpcService.admin.clearView(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.clearView(req, null).then(resp => resp.toObject());
}
public removeFailedEvent(viewname: string, db: string, sequence: number): Promise<RemoveFailedEventResponse.AsObject> {
@@ -174,7 +178,7 @@ export class AdminService {
req.setDatabase(db);
req.setViewName(viewname);
req.setFailedSequence(sequence);
return this.grpcService.admin.removeFailedEvent(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.removeFailedEvent(req, null).then(resp => resp.toObject());
}
// Features
@@ -210,7 +214,7 @@ export class AdminService {
public getPasswordComplexityPolicy(): Promise<GetPasswordComplexityPolicyResponse.AsObject> {
const req = new GetPasswordComplexityPolicyRequest();
return this.grpcService.admin.getPasswordComplexityPolicy(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.getPasswordComplexityPolicy(req, null).then(resp => resp.toObject());
}
public updatePasswordComplexityPolicy(
@@ -226,7 +230,7 @@ export class AdminService {
req.setHasNumber(hasNumber);
req.setHasSymbol(hasSymbol);
req.setMinLength(minLength);
return this.grpcService.admin.updatePasswordComplexityPolicy(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.updatePasswordComplexityPolicy(req, null).then(resp => resp.toObject());
}
/* age */
@@ -234,7 +238,7 @@ export class AdminService {
public getPasswordAgePolicy(): Promise<GetPasswordAgePolicyResponse.AsObject> {
const req = new GetPasswordAgePolicyRequest();
return this.grpcService.admin.getPasswordAgePolicy(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.getPasswordAgePolicy(req, null).then(resp => resp.toObject());
}
public updatePasswordAgePolicy(
@@ -245,14 +249,14 @@ export class AdminService {
req.setMaxAgeDays(maxAgeDays);
req.setExpireWarnDays(expireWarnDays);
return this.grpcService.admin.updatePasswordAgePolicy(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.updatePasswordAgePolicy(req, null).then(resp => resp.toObject());
}
/* lockout */
public getPasswordLockoutPolicy(): Promise<GetPasswordLockoutPolicyResponse.AsObject> {
const req = new GetPasswordLockoutPolicyRequest();
return this.grpcService.admin.getPasswordLockoutPolicy(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.getPasswordLockoutPolicy(req, null).then(resp => resp.toObject());
}
public updatePasswordLockoutPolicy(
@@ -263,7 +267,7 @@ export class AdminService {
req.setMaxAttempts(maxAttempts);
req.setShowLockoutFailure(showLockoutFailures);
return this.grpcService.admin.updatePasswordLockoutPolicy(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.updatePasswordLockoutPolicy(req, null).then(resp => resp.toObject());
}
/* label */
@@ -274,7 +278,7 @@ export class AdminService {
}
public updateLabelPolicy(req: UpdateLabelPolicyRequest): Promise<UpdateLabelPolicyResponse.AsObject> {
return this.grpcService.admin.updateLabelPolicy(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.updateLabelPolicy(req, null).then(resp => resp.toObject());
}
/* login */
@@ -282,11 +286,11 @@ export class AdminService {
public getLoginPolicy(
): Promise<GetLoginPolicyResponse.AsObject> {
const req = new GetLoginPolicyRequest();
return this.grpcService.admin.getLoginPolicy(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.getLoginPolicy(req, null).then(resp => resp.toObject());
}
public updateLoginPolicy(req: UpdateLoginPolicyRequest): Promise<UpdateLoginPolicyResponse.AsObject> {
return this.grpcService.admin.updateLoginPolicy(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.updateLoginPolicy(req, null).then(resp => resp.toObject());
}
/* org iam */
@@ -294,7 +298,7 @@ export class AdminService {
public getCustomOrgIAMPolicy(orgId: string): Promise<GetCustomOrgIAMPolicyResponse.AsObject> {
const req = new GetCustomOrgIAMPolicyRequest();
req.setOrgId(orgId);
return this.grpcService.admin.getCustomOrgIAMPolicy(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.getCustomOrgIAMPolicy(req, null).then(resp => resp.toObject());
}
public addCustomOrgIAMPolicy(
@@ -304,7 +308,7 @@ export class AdminService {
req.setOrgId(orgId);
req.setUserLoginMustBeDomain(userLoginMustBeDomain);
return this.grpcService.admin.addCustomOrgIAMPolicy(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.addCustomOrgIAMPolicy(req, null).then(resp => resp.toObject());
}
public updateCustomOrgIAMPolicy(
@@ -313,7 +317,7 @@ export class AdminService {
const req = new UpdateCustomOrgIAMPolicyRequest();
req.setOrgId(orgId);
req.setUserLoginMustBeDomain(userLoginMustBeDomain);
return this.grpcService.admin.updateCustomOrgIAMPolicy(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.updateCustomOrgIAMPolicy(req, null).then(resp => resp.toObject());
}
public resetCustomOrgIAMPolicyToDefault(
@@ -321,20 +325,20 @@ export class AdminService {
): Promise<ResetCustomOrgIAMPolicyToDefaultResponse.AsObject> {
const req = new ResetCustomOrgIAMPolicyToDefaultRequest();
req.setOrgId(orgId);
return this.grpcService.admin.resetCustomOrgIAMPolicyToDefault(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.resetCustomOrgIAMPolicyToDefault(req, null).then(resp => resp.toObject());
}
/* admin iam */
public getOrgIAMPolicy(): Promise<GetOrgIAMPolicyResponse.AsObject> {
const req = new GetOrgIAMPolicyRequest();
return this.grpcService.admin.getOrgIAMPolicy(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.getOrgIAMPolicy(req, null).then(resp => resp.toObject());
}
public updateOrgIAMPolicy(userLoginMustBeDomain: boolean): Promise<UpdateOrgIAMPolicyResponse.AsObject> {
const req = new UpdateOrgIAMPolicyRequest();
req.setUserLoginMustBeDomain(userLoginMustBeDomain);
return this.grpcService.admin.updateOrgIAMPolicy(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.updateOrgIAMPolicy(req, null).then(resp => resp.toObject());
}
/* policies end */
@@ -342,13 +346,13 @@ export class AdminService {
public addIDPToLoginPolicy(idpId: string): Promise<AddIDPToLoginPolicyResponse.AsObject> {
const req = new AddIDPToLoginPolicyRequest();
req.setIdpId(idpId);
return this.grpcService.admin.addIDPToLoginPolicy(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.addIDPToLoginPolicy(req, null).then(resp => resp.toObject());
}
public removeIDPFromLoginPolicy(idpId: string): Promise<RemoveIDPFromLoginPolicyResponse.AsObject> {
const req = new RemoveIDPFromLoginPolicyRequest();
req.setIdpId(idpId);
return this.grpcService.admin.removeIDPFromLoginPolicy(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.removeIDPFromLoginPolicy(req, null).then(resp => resp.toObject());
}
public listLoginPolicyIDPs(limit?: number, offset?: number): Promise<ListLoginPolicyIDPsResponse.AsObject> {
@@ -361,7 +365,7 @@ export class AdminService {
query.setOffset(offset);
}
req.setQuery(query);
return this.grpcService.admin.listLoginPolicyIDPs(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.listLoginPolicyIDPs(req, null).then(resp => resp.toObject());
}
public listIDPs(
@@ -382,7 +386,7 @@ export class AdminService {
req.setQueriesList(queriesList);
}
req.setQuery(query);
return this.grpcService.admin.listIDPs(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.listIDPs(req, null).then(resp => resp.toObject());
}
public getIDPByID(
@@ -390,25 +394,25 @@ export class AdminService {
): Promise<GetIDPByIDResponse.AsObject> {
const req = new GetIDPByIDRequest();
req.setId(id);
return this.grpcService.admin.getIDPByID(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.getIDPByID(req, null).then(resp => resp.toObject());
}
public updateIDP(
req: UpdateIDPRequest,
): Promise<UpdateIDPResponse.AsObject> {
return this.grpcService.admin.updateIDP(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.updateIDP(req, null).then(resp => resp.toObject());
}
public addOIDCIDP(
req: AddOIDCIDPRequest,
): Promise<AddOIDCIDPResponse.AsObject> {
return this.grpcService.admin.addOIDCIDP(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.addOIDCIDP(req, null).then(resp => resp.toObject());
}
public updateIDPOIDCConfig(
req: UpdateIDPOIDCConfigRequest,
): Promise<UpdateIDPOIDCConfigResponse.AsObject> {
return this.grpcService.admin.updateIDPOIDCConfig(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.updateIDPOIDCConfig(req, null).then(resp => resp.toObject());
}
public removeIDP(
@@ -416,7 +420,7 @@ export class AdminService {
): Promise<RemoveIDPResponse.AsObject> {
const req = new RemoveIDPRequest;
req.setIdpId(id);
return this.grpcService.admin.removeIDP(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.removeIDP(req, null).then(resp => resp.toObject());
}
public deactivateIDP(
@@ -424,7 +428,7 @@ export class AdminService {
): Promise<DeactivateIDPResponse.AsObject> {
const req = new DeactivateIDPRequest;
req.setIdpId(id);
return this.grpcService.admin.deactivateIDP(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.deactivateIDP(req, null).then(resp => resp.toObject());
}
public reactivateIDP(
@@ -432,7 +436,7 @@ export class AdminService {
): Promise<ReactivateIDPResponse.AsObject> {
const req = new ReactivateIDPRequest;
req.setIdpId(id);
return this.grpcService.admin.reactivateIDP(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.reactivateIDP(req, null).then(resp => resp.toObject());
}
public listIAMMembers(
@@ -453,7 +457,7 @@ export class AdminService {
}
req.setQuery(metadata);
return this.grpcService.admin.listIAMMembers(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.listIAMMembers(req, null).then(resp => resp.toObject());
}
public removeIAMMember(
@@ -461,7 +465,7 @@ export class AdminService {
): Promise<RemoveIAMMemberResponse.AsObject> {
const req = new RemoveIAMMemberRequest();
req.setUserId(userId);
return this.grpcService.admin.removeIAMMember(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.removeIAMMember(req, null).then(resp => resp.toObject());
}
public addIAMMember(
@@ -472,7 +476,7 @@ export class AdminService {
req.setUserId(userId);
req.setRolesList(rolesList);
return this.grpcService.admin.addIAMMember(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.addIAMMember(req, null).then(resp => resp.toObject());
}
public updateIAMMember(
@@ -483,6 +487,6 @@ export class AdminService {
req.setUserId(userId);
req.setRolesList(rolesList);
return this.grpcService.admin.updateIAMMember(req, null).then(resp => resp.toObject());;
return this.grpcService.admin.updateIAMMember(req, null).then(resp => resp.toObject());
}
}
+15 -14
View File
@@ -255,19 +255,19 @@ export class GrpcAuthService {
public getMyPasswordComplexityPolicy(): Promise<GetMyPasswordComplexityPolicyResponse.AsObject> {
return this.grpcService.auth.getMyPasswordComplexityPolicy(
new GetMyPasswordComplexityPolicyRequest(), null
new GetMyPasswordComplexityPolicyRequest(), null,
).then(resp => resp.toObject());
}
public getMyUser(): Promise<GetMyUserResponse.AsObject> {
return this.grpcService.auth.getMyUser(
new GetMyUserRequest(), null
new GetMyUserRequest(), null,
).then(resp => resp.toObject());
}
public listMyMultiFactors(): Promise<ListMyAuthFactorsResponse.AsObject> {
return this.grpcService.auth.listMyAuthFactors(
new ListMyAuthFactorsRequest(), null
new ListMyAuthFactorsRequest(), null,
).then(resp => resp.toObject());
}
@@ -330,7 +330,8 @@ export class GrpcAuthService {
return this.grpcService.auth.listMyUserSessions(req, null).then(resp => resp.toObject());
}
public listMyUserGrants(limit?: number, offset?: number, queryList?: ListQuery[]): Promise<ListMyUserGrantsResponse.AsObject> {
public listMyUserGrants(limit?: number, offset?: number, queryList?: ListQuery[]):
Promise<ListMyUserGrantsResponse.AsObject> {
const req = new ListMyUserGrantsRequest();
const query = new ListQuery();
if (limit) {
@@ -361,25 +362,25 @@ export class GrpcAuthService {
public removeMyPhone(): Promise<RemoveMyPhoneResponse.AsObject> {
return this.grpcService.auth.removeMyPhone(
new RemoveMyPhoneRequest(), null
new RemoveMyPhoneRequest(), null,
).then(resp => resp.toObject());
}
public listMyZitadelPermissions(): Promise<ListMyZitadelPermissionsResponse.AsObject> {
return this.grpcService.auth.listMyZitadelPermissions(
new ListMyZitadelPermissionsRequest(), null
new ListMyZitadelPermissionsRequest(), null,
).then(resp => resp.toObject());
}
public listMyZitadelFeatures(): Promise<ListMyZitadelFeaturesResponse.AsObject> {
return this.grpcService.auth.listMyZitadelFeatures(
new ListMyZitadelFeaturesRequest(), null
new ListMyZitadelFeaturesRequest(), null,
).then(resp => resp.toObject());
}
public getMyPhone(): Promise<GetMyPhoneResponse.AsObject> {
return this.grpcService.auth.getMyPhone(
new GetMyPhoneRequest(), null
new GetMyPhoneRequest(), null,
).then(resp => resp.toObject());
}
@@ -429,13 +430,13 @@ export class GrpcAuthService {
public addMyMultiFactorOTP(): Promise<AddMyAuthFactorOTPResponse.AsObject> {
return this.grpcService.auth.addMyAuthFactorOTP(
new AddMyAuthFactorOTPRequest(), null
new AddMyAuthFactorOTPRequest(), null,
).then(resp => resp.toObject());
}
public addMyMultiFactorU2F(): Promise<AddMyAuthFactorU2FResponse.AsObject> {
return this.grpcService.auth.addMyAuthFactorU2F(
new AddMyAuthFactorU2FRequest(), null
new AddMyAuthFactorU2FRequest(), null,
).then(resp => resp.toObject());
}
@@ -457,13 +458,13 @@ export class GrpcAuthService {
public listMyPasswordless(): Promise<ListMyPasswordlessResponse.AsObject> {
return this.grpcService.auth.listMyPasswordless(
new ListMyPasswordlessRequest(), null
new ListMyPasswordlessRequest(), null,
).then(resp => resp.toObject());
}
public addMyPasswordless(): Promise<AddMyPasswordlessResponse.AsObject> {
return this.grpcService.auth.addMyPasswordless(
new AddMyPasswordlessRequest(), null
new AddMyPasswordlessRequest(), null,
).then(resp => resp.toObject());
}
@@ -481,13 +482,13 @@ export class GrpcAuthService {
req.setVerification(verification);
return this.grpcService.auth.verifyMyPasswordless(
req, null
req, null,
).then(resp => resp.toObject());
}
public removeMyMultiFactorOTP(): Promise<RemoveMyAuthFactorOTPResponse.AsObject> {
return this.grpcService.auth.removeMyAuthFactorOTP(
new RemoveMyAuthFactorOTPRequest(), null
new RemoveMyAuthFactorOTPRequest(), null,
).then(resp => resp.toObject());
}
@@ -48,7 +48,7 @@ export class AuthInterceptor<TReq = unknown, TResp = unknown> implements UnaryIn
});
}
openDialog() {
private openDialog(): void {
const dialogRef = this.dialog.open(WarnDialogComponent, {
data: {
confirmKey: 'ACTIONS.LOGIN',
+35 -18
View File
@@ -352,11 +352,13 @@ export class ManagementService {
return this.grpcService.mgmt.listLoginPolicyMultiFactors(req, null).then(resp => resp.toObject());
}
public addMultiFactorToLoginPolicy(req: AddMultiFactorToLoginPolicyRequest): Promise<AddMultiFactorToLoginPolicyResponse.AsObject> {
public addMultiFactorToLoginPolicy(req: AddMultiFactorToLoginPolicyRequest):
Promise<AddMultiFactorToLoginPolicyResponse.AsObject> {
return this.grpcService.mgmt.addMultiFactorToLoginPolicy(req, null).then(resp => resp.toObject());
}
public removeMultiFactorFromLoginPolicy(req: RemoveMultiFactorFromLoginPolicyRequest): Promise<RemoveMultiFactorFromLoginPolicyResponse.AsObject> {
public removeMultiFactorFromLoginPolicy(req: RemoveMultiFactorFromLoginPolicyRequest):
Promise<RemoveMultiFactorFromLoginPolicyResponse.AsObject> {
return this.grpcService.mgmt.removeMultiFactorFromLoginPolicy(req, null).then(resp => resp.toObject());
}
@@ -365,11 +367,13 @@ export class ManagementService {
return this.grpcService.mgmt.listLoginPolicySecondFactors(req, null).then(resp => resp.toObject());
}
public addSecondFactorToLoginPolicy(req: AddSecondFactorToLoginPolicyRequest): Promise<AddSecondFactorToLoginPolicyResponse.AsObject> {
public addSecondFactorToLoginPolicy(req: AddSecondFactorToLoginPolicyRequest):
Promise<AddSecondFactorToLoginPolicyResponse.AsObject> {
return this.grpcService.mgmt.addSecondFactorToLoginPolicy(req, null).then(resp => resp.toObject());
}
public removeSecondFactorFromLoginPolicy(req: RemoveSecondFactorFromLoginPolicyRequest): Promise<RemoveSecondFactorFromLoginPolicyResponse.AsObject> {
public removeSecondFactorFromLoginPolicy(req: RemoveSecondFactorFromLoginPolicyRequest):
Promise<RemoveSecondFactorFromLoginPolicyResponse.AsObject> {
return this.grpcService.mgmt.removeSecondFactorFromLoginPolicy(req, null).then(resp => resp.toObject());
}
@@ -378,7 +382,8 @@ export class ManagementService {
return this.grpcService.mgmt.getLoginPolicy(req, null).then(resp => resp.toObject());
}
public updateCustomLoginPolicy(req: UpdateCustomLoginPolicyRequest): Promise<UpdateCustomLoginPolicyResponse.AsObject> {
public updateCustomLoginPolicy(req: UpdateCustomLoginPolicyRequest):
Promise<UpdateCustomLoginPolicyResponse.AsObject> {
return this.grpcService.mgmt.updateCustomLoginPolicy(req, null).then(resp => resp.toObject());
}
@@ -921,7 +926,7 @@ export class ManagementService {
nickName?: string,
displayName?: string,
preferredLanguage?: string,
gender?: Gender
gender?: Gender,
): Promise<UpdateHumanProfileResponse.AsObject> {
const req = new UpdateHumanProfileRequest();
req.setUserId(userId);
@@ -1009,7 +1014,8 @@ export class ManagementService {
return this.grpcService.mgmt.reactivateUser(req, null).then(resp => resp.toObject());
}
public addProjectRole(projectId: string, roleKey: string, displayName: string, group: string): Promise<AddProjectRoleResponse.AsObject> {
public addProjectRole(projectId: string, roleKey: string, displayName: string, group: string):
Promise<AddProjectRoleResponse.AsObject> {
const req = new AddProjectRoleRequest();
req.setProjectId(projectId);
req.setRoleKey(roleKey);
@@ -1026,7 +1032,8 @@ export class ManagementService {
return this.grpcService.mgmt.resendHumanEmailVerification(req, null).then(resp => resp.toObject());
}
public resendHumanInitialization(userId: string, newemail: string): Promise<ResendHumanInitializationResponse.AsObject> {
public resendHumanInitialization(userId: string, newemail: string):
Promise<ResendHumanInitializationResponse.AsObject> {
const req = new ResendHumanInitializationRequest();
if (newemail) {
req.setEmail(newemail);
@@ -1049,14 +1056,16 @@ export class ManagementService {
return this.grpcService.mgmt.setHumanInitialPassword(req, null).then(resp => resp.toObject());
}
public sendHumanResetPasswordNotification(id: string, type: SendHumanResetPasswordNotificationRequest.Type): Promise<any> {
public sendHumanResetPasswordNotification(id: string, type: SendHumanResetPasswordNotificationRequest.Type):
Promise<any> {
const req = new SendHumanResetPasswordNotificationRequest();
req.setUserId(id);
req.setType(type);
return this.grpcService.mgmt.sendHumanResetPasswordNotification(req, null).then(resp => resp.toObject());
}
public listUsers(limit: number, offset: number, queriesList?: UserSearchQuery[], sortingColumn?: UserFieldName): Promise<ListUsersResponse.AsObject> {
public listUsers(limit: number, offset: number, queriesList?: UserSearchQuery[], sortingColumn?: UserFieldName):
Promise<ListUsersResponse.AsObject> {
const req = new ListUsersRequest();
const query = new ListQuery();
if (limit) {
@@ -1149,7 +1158,8 @@ export class ManagementService {
return this.grpcService.mgmt.bulkRemoveUserGrant(req, null).then(resp => resp.toObject());
}
public listAppChanges(appId: string, projectId: string, limit: number, sequence: number): Promise<ListAppChangesResponse.AsObject> {
public listAppChanges(appId: string, projectId: string, limit: number, sequence: number):
Promise<ListAppChangesResponse.AsObject> {
const req = new ListAppChangesRequest();
const query = new ChangeQuery();
req.setAppId(appId);
@@ -1180,7 +1190,8 @@ export class ManagementService {
return this.grpcService.mgmt.listOrgChanges(req, null).then(resp => resp.toObject());
}
public listProjectChanges(projectId: string, limit: number, sequence: number): Promise<ListProjectChangesResponse.AsObject> {
public listProjectChanges(projectId: string, limit: number, sequence: number):
Promise<ListProjectChangesResponse.AsObject> {
const req = new ListProjectChangesRequest();
req.setProjectId(projectId);
const query = new ChangeQuery();
@@ -1196,7 +1207,8 @@ export class ManagementService {
return this.grpcService.mgmt.listProjectChanges(req, null).then(resp => resp.toObject());
}
public listUserChanges(userId: string, limit: number, sequence: number): Promise<ListUserChangesResponse.AsObject> {
public listUserChanges(userId: string, limit: number, sequence: number):
Promise<ListUserChangesResponse.AsObject> {
const req = new ListUserChangesRequest();
req.setUserId(userId);
const query = new ChangeQuery();
@@ -1297,7 +1309,8 @@ export class ManagementService {
return this.grpcService.mgmt.updateProject(req, null).then(resp => resp.toObject());
}
public updateProjectGrant(grantId: string, projectId: string, rolesList: string[]): Promise<UpdateProjectGrantResponse.AsObject> {
public updateProjectGrant(grantId: string, projectId: string, rolesList: string[]):
Promise<UpdateProjectGrantResponse.AsObject> {
const req = new UpdateProjectGrantRequest();
req.setRoleKeysList(rolesList);
req.setGrantId(grantId);
@@ -1324,7 +1337,8 @@ export class ManagementService {
return this.grpcService.mgmt.reactivateProject(req, null).then(resp => resp.toObject());
}
public listProjectGrants(projectId: string, limit: number, offset: number): Promise<ListProjectGrantsResponse.AsObject> {
public listProjectGrants(projectId: string, limit: number, offset: number):
Promise<ListProjectGrantsResponse.AsObject> {
const req = new ListProjectGrantsRequest();
req.setProjectId(projectId);
const query = new ListQuery();
@@ -1345,7 +1359,8 @@ export class ManagementService {
return this.grpcService.mgmt.listProjectGrantMemberRoles(req, null).then(resp => resp.toObject());
}
public addProjectMember(projectId: string, userId: string, rolesList: string[]): Promise<AddProjectMemberResponse.AsObject> {
public addProjectMember(projectId: string, userId: string, rolesList: string[]):
Promise<AddProjectMemberResponse.AsObject> {
const req = new AddProjectMemberRequest();
req.setProjectId(projectId);
req.setUserId(userId);
@@ -1353,7 +1368,8 @@ export class ManagementService {
return this.grpcService.mgmt.addProjectMember(req, null).then(resp => resp.toObject());
}
public updateProjectMember(projectId: string, userId: string, rolesList: string[]): Promise<UpdateProjectMemberResponse.AsObject> {
public updateProjectMember(projectId: string, userId: string, rolesList: string[]):
Promise<UpdateProjectMemberResponse.AsObject> {
const req = new UpdateProjectMemberRequest();
req.setProjectId(projectId);
req.setUserId(userId);
@@ -1444,7 +1460,8 @@ export class ManagementService {
return this.grpcService.mgmt.deactivateApp(req, null).then(resp => resp.toObject());
}
public regenerateOIDCClientSecret(appId: string, projectId: string): Promise<RegenerateOIDCClientSecretResponse.AsObject> {
public regenerateOIDCClientSecret(appId: string, projectId: string):
Promise<RegenerateOIDCClientSecretResponse.AsObject> {
const req = new RegenerateOIDCClientSecretRequest();
req.setAppId(appId);
req.setProjectId(projectId);