2020-08-29 10:43:35 +02:00
|
|
|
import { Injectable } from '@angular/core';
|
|
|
|
import { OAuthService } from 'angular-oauth2-oidc';
|
|
|
|
import { BehaviorSubject, from, merge, Observable, of, Subject } from 'rxjs';
|
2021-03-27 09:37:57 +01:00
|
|
|
import { catchError, filter, finalize, map, mergeMap, switchMap, take, timeout } from 'rxjs/operators';
|
2020-08-29 10:43:35 +02:00
|
|
|
|
|
|
|
import {
|
feat(console): update deps, alternative hash function with fixed colors, use preferrenLoginName for hashing, fix iam write permissions, user img upload (#1846)
* chore(deps-dev): bump @types/jasmine from 3.6.9 to 3.7.7 in /console (#1824)
Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.6.9 to 3.7.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine)
---
updated-dependencies:
- dependency-name: "@types/jasmine"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump google-protobuf from 3.15.8 to 3.17.2 in /console (#1823)
Bumps [google-protobuf](https://github.com/protocolbuffers/protobuf) from 3.15.8 to 3.17.2.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/master/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.15.8...v3.17.2)
---
updated-dependencies:
- dependency-name: google-protobuf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/animations from 12.0.0 to 12.0.3 in /console (#1821)
Bumps [@angular/animations](https://github.com/angular/angular/tree/HEAD/packages/animations) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/animations)
---
updated-dependencies:
- dependency-name: "@angular/animations"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material from 12.0.0 to 12.0.3 in /console (#1819)
Bumps [@angular/material](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump prettier from 2.2.1 to 2.3.1 in /console (#1818)
Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.1)
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/platform-browser-dynamic in /console (#1817)
Bumps [@angular/platform-browser-dynamic](https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/platform-browser-dynamic)
---
updated-dependencies:
- dependency-name: "@angular/platform-browser-dynamic"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.14.37 to 15.12.1 in /console (#1815)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 15.12.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/common from 12.0.0 to 12.0.3 in /console (#1814)
Bumps [@angular/common](https://github.com/angular/angular/tree/HEAD/packages/common) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/common)
---
updated-dependencies:
- dependency-name: "@angular/common"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material-moment-adapter from 12.0.0 to 12.0.3 in /console (#1816)
* chore(deps): bump @angular/material-moment-adapter in /console
Bumps [@angular/material-moment-adapter](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material-moment-adapter"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* sort
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump @angular/language-service in /console (#1822)
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/language-service)
---
updated-dependencies:
- dependency-name: "@angular/language-service"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* image cropper
* fix: avatar bg colors, preferred username, login script
* lint
* membership color
* rem logs
* profile picture component
* pic comp
* dialog tirgger btn
* trigger dialog, styles
* lock
* interceptor for org, upload, remove
* tooltip
* lint
* stylelint
* generate same credentials of username as in login
* deletepic
* fix disable privatelabeling on missing feature, i18n
* lint
* stylelint
* block loading images if no feature
* lint
* optimize feature check
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-11 11:15:04 +02:00
|
|
|
AddMyAuthFactorOTPRequest,
|
|
|
|
AddMyAuthFactorOTPResponse,
|
|
|
|
AddMyAuthFactorU2FRequest,
|
|
|
|
AddMyAuthFactorU2FResponse,
|
2021-08-13 09:05:05 +02:00
|
|
|
AddMyPasswordlessLinkRequest,
|
|
|
|
AddMyPasswordlessLinkResponse,
|
feat(console): update deps, alternative hash function with fixed colors, use preferrenLoginName for hashing, fix iam write permissions, user img upload (#1846)
* chore(deps-dev): bump @types/jasmine from 3.6.9 to 3.7.7 in /console (#1824)
Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.6.9 to 3.7.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine)
---
updated-dependencies:
- dependency-name: "@types/jasmine"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump google-protobuf from 3.15.8 to 3.17.2 in /console (#1823)
Bumps [google-protobuf](https://github.com/protocolbuffers/protobuf) from 3.15.8 to 3.17.2.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/master/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.15.8...v3.17.2)
---
updated-dependencies:
- dependency-name: google-protobuf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/animations from 12.0.0 to 12.0.3 in /console (#1821)
Bumps [@angular/animations](https://github.com/angular/angular/tree/HEAD/packages/animations) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/animations)
---
updated-dependencies:
- dependency-name: "@angular/animations"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material from 12.0.0 to 12.0.3 in /console (#1819)
Bumps [@angular/material](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump prettier from 2.2.1 to 2.3.1 in /console (#1818)
Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.1)
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/platform-browser-dynamic in /console (#1817)
Bumps [@angular/platform-browser-dynamic](https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/platform-browser-dynamic)
---
updated-dependencies:
- dependency-name: "@angular/platform-browser-dynamic"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.14.37 to 15.12.1 in /console (#1815)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 15.12.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/common from 12.0.0 to 12.0.3 in /console (#1814)
Bumps [@angular/common](https://github.com/angular/angular/tree/HEAD/packages/common) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/common)
---
updated-dependencies:
- dependency-name: "@angular/common"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material-moment-adapter from 12.0.0 to 12.0.3 in /console (#1816)
* chore(deps): bump @angular/material-moment-adapter in /console
Bumps [@angular/material-moment-adapter](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material-moment-adapter"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* sort
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump @angular/language-service in /console (#1822)
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/language-service)
---
updated-dependencies:
- dependency-name: "@angular/language-service"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* image cropper
* fix: avatar bg colors, preferred username, login script
* lint
* membership color
* rem logs
* profile picture component
* pic comp
* dialog tirgger btn
* trigger dialog, styles
* lock
* interceptor for org, upload, remove
* tooltip
* lint
* stylelint
* generate same credentials of username as in login
* deletepic
* fix disable privatelabeling on missing feature, i18n
* lint
* stylelint
* block loading images if no feature
* lint
* optimize feature check
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-11 11:15:04 +02:00
|
|
|
AddMyPasswordlessRequest,
|
|
|
|
AddMyPasswordlessResponse,
|
|
|
|
GetMyEmailRequest,
|
|
|
|
GetMyEmailResponse,
|
|
|
|
GetMyPasswordComplexityPolicyRequest,
|
|
|
|
GetMyPasswordComplexityPolicyResponse,
|
|
|
|
GetMyPhoneRequest,
|
|
|
|
GetMyPhoneResponse,
|
|
|
|
GetMyProfileRequest,
|
|
|
|
GetMyProfileResponse,
|
|
|
|
GetMyUserRequest,
|
|
|
|
GetMyUserResponse,
|
|
|
|
ListMyAuthFactorsRequest,
|
|
|
|
ListMyAuthFactorsResponse,
|
|
|
|
ListMyLinkedIDPsRequest,
|
|
|
|
ListMyLinkedIDPsResponse,
|
2021-08-16 14:44:20 +02:00
|
|
|
ListMyMembershipsRequest,
|
|
|
|
ListMyMembershipsResponse,
|
feat(console): update deps, alternative hash function with fixed colors, use preferrenLoginName for hashing, fix iam write permissions, user img upload (#1846)
* chore(deps-dev): bump @types/jasmine from 3.6.9 to 3.7.7 in /console (#1824)
Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.6.9 to 3.7.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine)
---
updated-dependencies:
- dependency-name: "@types/jasmine"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump google-protobuf from 3.15.8 to 3.17.2 in /console (#1823)
Bumps [google-protobuf](https://github.com/protocolbuffers/protobuf) from 3.15.8 to 3.17.2.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/master/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.15.8...v3.17.2)
---
updated-dependencies:
- dependency-name: google-protobuf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/animations from 12.0.0 to 12.0.3 in /console (#1821)
Bumps [@angular/animations](https://github.com/angular/angular/tree/HEAD/packages/animations) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/animations)
---
updated-dependencies:
- dependency-name: "@angular/animations"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material from 12.0.0 to 12.0.3 in /console (#1819)
Bumps [@angular/material](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump prettier from 2.2.1 to 2.3.1 in /console (#1818)
Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.1)
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/platform-browser-dynamic in /console (#1817)
Bumps [@angular/platform-browser-dynamic](https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/platform-browser-dynamic)
---
updated-dependencies:
- dependency-name: "@angular/platform-browser-dynamic"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.14.37 to 15.12.1 in /console (#1815)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 15.12.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/common from 12.0.0 to 12.0.3 in /console (#1814)
Bumps [@angular/common](https://github.com/angular/angular/tree/HEAD/packages/common) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/common)
---
updated-dependencies:
- dependency-name: "@angular/common"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material-moment-adapter from 12.0.0 to 12.0.3 in /console (#1816)
* chore(deps): bump @angular/material-moment-adapter in /console
Bumps [@angular/material-moment-adapter](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material-moment-adapter"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* sort
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump @angular/language-service in /console (#1822)
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/language-service)
---
updated-dependencies:
- dependency-name: "@angular/language-service"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* image cropper
* fix: avatar bg colors, preferred username, login script
* lint
* membership color
* rem logs
* profile picture component
* pic comp
* dialog tirgger btn
* trigger dialog, styles
* lock
* interceptor for org, upload, remove
* tooltip
* lint
* stylelint
* generate same credentials of username as in login
* deletepic
* fix disable privatelabeling on missing feature, i18n
* lint
* stylelint
* block loading images if no feature
* lint
* optimize feature check
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-11 11:15:04 +02:00
|
|
|
ListMyPasswordlessRequest,
|
|
|
|
ListMyPasswordlessResponse,
|
|
|
|
ListMyProjectOrgsRequest,
|
|
|
|
ListMyProjectOrgsResponse,
|
|
|
|
ListMyUserChangesRequest,
|
|
|
|
ListMyUserChangesResponse,
|
|
|
|
ListMyUserGrantsRequest,
|
|
|
|
ListMyUserGrantsResponse,
|
|
|
|
ListMyUserSessionsRequest,
|
|
|
|
ListMyUserSessionsResponse,
|
|
|
|
ListMyZitadelFeaturesRequest,
|
|
|
|
ListMyZitadelFeaturesResponse,
|
|
|
|
ListMyZitadelPermissionsRequest,
|
|
|
|
ListMyZitadelPermissionsResponse,
|
|
|
|
RemoveMyAuthFactorOTPRequest,
|
|
|
|
RemoveMyAuthFactorOTPResponse,
|
|
|
|
RemoveMyAuthFactorU2FRequest,
|
|
|
|
RemoveMyAuthFactorU2FResponse,
|
|
|
|
RemoveMyAvatarRequest,
|
|
|
|
RemoveMyAvatarResponse,
|
|
|
|
RemoveMyLinkedIDPRequest,
|
|
|
|
RemoveMyLinkedIDPResponse,
|
|
|
|
RemoveMyPasswordlessRequest,
|
|
|
|
RemoveMyPasswordlessResponse,
|
|
|
|
RemoveMyPhoneRequest,
|
|
|
|
RemoveMyPhoneResponse,
|
|
|
|
ResendMyEmailVerificationRequest,
|
|
|
|
ResendMyEmailVerificationResponse,
|
|
|
|
ResendMyPhoneVerificationRequest,
|
|
|
|
ResendMyPhoneVerificationResponse,
|
2021-08-13 09:05:05 +02:00
|
|
|
SendMyPasswordlessLinkRequest,
|
|
|
|
SendMyPasswordlessLinkResponse,
|
feat(console): update deps, alternative hash function with fixed colors, use preferrenLoginName for hashing, fix iam write permissions, user img upload (#1846)
* chore(deps-dev): bump @types/jasmine from 3.6.9 to 3.7.7 in /console (#1824)
Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.6.9 to 3.7.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine)
---
updated-dependencies:
- dependency-name: "@types/jasmine"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump google-protobuf from 3.15.8 to 3.17.2 in /console (#1823)
Bumps [google-protobuf](https://github.com/protocolbuffers/protobuf) from 3.15.8 to 3.17.2.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/master/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.15.8...v3.17.2)
---
updated-dependencies:
- dependency-name: google-protobuf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/animations from 12.0.0 to 12.0.3 in /console (#1821)
Bumps [@angular/animations](https://github.com/angular/angular/tree/HEAD/packages/animations) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/animations)
---
updated-dependencies:
- dependency-name: "@angular/animations"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material from 12.0.0 to 12.0.3 in /console (#1819)
Bumps [@angular/material](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump prettier from 2.2.1 to 2.3.1 in /console (#1818)
Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.1)
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/platform-browser-dynamic in /console (#1817)
Bumps [@angular/platform-browser-dynamic](https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/platform-browser-dynamic)
---
updated-dependencies:
- dependency-name: "@angular/platform-browser-dynamic"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.14.37 to 15.12.1 in /console (#1815)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 15.12.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/common from 12.0.0 to 12.0.3 in /console (#1814)
Bumps [@angular/common](https://github.com/angular/angular/tree/HEAD/packages/common) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/common)
---
updated-dependencies:
- dependency-name: "@angular/common"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material-moment-adapter from 12.0.0 to 12.0.3 in /console (#1816)
* chore(deps): bump @angular/material-moment-adapter in /console
Bumps [@angular/material-moment-adapter](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material-moment-adapter"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* sort
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump @angular/language-service in /console (#1822)
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/language-service)
---
updated-dependencies:
- dependency-name: "@angular/language-service"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* image cropper
* fix: avatar bg colors, preferred username, login script
* lint
* membership color
* rem logs
* profile picture component
* pic comp
* dialog tirgger btn
* trigger dialog, styles
* lock
* interceptor for org, upload, remove
* tooltip
* lint
* stylelint
* generate same credentials of username as in login
* deletepic
* fix disable privatelabeling on missing feature, i18n
* lint
* stylelint
* block loading images if no feature
* lint
* optimize feature check
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-11 11:15:04 +02:00
|
|
|
SetMyEmailRequest,
|
|
|
|
SetMyEmailResponse,
|
|
|
|
SetMyPhoneRequest,
|
|
|
|
SetMyPhoneResponse,
|
|
|
|
UpdateMyPasswordRequest,
|
|
|
|
UpdateMyPasswordResponse,
|
|
|
|
UpdateMyProfileRequest,
|
|
|
|
UpdateMyProfileResponse,
|
|
|
|
VerifyMyAuthFactorOTPRequest,
|
|
|
|
VerifyMyAuthFactorOTPResponse,
|
|
|
|
VerifyMyAuthFactorU2FRequest,
|
|
|
|
VerifyMyAuthFactorU2FResponse,
|
|
|
|
VerifyMyPasswordlessRequest,
|
|
|
|
VerifyMyPasswordlessResponse,
|
|
|
|
VerifyMyPhoneRequest,
|
|
|
|
VerifyMyPhoneResponse,
|
feat: protos refactoring
* start with user
* user first try done in all services
* user, org, idp for discussion
* remove unused stuff
* bla
* dockerbuild
* rename search, get multiple to list...
* add annotation
* update proto dependencies
* update proto dependencies
* change proto imports
* replace all old imports
* fix go out
* remove unused lines
* correct protoc flags
* grpc and openapi flags
* go out source path relative
* -p
* remove dead code
* sourcepath relative
* ls
* is onenapi the problem?
* hobla
* authoption output
* wrong field name
* gopf
* correct option, add correct flags
* small improvments
* SIMPLYFY
* relative path
* gopf bin ich en tubel
* correct path
* default policies in admin
* grpc generation in one file
* remove non ascii
* metadata on manipulations
* correct auth_option import
* fixes
* larry
* idp provider to idp
* fix generate
* admin and auth nearly done
* admin and auth nearly done
* gen
* healthz
* imports
* deleted too much imports
* fix org
* add import
* imports
* import
* naming
* auth_opt
* gopf
* management
* imports
* _TYPE_UNSPECIFIED
* improts
* auth opts
* management policies
* imports
* passwordlessType to MFAType
* auth_opt
* add user grant calls
* add missing messages
* result
* fix option
* improvements
* ids
* fix http
* imports
* fixes
* fields
* body
* add fields
* remove wrong member query
* fix request response
* fixes
* add copy files
* variable versions
* generate all files
* improvements
* add dependencies
* factors
* user session
* oidc information, iam
* remove unused file
* changes
* enums
* dockerfile
* fix build
* remove unused folder
* update readme for build
* move old server impl
* add event type to change
* some changes
* start admin
* remove wrong field
* admin only list calls missing
* fix proto numbers
* surprisingly it compiles
* service ts changes
* admin mgmt
* mgmt
* auth manipulation and gets done, lists missing
* validations and some field changes
* validations
* enum validations
* remove todo
* move proto files to proto/zitadel
* change proto path in dockerfile
* it compiles!
* add validate import
* remove duplicate import
* fix protos
* fix import
* tests
* cleanup
* remove unimplemented methods
* iam member multiple queries
* all auth and admin calls
* add initial password on crate human
* message names
* management user server
* machine done
* fix: todos (#1346)
* fix: pub sub in new eventstore
* fix: todos
* fix: todos
* fix: todos
* fix: todos
* fix: todos
* fix tests
* fix: search method domain
* admin service, user import type typescript
* admin changes
* admin changes
* fix: search method domain
* more user grpc and begin org, fix configs
* fix: return object details
* org grpc
* remove creation date add details
* app
* fix: return object details
* fix: return object details
* mgmt service, project members
* app
* fix: convert policies
* project, members, granted projects, searches
* fix: convert usergrants
* fix: convert usergrants
* auth user detail, user detail, mfa, second factor, auth
* fix: convert usergrants
* mfa, memberships, password, owned proj detail
* fix: convert usergrants
* project grant
* missing details
* changes, userview
* idp table, keys
* org list and user table filter
* unify rest paths (#1381)
* unify rest paths
* post for all searches,
mfa to multi_factor,
secondfactor to second_factor
* remove v1
* fix tests
* rename api client key to app key
* machine keys, age policy
* user list, machine keys, changes
* fix: org states
* add default flag to policy
* second factor to type
* idp id
* app type
* unify ListQuery, ListDetails, ObjectDetails field names
* user grants, apps, memberships
* fix type params
* metadata to detail, linke idps
* api create, membership, app detail, create
* idp, app, policy
* queries, multi -> auth factors and missing fields
* update converters
* provider to user, remove old mgmt refs
* temp remove authfactor dialog, build finish
Co-authored-by: Max Peintner <max@caos.ch>
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
Co-authored-by: Livio Amstutz <livio.a@gmail.com>
Co-authored-by: Fabiennne <fabienne.gerschwiler@gmail.com>
2021-03-09 10:30:11 +01:00
|
|
|
} from '../proto/generated/zitadel/auth_pb';
|
2021-03-29 10:32:23 +02:00
|
|
|
import { ChangeQuery } from '../proto/generated/zitadel/change_pb';
|
feat: protos refactoring
* start with user
* user first try done in all services
* user, org, idp for discussion
* remove unused stuff
* bla
* dockerbuild
* rename search, get multiple to list...
* add annotation
* update proto dependencies
* update proto dependencies
* change proto imports
* replace all old imports
* fix go out
* remove unused lines
* correct protoc flags
* grpc and openapi flags
* go out source path relative
* -p
* remove dead code
* sourcepath relative
* ls
* is onenapi the problem?
* hobla
* authoption output
* wrong field name
* gopf
* correct option, add correct flags
* small improvments
* SIMPLYFY
* relative path
* gopf bin ich en tubel
* correct path
* default policies in admin
* grpc generation in one file
* remove non ascii
* metadata on manipulations
* correct auth_option import
* fixes
* larry
* idp provider to idp
* fix generate
* admin and auth nearly done
* admin and auth nearly done
* gen
* healthz
* imports
* deleted too much imports
* fix org
* add import
* imports
* import
* naming
* auth_opt
* gopf
* management
* imports
* _TYPE_UNSPECIFIED
* improts
* auth opts
* management policies
* imports
* passwordlessType to MFAType
* auth_opt
* add user grant calls
* add missing messages
* result
* fix option
* improvements
* ids
* fix http
* imports
* fixes
* fields
* body
* add fields
* remove wrong member query
* fix request response
* fixes
* add copy files
* variable versions
* generate all files
* improvements
* add dependencies
* factors
* user session
* oidc information, iam
* remove unused file
* changes
* enums
* dockerfile
* fix build
* remove unused folder
* update readme for build
* move old server impl
* add event type to change
* some changes
* start admin
* remove wrong field
* admin only list calls missing
* fix proto numbers
* surprisingly it compiles
* service ts changes
* admin mgmt
* mgmt
* auth manipulation and gets done, lists missing
* validations and some field changes
* validations
* enum validations
* remove todo
* move proto files to proto/zitadel
* change proto path in dockerfile
* it compiles!
* add validate import
* remove duplicate import
* fix protos
* fix import
* tests
* cleanup
* remove unimplemented methods
* iam member multiple queries
* all auth and admin calls
* add initial password on crate human
* message names
* management user server
* machine done
* fix: todos (#1346)
* fix: pub sub in new eventstore
* fix: todos
* fix: todos
* fix: todos
* fix: todos
* fix: todos
* fix tests
* fix: search method domain
* admin service, user import type typescript
* admin changes
* admin changes
* fix: search method domain
* more user grpc and begin org, fix configs
* fix: return object details
* org grpc
* remove creation date add details
* app
* fix: return object details
* fix: return object details
* mgmt service, project members
* app
* fix: convert policies
* project, members, granted projects, searches
* fix: convert usergrants
* fix: convert usergrants
* auth user detail, user detail, mfa, second factor, auth
* fix: convert usergrants
* mfa, memberships, password, owned proj detail
* fix: convert usergrants
* project grant
* missing details
* changes, userview
* idp table, keys
* org list and user table filter
* unify rest paths (#1381)
* unify rest paths
* post for all searches,
mfa to multi_factor,
secondfactor to second_factor
* remove v1
* fix tests
* rename api client key to app key
* machine keys, age policy
* user list, machine keys, changes
* fix: org states
* add default flag to policy
* second factor to type
* idp id
* app type
* unify ListQuery, ListDetails, ObjectDetails field names
* user grants, apps, memberships
* fix type params
* metadata to detail, linke idps
* api create, membership, app detail, create
* idp, app, policy
* queries, multi -> auth factors and missing fields
* update converters
* provider to user, remove old mgmt refs
* temp remove authfactor dialog, build finish
Co-authored-by: Max Peintner <max@caos.ch>
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
Co-authored-by: Livio Amstutz <livio.a@gmail.com>
Co-authored-by: Fabiennne <fabienne.gerschwiler@gmail.com>
2021-03-09 10:30:11 +01:00
|
|
|
import { ListQuery } from '../proto/generated/zitadel/object_pb';
|
|
|
|
import { Org, OrgQuery } from '../proto/generated/zitadel/org_pb';
|
2021-08-16 14:44:20 +02:00
|
|
|
import { Gender, MembershipQuery, User, WebAuthNVerification } from '../proto/generated/zitadel/user_pb';
|
2020-08-29 10:43:35 +02:00
|
|
|
import { GrpcService } from './grpc.service';
|
|
|
|
import { StorageKey, StorageService } from './storage.service';
|
|
|
|
|
|
|
|
|
|
|
|
@Injectable({
|
feat(console): update deps, alternative hash function with fixed colors, use preferrenLoginName for hashing, fix iam write permissions, user img upload (#1846)
* chore(deps-dev): bump @types/jasmine from 3.6.9 to 3.7.7 in /console (#1824)
Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.6.9 to 3.7.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine)
---
updated-dependencies:
- dependency-name: "@types/jasmine"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump google-protobuf from 3.15.8 to 3.17.2 in /console (#1823)
Bumps [google-protobuf](https://github.com/protocolbuffers/protobuf) from 3.15.8 to 3.17.2.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/master/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.15.8...v3.17.2)
---
updated-dependencies:
- dependency-name: google-protobuf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/animations from 12.0.0 to 12.0.3 in /console (#1821)
Bumps [@angular/animations](https://github.com/angular/angular/tree/HEAD/packages/animations) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/animations)
---
updated-dependencies:
- dependency-name: "@angular/animations"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material from 12.0.0 to 12.0.3 in /console (#1819)
Bumps [@angular/material](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump prettier from 2.2.1 to 2.3.1 in /console (#1818)
Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.1)
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/platform-browser-dynamic in /console (#1817)
Bumps [@angular/platform-browser-dynamic](https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/platform-browser-dynamic)
---
updated-dependencies:
- dependency-name: "@angular/platform-browser-dynamic"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.14.37 to 15.12.1 in /console (#1815)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 15.12.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/common from 12.0.0 to 12.0.3 in /console (#1814)
Bumps [@angular/common](https://github.com/angular/angular/tree/HEAD/packages/common) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/common)
---
updated-dependencies:
- dependency-name: "@angular/common"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material-moment-adapter from 12.0.0 to 12.0.3 in /console (#1816)
* chore(deps): bump @angular/material-moment-adapter in /console
Bumps [@angular/material-moment-adapter](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material-moment-adapter"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* sort
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump @angular/language-service in /console (#1822)
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/language-service)
---
updated-dependencies:
- dependency-name: "@angular/language-service"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* image cropper
* fix: avatar bg colors, preferred username, login script
* lint
* membership color
* rem logs
* profile picture component
* pic comp
* dialog tirgger btn
* trigger dialog, styles
* lock
* interceptor for org, upload, remove
* tooltip
* lint
* stylelint
* generate same credentials of username as in login
* deletepic
* fix disable privatelabeling on missing feature, i18n
* lint
* stylelint
* block loading images if no feature
* lint
* optimize feature check
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-11 11:15:04 +02:00
|
|
|
providedIn: 'root',
|
2020-08-29 10:43:35 +02:00
|
|
|
})
|
|
|
|
export class GrpcAuthService {
|
feat(console): update deps, alternative hash function with fixed colors, use preferrenLoginName for hashing, fix iam write permissions, user img upload (#1846)
* chore(deps-dev): bump @types/jasmine from 3.6.9 to 3.7.7 in /console (#1824)
Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.6.9 to 3.7.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine)
---
updated-dependencies:
- dependency-name: "@types/jasmine"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump google-protobuf from 3.15.8 to 3.17.2 in /console (#1823)
Bumps [google-protobuf](https://github.com/protocolbuffers/protobuf) from 3.15.8 to 3.17.2.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/master/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.15.8...v3.17.2)
---
updated-dependencies:
- dependency-name: google-protobuf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/animations from 12.0.0 to 12.0.3 in /console (#1821)
Bumps [@angular/animations](https://github.com/angular/angular/tree/HEAD/packages/animations) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/animations)
---
updated-dependencies:
- dependency-name: "@angular/animations"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material from 12.0.0 to 12.0.3 in /console (#1819)
Bumps [@angular/material](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump prettier from 2.2.1 to 2.3.1 in /console (#1818)
Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.1)
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/platform-browser-dynamic in /console (#1817)
Bumps [@angular/platform-browser-dynamic](https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/platform-browser-dynamic)
---
updated-dependencies:
- dependency-name: "@angular/platform-browser-dynamic"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.14.37 to 15.12.1 in /console (#1815)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 15.12.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/common from 12.0.0 to 12.0.3 in /console (#1814)
Bumps [@angular/common](https://github.com/angular/angular/tree/HEAD/packages/common) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/common)
---
updated-dependencies:
- dependency-name: "@angular/common"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material-moment-adapter from 12.0.0 to 12.0.3 in /console (#1816)
* chore(deps): bump @angular/material-moment-adapter in /console
Bumps [@angular/material-moment-adapter](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material-moment-adapter"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* sort
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump @angular/language-service in /console (#1822)
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/language-service)
---
updated-dependencies:
- dependency-name: "@angular/language-service"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* image cropper
* fix: avatar bg colors, preferred username, login script
* lint
* membership color
* rem logs
* profile picture component
* pic comp
* dialog tirgger btn
* trigger dialog, styles
* lock
* interceptor for org, upload, remove
* tooltip
* lint
* stylelint
* generate same credentials of username as in login
* deletepic
* fix disable privatelabeling on missing feature, i18n
* lint
* stylelint
* block loading images if no feature
* lint
* optimize feature check
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-11 11:15:04 +02:00
|
|
|
private _activeOrgChanged: Subject<Org.AsObject> = new Subject();
|
|
|
|
public user!: Observable<User.AsObject | undefined>;
|
|
|
|
private zitadelPermissions: BehaviorSubject<string[]> = new BehaviorSubject(['user.resourceowner']);
|
|
|
|
private zitadelFeatures: BehaviorSubject<string[]> = new BehaviorSubject(['']);
|
|
|
|
|
|
|
|
public readonly fetchedZitadelPermissions: BehaviorSubject<boolean> = new BehaviorSubject(false as boolean);
|
|
|
|
public readonly fetchedZitadelFeatures: BehaviorSubject<boolean> = new BehaviorSubject(false as boolean);
|
|
|
|
|
|
|
|
private cachedOrgs: Org.AsObject[] = [];
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
private readonly grpcService: GrpcService,
|
|
|
|
private oauthService: OAuthService,
|
|
|
|
private storage: StorageService,
|
|
|
|
) {
|
|
|
|
this.user = merge(
|
|
|
|
of(this.oauthService.getAccessToken()).pipe(
|
|
|
|
filter(token => token ? true : false),
|
|
|
|
),
|
|
|
|
this.oauthService.events.pipe(
|
|
|
|
filter(e => e.type === 'token_received'),
|
|
|
|
timeout(this.oauthService.waitForTokenInMsec || 0),
|
|
|
|
catchError(_ => of(null)), // timeout is not an error
|
|
|
|
map(_ => this.oauthService.getAccessToken()),
|
|
|
|
),
|
|
|
|
).pipe(
|
|
|
|
take(1),
|
|
|
|
mergeMap(() => {
|
|
|
|
return from(this.getMyUser().then(resp => {
|
|
|
|
const user = resp.user;
|
|
|
|
if (user) {
|
|
|
|
return user;
|
|
|
|
} else {
|
|
|
|
return undefined;
|
|
|
|
}
|
|
|
|
}));
|
|
|
|
}),
|
|
|
|
finalize(() => {
|
|
|
|
this.loadPermissions();
|
|
|
|
this.loadFeatures();
|
|
|
|
}),
|
|
|
|
);
|
|
|
|
|
|
|
|
this.activeOrgChanged.subscribe(() => {
|
|
|
|
this.loadPermissions();
|
|
|
|
this.loadFeatures();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
public async getActiveOrg(id?: string): Promise<Org.AsObject> {
|
|
|
|
if (id) {
|
2021-08-31 08:25:24 +02:00
|
|
|
const find = this.cachedOrgs.find(tmp => tmp.id === id);
|
|
|
|
if (find) {
|
|
|
|
this.setActiveOrg(find);
|
|
|
|
return Promise.resolve(find);
|
|
|
|
} else {
|
|
|
|
const orgs = (await this.listMyProjectOrgs(10, 0)).resultList;
|
|
|
|
this.cachedOrgs = orgs;
|
|
|
|
|
|
|
|
const toFind = this.cachedOrgs.find(tmp => tmp.id === id);
|
|
|
|
if (toFind) {
|
|
|
|
this.setActiveOrg(toFind);
|
|
|
|
return Promise.resolve(toFind);
|
|
|
|
} else {
|
|
|
|
return Promise.reject(new Error('requested organization not found'));
|
|
|
|
}
|
feat(console): update deps, alternative hash function with fixed colors, use preferrenLoginName for hashing, fix iam write permissions, user img upload (#1846)
* chore(deps-dev): bump @types/jasmine from 3.6.9 to 3.7.7 in /console (#1824)
Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.6.9 to 3.7.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine)
---
updated-dependencies:
- dependency-name: "@types/jasmine"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump google-protobuf from 3.15.8 to 3.17.2 in /console (#1823)
Bumps [google-protobuf](https://github.com/protocolbuffers/protobuf) from 3.15.8 to 3.17.2.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/master/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.15.8...v3.17.2)
---
updated-dependencies:
- dependency-name: google-protobuf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/animations from 12.0.0 to 12.0.3 in /console (#1821)
Bumps [@angular/animations](https://github.com/angular/angular/tree/HEAD/packages/animations) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/animations)
---
updated-dependencies:
- dependency-name: "@angular/animations"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material from 12.0.0 to 12.0.3 in /console (#1819)
Bumps [@angular/material](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump prettier from 2.2.1 to 2.3.1 in /console (#1818)
Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.1)
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/platform-browser-dynamic in /console (#1817)
Bumps [@angular/platform-browser-dynamic](https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/platform-browser-dynamic)
---
updated-dependencies:
- dependency-name: "@angular/platform-browser-dynamic"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.14.37 to 15.12.1 in /console (#1815)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 15.12.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/common from 12.0.0 to 12.0.3 in /console (#1814)
Bumps [@angular/common](https://github.com/angular/angular/tree/HEAD/packages/common) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/common)
---
updated-dependencies:
- dependency-name: "@angular/common"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material-moment-adapter from 12.0.0 to 12.0.3 in /console (#1816)
* chore(deps): bump @angular/material-moment-adapter in /console
Bumps [@angular/material-moment-adapter](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material-moment-adapter"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* sort
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump @angular/language-service in /console (#1822)
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/language-service)
---
updated-dependencies:
- dependency-name: "@angular/language-service"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* image cropper
* fix: avatar bg colors, preferred username, login script
* lint
* membership color
* rem logs
* profile picture component
* pic comp
* dialog tirgger btn
* trigger dialog, styles
* lock
* interceptor for org, upload, remove
* tooltip
* lint
* stylelint
* generate same credentials of username as in login
* deletepic
* fix disable privatelabeling on missing feature, i18n
* lint
* stylelint
* block loading images if no feature
* lint
* optimize feature check
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-11 11:15:04 +02:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
let orgs = this.cachedOrgs;
|
|
|
|
if (orgs.length === 0) {
|
|
|
|
orgs = (await this.listMyProjectOrgs(10, 0)).resultList;
|
|
|
|
this.cachedOrgs = orgs;
|
|
|
|
}
|
|
|
|
|
|
|
|
const org = this.storage.getItem<Org.AsObject>(StorageKey.organization);
|
|
|
|
if (org && orgs.find(tmp => tmp.id === org.id)) {
|
|
|
|
return org;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (orgs.length === 0) {
|
|
|
|
return Promise.reject(new Error('No organizations found!'));
|
|
|
|
}
|
|
|
|
const orgToSet = orgs.find(element => element.id !== '0' && element.name !== '');
|
|
|
|
|
|
|
|
if (orgToSet) {
|
|
|
|
this.setActiveOrg(orgToSet);
|
|
|
|
return Promise.resolve(orgToSet);
|
|
|
|
}
|
|
|
|
return Promise.resolve(orgs[0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public get activeOrgChanged(): Observable<Org.AsObject> {
|
|
|
|
return this._activeOrgChanged;
|
|
|
|
}
|
|
|
|
|
|
|
|
public setActiveOrg(org: Org.AsObject): void {
|
|
|
|
this.storage.setItem(StorageKey.organization, org);
|
|
|
|
this._activeOrgChanged.next(org);
|
|
|
|
}
|
|
|
|
|
|
|
|
private loadPermissions(): void {
|
|
|
|
from(this.listMyZitadelPermissions()).pipe(
|
|
|
|
map(rolesResp => rolesResp.resultList),
|
|
|
|
catchError(_ => {
|
|
|
|
return of([]);
|
|
|
|
}),
|
|
|
|
finalize(() => {
|
|
|
|
this.fetchedZitadelPermissions.next(true);
|
|
|
|
}),
|
|
|
|
).subscribe(roles => {
|
|
|
|
this.zitadelPermissions.next(roles);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
private loadFeatures(): void {
|
|
|
|
from(this.listMyZitadelFeatures()).pipe(
|
|
|
|
map(featuresResp => featuresResp.resultList),
|
|
|
|
catchError(_ => {
|
|
|
|
return of([]);
|
|
|
|
}),
|
|
|
|
finalize(() => {
|
|
|
|
this.fetchedZitadelFeatures.next(true);
|
|
|
|
}),
|
|
|
|
).subscribe(features => {
|
|
|
|
this.zitadelFeatures.next(features);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* returns true if user has one of the provided roles
|
|
|
|
* @param roles roles of the user
|
|
|
|
*/
|
|
|
|
public isAllowed(roles: string[] | RegExp[]): Observable<boolean> {
|
|
|
|
if (roles && roles.length > 0) {
|
|
|
|
return this.zitadelPermissions.pipe(switchMap(zroles => of(this.hasRoles(zroles, roles))));
|
|
|
|
} else {
|
|
|
|
return of(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* returns true if user has one of the provided roles
|
|
|
|
* @param userRoles roles of the user
|
|
|
|
* @param requestedRoles required roles for accessing the respective component
|
|
|
|
*/
|
|
|
|
public hasRoles(userRoles: string[], requestedRoles: string[] | RegExp[]): boolean {
|
|
|
|
return requestedRoles.findIndex((regexp: any) => {
|
|
|
|
return userRoles.findIndex(role => {
|
|
|
|
return new RegExp(regexp).test(role);
|
|
|
|
}) > -1;
|
|
|
|
}) > -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* returns true if user has one of the provided features
|
|
|
|
* @param features regex of the user
|
|
|
|
*/
|
|
|
|
public canUseFeature(features: string[] | RegExp[]): Observable<boolean> {
|
|
|
|
if (features && features.length > 0) {
|
|
|
|
return this.zitadelFeatures.pipe(switchMap(zFeatures => of(this.hasFeature(zFeatures, features))));
|
|
|
|
} else {
|
|
|
|
return of(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* returns true if user has one of the provided features
|
|
|
|
* @param userFeature features of the user
|
|
|
|
* @param requestedFeature required features for accessing the respective component
|
|
|
|
*/
|
|
|
|
public hasFeature(userFeatures: string[], requestedFeatures: string[] | RegExp[]): boolean {
|
|
|
|
return requestedFeatures.findIndex((regexp: any) => {
|
|
|
|
return userFeatures.findIndex(feature => {
|
|
|
|
return new RegExp(regexp).test(feature);
|
|
|
|
}) > -1;
|
|
|
|
}) > -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
public getMyProfile(): Promise<GetMyProfileResponse.AsObject> {
|
|
|
|
return this.grpcService.auth.getMyProfile(new GetMyProfileRequest(), null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public getMyPasswordComplexityPolicy(): Promise<GetMyPasswordComplexityPolicyResponse.AsObject> {
|
|
|
|
return this.grpcService.auth.getMyPasswordComplexityPolicy(
|
|
|
|
new GetMyPasswordComplexityPolicyRequest(), null,
|
|
|
|
).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public getMyUser(): Promise<GetMyUserResponse.AsObject> {
|
|
|
|
return this.grpcService.auth.getMyUser(
|
|
|
|
new GetMyUserRequest(), null,
|
|
|
|
).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public listMyMultiFactors(): Promise<ListMyAuthFactorsResponse.AsObject> {
|
|
|
|
return this.grpcService.auth.listMyAuthFactors(
|
|
|
|
new ListMyAuthFactorsRequest(), null,
|
|
|
|
).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public listMyProjectOrgs(
|
|
|
|
limit: number,
|
|
|
|
offset: number,
|
|
|
|
queryList?: OrgQuery[],
|
|
|
|
): Promise<ListMyProjectOrgsResponse.AsObject> {
|
|
|
|
const req = new ListMyProjectOrgsRequest();
|
|
|
|
const metadata = new ListQuery();
|
|
|
|
if (offset) {
|
|
|
|
metadata.setOffset(offset);
|
|
|
|
}
|
|
|
|
if (limit) {
|
|
|
|
metadata.setLimit(limit);
|
|
|
|
}
|
|
|
|
if (queryList) {
|
|
|
|
req.setQueriesList(queryList);
|
|
|
|
}
|
|
|
|
|
|
|
|
return this.grpcService.auth.listMyProjectOrgs(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public updateMyProfile(
|
|
|
|
firstName?: string,
|
|
|
|
lastName?: string,
|
|
|
|
nickName?: string,
|
|
|
|
displayName?: string,
|
|
|
|
preferredLanguage?: string,
|
|
|
|
gender?: Gender,
|
|
|
|
): Promise<UpdateMyProfileResponse.AsObject> {
|
|
|
|
const req = new UpdateMyProfileRequest();
|
|
|
|
if (firstName) {
|
|
|
|
req.setFirstName(firstName);
|
|
|
|
}
|
|
|
|
if (lastName) {
|
|
|
|
req.setLastName(lastName);
|
|
|
|
}
|
|
|
|
if (nickName) {
|
|
|
|
req.setNickName(nickName);
|
|
|
|
}
|
|
|
|
if (displayName) {
|
|
|
|
req.setDisplayName(displayName);
|
|
|
|
}
|
|
|
|
if (gender) {
|
|
|
|
req.setGender(gender);
|
|
|
|
}
|
|
|
|
if (preferredLanguage) {
|
|
|
|
req.setPreferredLanguage(preferredLanguage);
|
|
|
|
}
|
|
|
|
return this.grpcService.auth.updateMyProfile(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public get zitadelPermissionsChanged(): Observable<string[]> {
|
|
|
|
return this.zitadelPermissions;
|
|
|
|
}
|
|
|
|
|
|
|
|
public listMyUserSessions(): Promise<ListMyUserSessionsResponse.AsObject> {
|
|
|
|
const req = new ListMyUserSessionsRequest();
|
|
|
|
return this.grpcService.auth.listMyUserSessions(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public listMyUserGrants(limit?: number, offset?: number, queryList?: ListQuery[]):
|
|
|
|
Promise<ListMyUserGrantsResponse.AsObject> {
|
|
|
|
const req = new ListMyUserGrantsRequest();
|
|
|
|
const query = new ListQuery();
|
|
|
|
if (limit) {
|
|
|
|
query.setLimit(limit);
|
|
|
|
}
|
|
|
|
if (offset) {
|
|
|
|
query.setOffset(offset);
|
|
|
|
}
|
|
|
|
req.setQuery(query);
|
|
|
|
return this.grpcService.auth.listMyUserGrants(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
2021-08-16 14:44:20 +02:00
|
|
|
public listMyMemberships(limit: number, offset: number,
|
|
|
|
queryList?: MembershipQuery[],
|
|
|
|
): Promise<ListMyMembershipsResponse.AsObject> {
|
|
|
|
const req = new ListMyMembershipsRequest();
|
|
|
|
const metadata = new ListQuery();
|
|
|
|
if (limit) {
|
|
|
|
metadata.setLimit(limit);
|
|
|
|
}
|
|
|
|
if (offset) {
|
|
|
|
metadata.setOffset(offset);
|
|
|
|
}
|
|
|
|
if (queryList) {
|
|
|
|
req.setQueriesList(queryList);
|
|
|
|
}
|
|
|
|
req.setQuery(metadata);
|
|
|
|
return this.grpcService.auth.listMyMemberships(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
feat(console): update deps, alternative hash function with fixed colors, use preferrenLoginName for hashing, fix iam write permissions, user img upload (#1846)
* chore(deps-dev): bump @types/jasmine from 3.6.9 to 3.7.7 in /console (#1824)
Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.6.9 to 3.7.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine)
---
updated-dependencies:
- dependency-name: "@types/jasmine"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump google-protobuf from 3.15.8 to 3.17.2 in /console (#1823)
Bumps [google-protobuf](https://github.com/protocolbuffers/protobuf) from 3.15.8 to 3.17.2.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/master/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.15.8...v3.17.2)
---
updated-dependencies:
- dependency-name: google-protobuf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/animations from 12.0.0 to 12.0.3 in /console (#1821)
Bumps [@angular/animations](https://github.com/angular/angular/tree/HEAD/packages/animations) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/animations)
---
updated-dependencies:
- dependency-name: "@angular/animations"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material from 12.0.0 to 12.0.3 in /console (#1819)
Bumps [@angular/material](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump prettier from 2.2.1 to 2.3.1 in /console (#1818)
Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.1)
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/platform-browser-dynamic in /console (#1817)
Bumps [@angular/platform-browser-dynamic](https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/platform-browser-dynamic)
---
updated-dependencies:
- dependency-name: "@angular/platform-browser-dynamic"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.14.37 to 15.12.1 in /console (#1815)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 15.12.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/common from 12.0.0 to 12.0.3 in /console (#1814)
Bumps [@angular/common](https://github.com/angular/angular/tree/HEAD/packages/common) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/common)
---
updated-dependencies:
- dependency-name: "@angular/common"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material-moment-adapter from 12.0.0 to 12.0.3 in /console (#1816)
* chore(deps): bump @angular/material-moment-adapter in /console
Bumps [@angular/material-moment-adapter](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material-moment-adapter"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* sort
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump @angular/language-service in /console (#1822)
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/language-service)
---
updated-dependencies:
- dependency-name: "@angular/language-service"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* image cropper
* fix: avatar bg colors, preferred username, login script
* lint
* membership color
* rem logs
* profile picture component
* pic comp
* dialog tirgger btn
* trigger dialog, styles
* lock
* interceptor for org, upload, remove
* tooltip
* lint
* stylelint
* generate same credentials of username as in login
* deletepic
* fix disable privatelabeling on missing feature, i18n
* lint
* stylelint
* block loading images if no feature
* lint
* optimize feature check
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-11 11:15:04 +02:00
|
|
|
public getMyEmail(): Promise<GetMyEmailResponse.AsObject> {
|
|
|
|
const req = new GetMyEmailRequest();
|
|
|
|
return this.grpcService.auth.getMyEmail(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public setMyEmail(email: string): Promise<SetMyEmailResponse.AsObject> {
|
|
|
|
const req = new SetMyEmailRequest();
|
|
|
|
req.setEmail(email);
|
|
|
|
return this.grpcService.auth.setMyEmail(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public resendMyEmailVerification(): Promise<ResendMyEmailVerificationResponse.AsObject> {
|
|
|
|
const req = new ResendMyEmailVerificationRequest();
|
|
|
|
return this.grpcService.auth.resendMyEmailVerification(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public removeMyPhone(): Promise<RemoveMyPhoneResponse.AsObject> {
|
|
|
|
return this.grpcService.auth.removeMyPhone(
|
|
|
|
new RemoveMyPhoneRequest(), null,
|
|
|
|
).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public listMyZitadelPermissions(): Promise<ListMyZitadelPermissionsResponse.AsObject> {
|
|
|
|
return this.grpcService.auth.listMyZitadelPermissions(
|
|
|
|
new ListMyZitadelPermissionsRequest(), null,
|
|
|
|
).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public listMyZitadelFeatures(): Promise<ListMyZitadelFeaturesResponse.AsObject> {
|
|
|
|
return this.grpcService.auth.listMyZitadelFeatures(
|
|
|
|
new ListMyZitadelFeaturesRequest(), null,
|
|
|
|
).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public getMyPhone(): Promise<GetMyPhoneResponse.AsObject> {
|
|
|
|
return this.grpcService.auth.getMyPhone(
|
|
|
|
new GetMyPhoneRequest(), null,
|
|
|
|
).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public setMyPhone(phone: string): Promise<SetMyPhoneResponse.AsObject> {
|
|
|
|
const req = new SetMyPhoneRequest();
|
|
|
|
req.setPhone(phone);
|
|
|
|
return this.grpcService.auth.setMyPhone(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public resendMyPhoneVerification(): Promise<ResendMyPhoneVerificationResponse.AsObject> {
|
|
|
|
const req = new ResendMyPhoneVerificationRequest();
|
|
|
|
return this.grpcService.auth.resendMyPhoneVerification(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public updateMyPassword(oldPassword: string, newPassword: string): Promise<UpdateMyPasswordResponse.AsObject> {
|
|
|
|
const req = new UpdateMyPasswordRequest();
|
|
|
|
req.setOldPassword(oldPassword);
|
|
|
|
req.setNewPassword(newPassword);
|
|
|
|
return this.grpcService.auth.updateMyPassword(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public removeMyLinkedIDP(
|
|
|
|
idpId: string,
|
2021-08-26 08:15:00 +02:00
|
|
|
linkedUserId: string,
|
feat(console): update deps, alternative hash function with fixed colors, use preferrenLoginName for hashing, fix iam write permissions, user img upload (#1846)
* chore(deps-dev): bump @types/jasmine from 3.6.9 to 3.7.7 in /console (#1824)
Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.6.9 to 3.7.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine)
---
updated-dependencies:
- dependency-name: "@types/jasmine"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump google-protobuf from 3.15.8 to 3.17.2 in /console (#1823)
Bumps [google-protobuf](https://github.com/protocolbuffers/protobuf) from 3.15.8 to 3.17.2.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/master/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.15.8...v3.17.2)
---
updated-dependencies:
- dependency-name: google-protobuf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/animations from 12.0.0 to 12.0.3 in /console (#1821)
Bumps [@angular/animations](https://github.com/angular/angular/tree/HEAD/packages/animations) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/animations)
---
updated-dependencies:
- dependency-name: "@angular/animations"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material from 12.0.0 to 12.0.3 in /console (#1819)
Bumps [@angular/material](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump prettier from 2.2.1 to 2.3.1 in /console (#1818)
Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.1)
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/platform-browser-dynamic in /console (#1817)
Bumps [@angular/platform-browser-dynamic](https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/platform-browser-dynamic)
---
updated-dependencies:
- dependency-name: "@angular/platform-browser-dynamic"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.14.37 to 15.12.1 in /console (#1815)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 15.12.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/common from 12.0.0 to 12.0.3 in /console (#1814)
Bumps [@angular/common](https://github.com/angular/angular/tree/HEAD/packages/common) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/common)
---
updated-dependencies:
- dependency-name: "@angular/common"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material-moment-adapter from 12.0.0 to 12.0.3 in /console (#1816)
* chore(deps): bump @angular/material-moment-adapter in /console
Bumps [@angular/material-moment-adapter](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material-moment-adapter"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* sort
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump @angular/language-service in /console (#1822)
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/language-service)
---
updated-dependencies:
- dependency-name: "@angular/language-service"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* image cropper
* fix: avatar bg colors, preferred username, login script
* lint
* membership color
* rem logs
* profile picture component
* pic comp
* dialog tirgger btn
* trigger dialog, styles
* lock
* interceptor for org, upload, remove
* tooltip
* lint
* stylelint
* generate same credentials of username as in login
* deletepic
* fix disable privatelabeling on missing feature, i18n
* lint
* stylelint
* block loading images if no feature
* lint
* optimize feature check
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-11 11:15:04 +02:00
|
|
|
): Promise<RemoveMyLinkedIDPResponse.AsObject> {
|
|
|
|
const req = new RemoveMyLinkedIDPRequest();
|
2021-08-26 08:15:00 +02:00
|
|
|
req.setLinkedUserId(linkedUserId);
|
feat(console): update deps, alternative hash function with fixed colors, use preferrenLoginName for hashing, fix iam write permissions, user img upload (#1846)
* chore(deps-dev): bump @types/jasmine from 3.6.9 to 3.7.7 in /console (#1824)
Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.6.9 to 3.7.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine)
---
updated-dependencies:
- dependency-name: "@types/jasmine"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump google-protobuf from 3.15.8 to 3.17.2 in /console (#1823)
Bumps [google-protobuf](https://github.com/protocolbuffers/protobuf) from 3.15.8 to 3.17.2.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/master/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.15.8...v3.17.2)
---
updated-dependencies:
- dependency-name: google-protobuf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/animations from 12.0.0 to 12.0.3 in /console (#1821)
Bumps [@angular/animations](https://github.com/angular/angular/tree/HEAD/packages/animations) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/animations)
---
updated-dependencies:
- dependency-name: "@angular/animations"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material from 12.0.0 to 12.0.3 in /console (#1819)
Bumps [@angular/material](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump prettier from 2.2.1 to 2.3.1 in /console (#1818)
Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.1)
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/platform-browser-dynamic in /console (#1817)
Bumps [@angular/platform-browser-dynamic](https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/platform-browser-dynamic)
---
updated-dependencies:
- dependency-name: "@angular/platform-browser-dynamic"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.14.37 to 15.12.1 in /console (#1815)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 15.12.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/common from 12.0.0 to 12.0.3 in /console (#1814)
Bumps [@angular/common](https://github.com/angular/angular/tree/HEAD/packages/common) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/common)
---
updated-dependencies:
- dependency-name: "@angular/common"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material-moment-adapter from 12.0.0 to 12.0.3 in /console (#1816)
* chore(deps): bump @angular/material-moment-adapter in /console
Bumps [@angular/material-moment-adapter](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material-moment-adapter"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* sort
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump @angular/language-service in /console (#1822)
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/language-service)
---
updated-dependencies:
- dependency-name: "@angular/language-service"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* image cropper
* fix: avatar bg colors, preferred username, login script
* lint
* membership color
* rem logs
* profile picture component
* pic comp
* dialog tirgger btn
* trigger dialog, styles
* lock
* interceptor for org, upload, remove
* tooltip
* lint
* stylelint
* generate same credentials of username as in login
* deletepic
* fix disable privatelabeling on missing feature, i18n
* lint
* stylelint
* block loading images if no feature
* lint
* optimize feature check
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-11 11:15:04 +02:00
|
|
|
req.setIdpId(idpId);
|
|
|
|
return this.grpcService.auth.removeMyLinkedIDP(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public removeMyAvatar(): Promise<RemoveMyAvatarResponse.AsObject> {
|
|
|
|
const req = new RemoveMyAvatarRequest();
|
|
|
|
return this.grpcService.auth.removeMyAvatar(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public listMyLinkedIDPs(
|
|
|
|
limit: number,
|
|
|
|
offset: number,
|
|
|
|
): Promise<ListMyLinkedIDPsResponse.AsObject> {
|
|
|
|
const req = new ListMyLinkedIDPsRequest();
|
|
|
|
const metadata = new ListQuery();
|
|
|
|
if (limit) {
|
|
|
|
metadata.setLimit(limit);
|
|
|
|
}
|
|
|
|
if (offset) {
|
|
|
|
metadata.setOffset(offset);
|
|
|
|
}
|
|
|
|
req.setQuery(metadata);
|
|
|
|
return this.grpcService.auth.listMyLinkedIDPs(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public addMyMultiFactorOTP(): Promise<AddMyAuthFactorOTPResponse.AsObject> {
|
|
|
|
return this.grpcService.auth.addMyAuthFactorOTP(
|
|
|
|
new AddMyAuthFactorOTPRequest(), null,
|
|
|
|
).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public addMyMultiFactorU2F(): Promise<AddMyAuthFactorU2FResponse.AsObject> {
|
|
|
|
return this.grpcService.auth.addMyAuthFactorU2F(
|
|
|
|
new AddMyAuthFactorU2FRequest(), null,
|
|
|
|
).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public removeMyMultiFactorU2F(tokenId: string): Promise<RemoveMyAuthFactorU2FResponse.AsObject> {
|
|
|
|
const req = new RemoveMyAuthFactorU2FRequest();
|
|
|
|
req.setTokenId(tokenId);
|
|
|
|
return this.grpcService.auth.removeMyAuthFactorU2F(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public verifyMyMultiFactorU2F(credential: string, tokenname: string): Promise<VerifyMyAuthFactorU2FResponse.AsObject> {
|
|
|
|
const req = new VerifyMyAuthFactorU2FRequest();
|
|
|
|
const verification = new WebAuthNVerification();
|
|
|
|
verification.setPublicKeyCredential(credential);
|
|
|
|
verification.setTokenName(tokenname);
|
|
|
|
req.setVerification(verification);
|
|
|
|
|
|
|
|
return this.grpcService.auth.verifyMyAuthFactorU2F(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public listMyPasswordless(): Promise<ListMyPasswordlessResponse.AsObject> {
|
|
|
|
return this.grpcService.auth.listMyPasswordless(
|
|
|
|
new ListMyPasswordlessRequest(), null,
|
|
|
|
).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public addMyPasswordless(): Promise<AddMyPasswordlessResponse.AsObject> {
|
|
|
|
return this.grpcService.auth.addMyPasswordless(
|
|
|
|
new AddMyPasswordlessRequest(), null,
|
|
|
|
).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public removeMyPasswordless(tokenId: string): Promise<RemoveMyPasswordlessResponse.AsObject> {
|
|
|
|
const req = new RemoveMyPasswordlessRequest();
|
|
|
|
req.setTokenId(tokenId);
|
|
|
|
return this.grpcService.auth.removeMyPasswordless(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public verifyMyPasswordless(credential: string, tokenname: string): Promise<VerifyMyPasswordlessResponse.AsObject> {
|
|
|
|
const req = new VerifyMyPasswordlessRequest();
|
|
|
|
const verification = new WebAuthNVerification();
|
|
|
|
verification.setTokenName(tokenname);
|
|
|
|
verification.setPublicKeyCredential(credential);
|
|
|
|
req.setVerification(verification);
|
|
|
|
|
|
|
|
return this.grpcService.auth.verifyMyPasswordless(
|
|
|
|
req, null,
|
|
|
|
).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
2021-08-13 09:05:05 +02:00
|
|
|
public sendMyPasswordlessLink(): Promise<SendMyPasswordlessLinkResponse.AsObject> {
|
|
|
|
const req = new SendMyPasswordlessLinkRequest();
|
|
|
|
return this.grpcService.auth.sendMyPasswordlessLink(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public addMyPasswordlessLink(): Promise<AddMyPasswordlessLinkResponse.AsObject> {
|
|
|
|
const req = new AddMyPasswordlessLinkRequest();
|
|
|
|
return this.grpcService.auth.addMyPasswordlessLink(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
feat(console): update deps, alternative hash function with fixed colors, use preferrenLoginName for hashing, fix iam write permissions, user img upload (#1846)
* chore(deps-dev): bump @types/jasmine from 3.6.9 to 3.7.7 in /console (#1824)
Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.6.9 to 3.7.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine)
---
updated-dependencies:
- dependency-name: "@types/jasmine"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump google-protobuf from 3.15.8 to 3.17.2 in /console (#1823)
Bumps [google-protobuf](https://github.com/protocolbuffers/protobuf) from 3.15.8 to 3.17.2.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/master/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.15.8...v3.17.2)
---
updated-dependencies:
- dependency-name: google-protobuf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/animations from 12.0.0 to 12.0.3 in /console (#1821)
Bumps [@angular/animations](https://github.com/angular/angular/tree/HEAD/packages/animations) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/animations)
---
updated-dependencies:
- dependency-name: "@angular/animations"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material from 12.0.0 to 12.0.3 in /console (#1819)
Bumps [@angular/material](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump prettier from 2.2.1 to 2.3.1 in /console (#1818)
Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.1)
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/platform-browser-dynamic in /console (#1817)
Bumps [@angular/platform-browser-dynamic](https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/platform-browser-dynamic)
---
updated-dependencies:
- dependency-name: "@angular/platform-browser-dynamic"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/node from 14.14.37 to 15.12.1 in /console (#1815)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 15.12.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/common from 12.0.0 to 12.0.3 in /console (#1814)
Bumps [@angular/common](https://github.com/angular/angular/tree/HEAD/packages/common) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/common)
---
updated-dependencies:
- dependency-name: "@angular/common"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump @angular/material-moment-adapter from 12.0.0 to 12.0.3 in /console (#1816)
* chore(deps): bump @angular/material-moment-adapter in /console
Bumps [@angular/material-moment-adapter](https://github.com/angular/components) from 12.0.0 to 12.0.3.
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3)
---
updated-dependencies:
- dependency-name: "@angular/material-moment-adapter"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* sort
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* chore(deps-dev): bump @angular/language-service in /console (#1822)
Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 12.0.0 to 12.0.3.
- [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/12.0.3/packages/language-service)
---
updated-dependencies:
- dependency-name: "@angular/language-service"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <max@caos.ch>
* image cropper
* fix: avatar bg colors, preferred username, login script
* lint
* membership color
* rem logs
* profile picture component
* pic comp
* dialog tirgger btn
* trigger dialog, styles
* lock
* interceptor for org, upload, remove
* tooltip
* lint
* stylelint
* generate same credentials of username as in login
* deletepic
* fix disable privatelabeling on missing feature, i18n
* lint
* stylelint
* block loading images if no feature
* lint
* optimize feature check
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-11 11:15:04 +02:00
|
|
|
public removeMyMultiFactorOTP(): Promise<RemoveMyAuthFactorOTPResponse.AsObject> {
|
|
|
|
return this.grpcService.auth.removeMyAuthFactorOTP(
|
|
|
|
new RemoveMyAuthFactorOTPRequest(), null,
|
|
|
|
).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public verifyMyMultiFactorOTP(code: string): Promise<VerifyMyAuthFactorOTPResponse.AsObject> {
|
|
|
|
const req = new VerifyMyAuthFactorOTPRequest();
|
|
|
|
req.setCode(code);
|
|
|
|
return this.grpcService.auth.verifyMyAuthFactorOTP(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public verifyMyPhone(code: string): Promise<VerifyMyPhoneResponse.AsObject> {
|
|
|
|
const req = new VerifyMyPhoneRequest();
|
|
|
|
req.setCode(code);
|
|
|
|
return this.grpcService.auth.verifyMyPhone(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
|
|
|
|
|
|
|
public listMyUserChanges(limit: number, sequence: number): Promise<ListMyUserChangesResponse.AsObject> {
|
|
|
|
const req = new ListMyUserChangesRequest();
|
|
|
|
const query = new ChangeQuery();
|
|
|
|
|
|
|
|
if (limit) {
|
|
|
|
query.setLimit(limit);
|
|
|
|
}
|
|
|
|
if (sequence) {
|
|
|
|
query.setSequence(sequence);
|
|
|
|
}
|
|
|
|
req.setQuery(query);
|
|
|
|
return this.grpcService.auth.listMyUserChanges(req, null).then(resp => resp.toObject());
|
|
|
|
}
|
2020-08-29 10:43:35 +02:00
|
|
|
}
|