Commit Graph
100 Commits
Author SHA1 Message Date
FabiandGitHub 320679467b feat: User login commands (#1228)
* feat: change login to command side

* feat: change login to command side

* fix: fix push on user

* feat: user command side

* feat: sign out

* feat: command side login

* feat: command side login

* feat: fix register user

* feat: fix register user

* feat: fix web auth n events

* feat: add machine keys

* feat: send codes

* feat: move authrequest to domain

* feat: move authrequest to domain

* feat: webauthn working

* feat: external users

* feat: external users login

* feat: notify users

* fix: tests

* feat: cascade remove user grants on project remove

* fix: webauthn

* fix: pr requests

* fix: register human with member

* fix: fix bugs

* fix: fix bugs
2021-02-08 11:30:30 +01:00
c65331df1a feat: new projects (#1207)
* fix: project events

* fix: project events

* fix: project events

* fix: eventmapper

* fix: project commands

* fix: project role commands

* fix: project command side

* fix: oidc application

* fix: oidc application

* fix: reduce

* fix: reduce

* fix: project member

* fix: project grant command side

* fix: application command side

* fix: project grant member remove

* Update internal/v2/command/project.go

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/v2/command/project.go

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/v2/command/project_application.go

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/v2/command/project_application.go

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/v2/command/project_application.go

Co-authored-by: Livio Amstutz <[email protected]>

* fix: oidc application string pw

* fix: project events

* fix: project grant member

* feat: change application to interface

Co-authored-by: Livio Amstutz <[email protected]>
2021-01-28 06:35:26 +01:00
dfcb96d6a3 feat: user grants command side (#1191)
* fix: user grant command side

* fix: user grant command side

* fix: user grant command side check permissions

* fix: unique constraint on user grants

* fix: add usergrant

* fix: add usergrant

* fix: add usergrant

* fix: user grant remove

* Update internal/v2/command/auth_checks.go

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/v2/command/auth_checks.go

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/v2/command/project.go

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/v2/command/user_grant.go

Co-authored-by: Livio Amstutz <[email protected]>

* fix: project events

Co-authored-by: Livio Amstutz <[email protected]>
2021-01-22 13:31:52 +01:00
FabiandGitHub 28bfe72930 feat: uniqueness (#1190)
* feat: uniqueness on events

* fix: some tests

* fix: add unique username

* fix: nice error message

* fix: add unique test

* fix: add unique test

* fix: add unique constraint to events

* fix: correct unique constraint on user events

* fix: remove user constraint

* fix: add unique constraints

* fix: add unique constraints

* fix: add unique constraints

* fix: unnique constraints without interface

* fix: unique idp config

* fix: unique constraint comments

* fix: unique constraints in one table

* fix: unique constraints error

* fix: fix unique constraint on create user

* fix: fix unique constraint on create project

* fix: fix unique constraint on idp configs
2021-01-21 10:49:38 +01:00
959530ddad feat: new user auth api (#1168)
* fix: correct selectors for extended writemodel

* fix: no previous checks in eventstore

* start check previous

* feat: auth user commands

* feat: auth user commands

* feat: auth user commands

* feat: otp

* feat: corrections from pr merge

* feat: webauthn

* feat: comment old webauthn

* feat: refactor user, human, machine

* feat: webauth command side

* feat: command and query side in login

* feat: fix user writemodel append events

* fix: remove creation dates on command side

* fix: remove previous sequence

* previous sequence

* fix: external idps

* Update internal/api/grpc/management/user.go

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/v2/command/user_human_email.go

Co-authored-by: Livio Amstutz <[email protected]>

* fix: pr changes

* fix: phone verification

Co-authored-by: adlerhurst <[email protected]>
Co-authored-by: Livio Amstutz <[email protected]>
2021-01-15 09:32:59 +01:00
FabiandGitHub 26c8113930 feat: New event user (#1156)
* feat: change user command side

* feat: change user command side

* feat: use states on write model

* feat: command and query side in auth api

* feat: auth commands

* feat: check external idp id

* feat: user state check

* fix: error messages

* fix: is active state
2021-01-07 16:06:45 +01:00
FabiandGitHub 65a8efeb0e feat: New user (#1153)
* fix: use pointer in events

* fix: change user requests to command side

* fix: org policy

* fix: profile
2021-01-06 11:12:56 +01:00
dc56e298ae fix: use domain models for v2 eventstore (#1151)
* fix: use domain models for v2 eventstore

* fix: user domain model

* Update internal/api/grpc/admin/login_policy_converter.go

Co-authored-by: Livio Amstutz <[email protected]>

* fix: converter

Co-authored-by: Livio Amstutz <[email protected]>
2021-01-05 09:33:45 +01:00
FabiandGitHub 7f26f1815b fix: Previous sequence (#1086)
* feat: remove previous sequence check

* feat: object creation date

* feat: simplify member write model

* feat: simplify write model

* feat: simplify write model
2020-12-14 17:24:01 +01:00
FabiandGitHub 2ab47c3c8d fix: Lastspooltime (#1102)
* feat: last spool time convert

* feat: last spool time convert
2020-12-14 11:49:20 +01:00
FabiandGitHub 5b433dcaa3 New eventstore policies (#1084)
* feat: login policy

* feat: password complexity policy

* feat: org iam policy

* feat: label policy

* feat: add and change policies

* feat: second factors

* feat: second and multi factors

* feat: better naming

* feat: better naming
2020-12-11 15:49:19 +01:00
FabiandGitHub 31ea9d1acd feat: user events (#1062)
* feat: user new eventstore

* feat: rename query builder

* feat: human events

* feat: human events

* feat: events

* feat: phone events

* feat: phone events

* feat: profile, address events

* feat: mfa, otp

* feat: webauthn events

* feat: webauthn events

* feat: webauthn events

* feat: enums

* feat: new events

* feat: user events

* feat: domain events

* feat: all v2 events

* feat: all v1 events

* feat: pkg structure

* feat: change events

* feat: better naming

* feat: better naming
2020-12-10 16:18:52 +01:00
6b3f5b984c feat: metrics (#1024)
* refactor: switch from opencensus to opentelemetry

* tempo works as designed nooooot

* fix: log traceids

* with grafana agent

* fix: http tracing

* fix: cleanup files

* chore: remove todo

* fix: bad test

* fix: ignore methods in grpc interceptors

* fix: remove test log

* clean up

* typo

* fix(config): configure tracing endpoint

* fix(span): add error id to span

* feat: metrics package

* feat: metrics package

* fix: counter

* fix: metric

* try metrics

* fix: coutner metrics

* fix: active sessin counter

* fix: active sessin counter

* fix: change current Sequence table

* fix: change current Sequence table

* fix: current sequences

* fix: spooler div metrics

* fix: console view

* fix: merge master

* fix: Last spool run on search result instead of eventtimestamp

* fix: go mod

* Update console/src/assets/i18n/de.json

Co-authored-by: Livio Amstutz <[email protected]>

* fix: pr review

* fix: map

* update oidc pkg

* fix: handlers

* fix: value observer

* fix: remove fmt

* fix: handlers

* fix: tests

* fix: handler minimum cycle duration 1s

* fix(spooler): handler channel buffer

* fix interceptors

Co-authored-by: adlerhurst <[email protected]>
Co-authored-by: Livio Amstutz <[email protected]>
2020-12-02 08:50:59 +01:00
75bf0409c4 fix: management api remove otp (#1010)
* fix: management api remove otp

* add postinstall

* remove mgmt otp

Co-authored-by: Max Peintner <[email protected]>
2020-11-24 12:06:46 +01:00
FabiandGitHub a891fb571a fix: fill selected idp config id on step (#994) 2020-11-20 11:20:17 +01:00
666e43a7e2 feat: probes (#964)
* feat: probes

* feat: validate

* fix: protos

Co-authored-by: Livio Amstutz <[email protected]>
2020-11-20 10:09:17 +01:00
FabiandGitHub 7c6fd2b51e fix: Externallogin on existing session (#990)
* fix: existing session with external login

* fix: existing session with external login

* fix: return in login
2020-11-20 09:00:49 +01:00
FabiandGitHub a40ec1f25b fix: audience in create token (#985) 2020-11-18 17:11:37 +01:00
FabiandGitHub 119ddbfa09 fix: new build (#977) 2020-11-17 17:29:41 +01:00
78c0cf2f57 fix: add and verified projectID in audience (#957)
* feat: new scope for project id in aud

* feat: add doc

* feat: projectid endpoint

* feat: remove handle Proejct id

* fix: remove go.mod replace

* fix: add project id to aud

* fix: update oidc version

* fix: change project id scope

* update projectID scope to current usage

* typo: ZITADEL uppercase

Co-authored-by: Livio Amstutz <[email protected]>
2020-11-16 10:54:48 +01:00
202aae4954 feat: mfa policy (#913)
* feat: add mfa to login policy

* feat: add mfa to login policy

* feat: add mfa to login policy

* feat: add mfa to login policy

* feat: add mfa to login policy on org

* feat: add mfa to login policy on org

* feat: append events on policy views

* feat: iam login policy mfa definition

* feat: login policies on orgs

* feat: configured mfas in login process

* feat: configured mfas in login process

* Update internal/ui/login/static/i18n/en.yaml

Co-authored-by: Livio Amstutz <[email protected]>

* fix: rename software and hardware mfas

* fix: pr requests

* fix user mfa

* fix: test

* fix: oidc version

* fix: oidc version

* fix: proto gen

Co-authored-by: Livio Amstutz <[email protected]>
Co-authored-by: Max Peintner <[email protected]>
2020-11-04 11:26:10 +01:00
FabiandGitHub 51417be35d feat: primary domain (#936)
* fix: primary domain

* fix: remove comment

* fix: oidc version
2020-11-03 10:50:03 +01:00
FabiandGitHub b79661d66e fix: add search params for user grants (#915) 2020-11-03 07:52:49 +01:00
FabiandGitHub 57a3ccc91b fix: handle login policy removed (#882) 2020-10-20 15:54:26 +02:00
FabiandGitHub 7e56ace9d9 fix: idp provider handler (#874)
* fix: idp provider handler

* fix: idp provider search

* fix: idp provider search

* fix: error handling

* fix: error handling

* fix: fix read config
2020-10-20 14:26:19 +02:00
FabiandGitHub 46bc987b28 fix: idp changes (#872) 2020-10-20 08:23:56 +02:00
FabiandGitHub 4eb380a825 fix: IDP login button styles (#869)
* fix: styling type on idp

* fix: google styling

* fix: google styling

* fix: google styling

* fix: remove logo src from angular

* fix: pr requests

* fix drop column migration

* fix: drop column migration

* fix: grant id
2020-10-19 17:10:02 +02:00
FabiandGitHub bb9747923c fix: cascade remove external login (#871)
* fix: cascade remove external login

* fix: tests
2020-10-19 16:28:06 +02:00
c3b4c3f264 fix: translations and oidc package update (#845)
* fix: translation

* fix: translation

* fix: translation

* fix: UserInfo with JWT access token

* fix: dependencies

* fix: dependencies

Co-authored-by: Livio Amstutz <[email protected]>
2020-10-16 13:15:19 +02:00
FabiandGitHub f5a7a0a09f fix: new generated protos (#842) 2020-10-15 15:32:20 +02:00
265b491696 feat: tokens on user aggregate (#837)
* fix: fix remove policies in spoolers

* fix: reread of token by id

* fix: update oidc package

* fix: possible nil pointer on token split

Co-authored-by: Livio Amstutz <[email protected]>
2020-10-15 13:52:41 +02:00
FabiGitHubFlorian Forsterdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Max PeintnerSilvandependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
fbb30840f1 feat: policies on aggregates (#799)
* feat: move pw policy

* feat: default pw complexity policy

* fix: org password complexity policy

* fix: org password complexity policy

* fix: pw complexity policy with setup

* fix: age and lockout policies on aggregates

* fix: migration

* fix: org iam policy

* fix: org iam policy

* fix: org iam policy

* fix: tests

* fix: policy request

* fix: merge master

* fix(console): policies frontend (#817)

* fix policy build

* fix: age, complexity, lockout policies

* fix: ready return err of setup not done

* fix: fix remove policies in spoolers

* fix: fix remove policies in spoolers

* feat(console): policy settings for iam and org (#824)

* fix policy build

* fix: age, complexity, lockout policies

* fix pwd complexity

* policy remove action

* add imports

* fix accounts card, enable mgmt login policy

* lint

* add iam policy to admin

* toasts, i18n, show default

* routing, i18n

* reset policy, toast i18n, cleanup, routing

* policy delete permission

* lint style

* delete iam policy

* delete non project from grid list, i18n

* lint ts, style

* fix: remove instead delete

* feat(console): delete external idp from user (#835)

* dialog i18n, delete column and function

* dialog i18n

* fix rm button

* Update console/src/assets/i18n/de.json

Co-authored-by: Fabi <[email protected]>

* Update console/src/assets/i18n/de.json

Co-authored-by: Fabi <[email protected]>

* fix: revert env, rename policy, remove comments

* fix: lowercase sich

* fix: pr requests

* Update internal/iam/repository/eventsourcing/eventstore_test.go

Co-authored-by: Silvan <[email protected]>

* fix: tests

* fix: tests

* fix(console): policies (#839)

* fix: nil pointer on get userdata (#815)

* fix: external login (#818)

* fix: external login

* fix: external login

* feat(console): delete user (#819)

* add action col to user table, i18n

* delete user from detail component

* lint

* fix(console): cleanup user detail and member components, user/me redirect, permission guards, filter, org policy guard, user table, scss cleanup (#808)

* fix: remove user.write guard for filtering

* border color

* fix user routing from member tables

* idp detail layout

* generic contact component

* fix redirect to auth user, user grant disable

* disable policy action without permission, i18n

* user-create flex fix, contact ng-content

* rm unused styles

* sidenav divider

* lint

* chore(deps-dev): bump @angular/cli from 10.1.3 to 10.1.4 in /console (#806)

* fix: user session with external login (#797)

* fix: user session with external login

* fix: tests

* fix: tests

* fix: change idp config name

* fix(container): stop copying / and instead only copy zitadel (#691)

* chore: stop copying / and instead only copy zitadel

* Update Dockerfile

* Update release.yml

* enable anchors debug

* fix(container): don't copy alpine content into scratch execpt pwd

* chore: remove need step

* merge master

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

Bumps [@angular/cli](https://github.com/angular/angular-cli) from 10.1.3 to 10.1.4.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/compare/v10.1.3...v10.1.4)

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

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

* chore(deps-dev): bump @angular/language-service from 10.1.3 to 10.1.4 in /console (#805)

* fix: user session with external login (#797)

* fix: user session with external login

* fix: tests

* fix: tests

* fix: change idp config name

* fix(container): stop copying / and instead only copy zitadel (#691)

* chore: stop copying / and instead only copy zitadel

* Update Dockerfile

* Update release.yml

* enable anchors debug

* fix(container): don't copy alpine content into scratch execpt pwd

* chore: remove need step

* merge master

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

Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 10.1.3 to 10.1.4.
- [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/10.1.4/packages/language-service)

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

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

* chore(deps-dev): bump codelyzer from 6.0.0 to 6.0.1 in /console (#804)

* fix: user session with external login (#797)

* fix: user session with external login

* fix: tests

* fix: tests

* fix: change idp config name

* fix(container): stop copying / and instead only copy zitadel (#691)

* chore: stop copying / and instead only copy zitadel

* Update Dockerfile

* Update release.yml

* enable anchors debug

* fix(container): don't copy alpine content into scratch execpt pwd

* chore: remove need step

* merge master

* chore(deps-dev): bump codelyzer from 6.0.0 to 6.0.1 in /console

Bumps [codelyzer](https://github.com/mgechev/codelyzer) from 6.0.0 to 6.0.1.
- [Release notes](https://github.com/mgechev/codelyzer/releases)
- [Changelog](https://github.com/mgechev/codelyzer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mgechev/codelyzer/commits/6.0.1)

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

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

* chore(deps-dev): bump @angular-devkit/build-angular from 0.1000.8 to 0.1001.4 in /console (#803)

* fix: user session with external login (#797)

* fix: user session with external login

* fix: tests

* fix: tests

* fix: change idp config name

* fix(container): stop copying / and instead only copy zitadel (#691)

* chore: stop copying / and instead only copy zitadel

* Update Dockerfile

* Update release.yml

* enable anchors debug

* fix(container): don't copy alpine content into scratch execpt pwd

* chore: remove need step

* merge master

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

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

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

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

* chore(deps): bump uuid from 8.3.0 to 8.3.1 in /console (#802)

* fix: user session with external login (#797)

* fix: user session with external login

* fix: tests

* fix: tests

* fix: change idp config name

* fix(container): stop copying / and instead only copy zitadel (#691)

* chore: stop copying / and instead only copy zitadel

* Update Dockerfile

* Update release.yml

* enable anchors debug

* fix(container): don't copy alpine content into scratch execpt pwd

* chore: remove need step

* merge master

* chore(deps): bump uuid from 8.3.0 to 8.3.1 in /console

Bumps [uuid](https://github.com/uuidjs/uuid) from 8.3.0 to 8.3.1.
- [Release notes](https://github.com/uuidjs/uuid/releases)
- [Changelog](https://github.com/uuidjs/uuid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v8.3.0...v8.3.1)

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

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

* create memberstable as common component

* iam member cleanup

* iam + org m table, user table service user avatar

* toast config

* fix selection emitter

* fix project grant table width

* project grant members refactor

* theme optimizations

* member table col delete

* lint

* fix table row color

* refactor grey color

* lint scss

* org list redirect on click, fix user table undef

* refresh table after grant add

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

* fix(console): intercept navigator.language, set browser lang as default for user without explicit setting, user table outline, member create dialog import (#820)

* i18n interceptor, set language to browser lang

* nullcheck

* rm external idp log

* fix module imports, rm user displayname from i18n

* Update console/src/assets/i18n/de.json

Co-authored-by: Fabi <[email protected]>

* fix: delete external idps from users (#822)

* fix(console): permission regex, account switcher null check, restrict app and member create access (#821)

* fix member table disable, gerneal regexp

* fix user session card, app disable

* memberships max count

* fix policy permissions

* permission check for member add dialog

* lint

* rm accounts log

* rm id regex

* fix: handle usermemberships on project and project grant delete (#825)

* fix: go handler

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

* fix: tests

* fix: not needed error handling

Co-authored-by: Max Peintner <[email protected]>
Co-authored-by: Silvan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Florian Forster <[email protected]>
2020-10-15 10:27:13 +02:00
FabiandGitHub 318e2c5e44 fix: reset external login verification on logout (#840) 2020-10-15 09:37:12 +02:00
FabiandGitHub 905ee1c68a fix: handle usermemberships on project and project grant delete (#825) 2020-10-13 07:46:44 +02:00
FabiandGitHub 8fe635d3fd fix: delete external idps from users (#822) 2020-10-09 11:07:25 +02:00
FabiandGitHub 56d5704749 fix: external login (#818)
* fix: external login

* fix: external login
2020-10-07 16:29:56 +02:00
FabiandGitHub a19b4d2659 fix: nil pointer on get userdata (#815) 2020-10-07 10:46:22 +02:00
FabiandGitHub 9ad547185c feat: remove user (#812)
* feat: remove user

* feat: handle delete state on user by id

* feat: handle delete state on project by id
2020-10-07 08:16:42 +02:00
f939eab133 fix: check existing idp (#809)
* fix: logs

* Update Dockerfile

* Fallback to old Docker file

* fix: for loop

* fix: for loop

* fix: for loop

* fix: remove logs

* fix: remove logs

Co-authored-by: Florian Forster <[email protected]>
2020-10-05 17:14:08 +02:00
FabiandGitHub 198370325d fix: user session with external login (#797)
* fix: user session with external login

* fix: tests

* fix: tests

* fix: change idp config name
2020-10-02 08:02:09 +02:00
FabiandGitHub 83b0ac1fdb fix: idps (#777)
* fix: update client secret, skip passwordsteps only if login not if linking

* fix: global policy for register

* fix: scope handling

* fix: back after error

* fix: change org id scope to primary domain

* fix: check if primarydomain empty

* fix: local sh

* fix: disable buttons on org login policy
2020-09-28 09:29:41 +02:00
FabiandGitHub 0bd27bc8e4 fix: add prompt on oidc rp, fix idp and login policy in console (#769)
* fix: add prompt on oidc rp

* fix: add prompt on oidc rp

* fix: translation

* fix: translation

* fix: not existing login policy

* fix: login policy

* fix: identity provider detail

* fix: idp update

* fix: idps in login policy

* fix: lint

* fix: scss

* fix: external idps on auth user detail

* fix: idp create mapping fields

* fix: remove idp provider

* fix: angular lint

* fix: login policy view

* fix: translations
2020-09-23 16:52:19 +02:00
FabiandGitHub 108f6b3545 feat: external idps on user (#755)
* feat: show external idps on user

* feat: show external idps on user

* fix: angular linting

* fix: display Name

* fix: display Name email
2020-09-18 17:00:38 +02:00
320ddfa46d feat: Identity brokering (#730)
* feat: add/ remove external idps

* feat: external idp add /remove

* fix: auth proto

* fix: handle login

* feat: loginpolicy on authrequest

* feat: idp providers on login

* feat: link external idp

* fix: check login policy on check username

* feat: add mapping fields for idp config

* feat: use user org id if existing

* feat: use user org id if existing

* feat: register external user

* feat: register external user

* feat: user linking

* feat: user linking

* feat: design external login

* feat: design external login

* fix: tests

* fix: regenerate login design

* feat: next step test linking process

* feat: next step test linking process

* feat: cascade remove external idps on user

* fix: tests

* fix: tests

* feat: external idp requsts on users

* fix: generate protos

* feat: login styles

* feat: login styles

* fix: link user

* fix: register user on specifig org

* fix: user linking

* fix: register external, linking auto

* fix: remove unnecessary request from proto

* fix: tests

* fix: new oidc package

* fix: migration version

* fix: policy permissions

* Update internal/ui/login/static/i18n/en.yaml

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/ui/login/static/i18n/en.yaml

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/ui/login/handler/renderer.go

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/ui/login/handler/renderer.go

Co-authored-by: Livio Amstutz <[email protected]>

* fix: pr requests

* Update internal/ui/login/handler/link_users_handler.go

Co-authored-by: Livio Amstutz <[email protected]>

* fix: pr requests

* fix: pr requests

* fix: pr requests

* fix: login name size

* fix: profile image light

* fix: colors

* fix: pr requests

* fix: remove redirect uri validator

* fix: remove redirect uri validator

Co-authored-by: Livio Amstutz <[email protected]>
2020-09-18 13:26:28 +02:00
FabiandGitHub 1d542a0c57 fix: remove redirect uri validator (#754)
* fix: remove redirect uri validator

* fix: remove redirect uri validator
2020-09-18 10:20:45 +02:00
FabiandGitHub afaf798940 fix: tos link (#712) 2020-09-08 17:13:01 +02:00
4bc1eff373 feat: add terms on register and register org (#699)
* feat: add terms on register and register org

* feat: add terms on register and register org

* update form_submit.js to handle checkboxes correctly

* feat: free tier on org reg

Co-authored-by: Livio Amstutz <[email protected]>
2020-09-07 14:52:49 +02:00
FabiandGitHub c92042ba47 fix: checkperms (#689)
* fix: read user grants as grant owner

* fix: read user grants as grant owner
2020-09-02 16:25:32 +02:00
FabiandGitHub 4b183633ab fix: check permissions for user grant (#687) 2020-09-02 11:06:08 +02:00
FabiandGitHub 40b8faaddd feat: global org read (#657) 2020-08-28 15:38:46 +02:00
FabiandGitHub 2c11c6ae1f chore: issue / feature templates (#642) 2020-08-28 12:40:35 +02:00
FabiandGitHub 3d254c569b fix: migration numbers (#652) 2020-08-28 10:10:57 +02:00
FabiandGitHub 7295383621 fix: translation (#647)
* fix: translation

* fix: translation

* fix: translation

* fix: remove unused code

* fix: log err
2020-08-28 09:44:43 +02:00
FabiandGitHub d233fb6610 fix: usergrant (#650) 2020-08-27 14:44:52 +02:00
FabiandGitHub ba123393be chore: delete main.yml (#648) 2020-08-27 14:43:07 +02:00
34354e6e93 chore: auto assign issues and PR to ZTIADEL project board (#643)
* Create main.yml

* Update main.yml

Co-authored-by: Livio Amstutz <[email protected]>
2020-08-27 12:59:32 +02:00
FabiandGitHub 4af38b37a6 fix: reduce (#635)
* fix: management reduce optimization

* fix: reduce optimization

* fix: reduce optimization

* fix: merge master
2020-08-26 13:01:37 +02:00
FabiandGitHub 87aa97b9c7 fix: reread user mfas, preferred loginname as otp account name (#636)
* fix: reread user mfas

* fix: use preferred login name as otp account name

* fix: tests
2020-08-26 10:17:43 +02:00
db1d8f4efe feat: idp and login policy configurations (#619)
* feat: oidc config

* fix: oidc configurations

* feat: oidc idp config

* feat: add oidc config test

* fix: tests

* fix: tests

* feat: translate new events

* feat: idp eventstore

* feat: idp eventstore

* fix: tests

* feat: command side idp

* feat: query side idp

* feat: idp config on org

* fix: tests

* feat: authz idp on org

* feat: org idps

* feat: login policy

* feat: login policy

* feat: login policy

* feat: add idp func on login policy

* feat: add validation to loginpolicy and idp provider

* feat: add default login policy

* feat: login policy on org

* feat: login policy on org

* fix: id config handlers

* fix: id config handlers

* fix: create idp on org

* fix: create idp on org

* fix: not existing idp config

* fix: default login policy

* fix: add login policy on org

* fix: idp provider search on org

* fix: test

* fix: remove idp on org

* fix: test

* fix: test

* fix: remove admin idp

* fix: logo src as byte

* fix: migration

* fix: tests

* Update internal/iam/repository/eventsourcing/iam.go

Co-authored-by: Silvan <[email protected]>

* Update internal/iam/repository/eventsourcing/iam_test.go

Co-authored-by: Silvan <[email protected]>

* Update internal/iam/repository/eventsourcing/iam_test.go

Co-authored-by: Silvan <[email protected]>

* Update internal/iam/repository/eventsourcing/model/login_policy.go

Co-authored-by: Silvan <[email protected]>

* Update internal/iam/repository/eventsourcing/model/login_policy.go

Co-authored-by: Silvan <[email protected]>

* Update internal/org/repository/eventsourcing/org_test.go

Co-authored-by: Silvan <[email protected]>

* Update internal/iam/repository/eventsourcing/model/login_policy_test.go

Co-authored-by: Silvan <[email protected]>

* Update internal/iam/repository/eventsourcing/model/login_policy_test.go

Co-authored-by: Silvan <[email protected]>

* fix: pr comments

* fix: tests

* Update types.go

* fix: merge request changes

* fix: reduce optimization

Co-authored-by: Silvan <[email protected]>
Co-authored-by: Livio Amstutz <[email protected]>
2020-08-26 09:56:23 +02:00
FabiandGitHub f05c5bae24 fix: memberships (#633)
* feat: add iam members to memberships

* fix: search project grants

* fix: rename
2020-08-25 16:08:51 +02:00
be923343b0 fix: compliance problems (#607)
* fix: compliance problems

* fix: at least one redirect uri

* fix: at least one redirect uri

* Update de.yaml

* Update en.yaml

Co-authored-by: Livio Amstutz <[email protected]>
2020-08-19 09:56:05 +02:00
FabiandGitHub 5c4fef296f fix: app by id, views with computed objects (#583)
* feat: read app by id if my events

* fix: handlers if no sublist

* fix: removed app

* fix: removed project

* fix: removed app

* fix: removed app

* fix: app by id with projectid
2020-08-13 08:28:18 +02:00
5699fe80d5 feat: app handling compliance (#527)
* feat: check oidc compliance

* fix: add tests

* fix: add oidc config tests

* fix: add oidc config tests user agent

* fix: test oidc config compliance

* fix: test oidc config compliance

* fix: useragent implicit authmethod none

* fix: merge master

* feat: translate compliance problems

* feat: check native app for custom url

* fix: better compliance handling

* fix: better compliance handling

* feat: add odidc dev mode

* fix: remove deprecated request fro management api

* fix: oidc package version

* fix: migration

* fix: tests

* fix: remove unused functions

* fix: generate proto files

* fix: native implicit and code none compliant

* fix: create project

* Update internal/project/model/oidc_config_test.go

Co-authored-by: Livio Amstutz <[email protected]>

* fix: tests

* Update internal/project/model/oidc_config.go

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/project/model/oidc_config.go

Co-authored-by: Livio Amstutz <[email protected]>

* fix: tests

Co-authored-by: Livio Amstutz <[email protected]>
2020-08-10 09:34:56 +02:00
f80367b49a feat: register org process (#558)
* feat: register new organisation

* feat: create org request in management

* fix: tests

* Update internal/ui/login/static/i18n/en.yaml

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/ui/login/static/i18n/de.yaml

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/ui/login/static/templates/register_org.html

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/ui/login/handler/register_org_handler.go

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/ui/login/handler/register_org_handler.go

Co-authored-by: Livio Amstutz <[email protected]>

* fix: remove autocomplete

* fix: regenerate proto

Co-authored-by: Livio Amstutz <[email protected]>
2020-08-06 14:38:19 +02:00
FabiandGitHub 8d1725a81d fix: search user memberships pointer (#542) 2020-07-30 16:17:42 +02:00
75f1c4c576 feat: user memberships (#537)
* feat: add search user memberships

* feat: add search user memberships

* feat: read user member ship

* feat: add usergrant search key

* feat: uesrmemberships based on permissions

* feat: merge master

* fix: correct permissions

* fix: update display name on change profile

* fix: merge request converations

* fix: err handling

* Update internal/user/model/user_membership_view.go

Co-authored-by: Silvan <[email protected]>

Co-authored-by: Silvan <[email protected]>
2020-07-30 14:37:55 +02:00
FabiandGitHub 4dabecd8d4 feat: implement better role concept (#540) 2020-07-30 12:25:42 +02:00
FabiandGitHub 461b7b23b1 fix: usergrant update (#533)
* fix: add grantid on update usergrant

* fix: add grantid on update usergrant
2020-07-28 12:29:01 +02:00
FabiandGitHub 2d8f934a07 fix: add grant id to createusergrant (#525) 2020-07-28 08:43:55 +02:00
FabiandGitHub c105bf483b feat: apiurls, passwordpolicy, userbyid (#507)
* feat: api doc request

* feat: return zitadel docs

* feat: return zitadel docs

* feat: pw policy min length

* feat: pw policy min length

* fix: semantic

* fix: read missing events on user by id
2020-07-22 16:15:11 +02:00
FabiandGitHub c66d9d3490 feat: show display name on members (#492)
* feat: show display name on members

* fix: generate proto
2020-07-22 14:21:41 +02:00
351aac22f8 feat: usergrant (#489)
* fix: search usergrants only for allowed projects

* fix: check permissions

* fix: check permissions

* fix: check permissions

* Update internal/management/repository/eventsourcing/eventstore/project.go

Co-authored-by: Silvan <[email protected]>

* fix: merge request changes

* fix: variable name

Co-authored-by: Silvan <[email protected]>
2020-07-22 14:00:29 +02:00
FabiandGitHub f39d3a3cc7 fix: login flow handling (#491)
* fix: login flow handling

* fix: cancel button

* fix: hover in light design

* fix: profile image width

* fix: profile image width

* fix: profile image width
2020-07-22 11:43:32 +02:00
FabiandGitHub 520cc161d7 fix: message key in error detail (#503) 2020-07-22 11:29:43 +02:00
2a3ecc0c6a feat: check passwordpolicy on login (#477)
* fix: password complexity policy

* feat: check password policy

* feat: check password policy

* fix: password policy on password change

* fix: remove double policy check

* feat: check pw policy on register

* feat: check pw policy on init

* fix: hover on secondary buttons

* fix: use data set instead of hidden inputs

* fix: disabled button

* fix: en login

* fix: read policy

* feat: check if org exists

* multiple checks

* feat: validate all forms

* fix: check all forms

* fix: remove unused err

Co-authored-by: Livio Amstutz <[email protected]>
2020-07-16 14:26:08 +02:00
FabiandGitHub c34f6b1074 fix: check if org id not empty before checking if it exists (#482) 2020-07-16 13:51:37 +02:00
5e00f1c9db feat: check if org exists (#480)
* feat: check if org exists

* feat: check if org exists

* Update internal/authz/repository/eventsourcing/eventstore/token_verifier.go

Co-authored-by: Silvan <[email protected]>

* fix: err handling

Co-authored-by: Silvan <[email protected]>
2020-07-16 13:27:36 +02:00
FabiandGitHub 423b86a03b feat: sequence and timestamp on searchrequests (#468)
* feat: reread events

* feat: sequence and timestamo on search requests

* feat: sequence and timestamo on search requests

* fix: better naming

* fix: log errors

* fix: read sequence before search request
2020-07-15 13:24:36 +02:00
FabiandGitHub 7b652651fc feat: get default complexity policy (#399)
* feat: get default complexity policy

* fix: regenerate proto files
2020-07-14 07:11:11 +02:00
FabiandGitHub 1b59a52f26 fix: return my org on zitadel permission (#441) 2020-07-09 18:39:10 +02:00
FabiandGitHub 8f1c31f37d fix: remove project grant member from view (#436) 2020-07-09 17:56:37 +02:00
FabiandGitHub 5add7eae6d fix: rolecascade (#434)
* fix: project role delete

* fix: project role delete
2020-07-09 17:28:14 +02:00
FabiandGitHub cde6231164 fix: project role delete (#431) 2020-07-09 16:47:48 +02:00
FabiandGitHub 49a3339425 fix: project role (#428) 2020-07-09 16:02:00 +02:00
FabiandGitHub 7cf13a646d fix: project role view, remove project grants (#419) 2020-07-09 13:24:35 +02:00
FabiandGitHub aeae04c90b fix: project grant delete (#417) 2020-07-09 13:05:02 +02:00
FabiandGitHub 740bab7f59 feat: permissin denied (#411) 2020-07-09 09:31:29 +02:00
FabiandGitHub 4b58097cca feat: logindesign (#394)
* feat: add design

* fix: nicer light mode

* fix: register secondary button

* fix: register secondary button

* fix: merge
2020-07-08 14:14:24 +02:00
FabiandGitHub 5e42ff2bb8 feat: correct create projectgrant usergrant (#389)
* feat: correct create projectgrant usergrant

* fix: remove orgid in frontend
2020-07-08 11:24:34 +02:00
FabiandGitHub a5bfd085a1 fix: Inituser (#386)
* fix: init user only create change pw event if pw set

* fix: init user only create change pw event if pw set

* fix: tests
2020-07-08 09:53:09 +02:00
FabiandGitHub 230e6c9101 feat: loginstyles (#366)
* feat: nice login site

* fit: select other user img

* fix: if in scss
2020-07-08 07:32:48 +02:00
FabiandGitHub 1c40d5645e feat: notification loginname (#381)
* feat: add login names to notify user

* feat: add login names to initial mail

* feat: add login names to initial mail
2020-07-07 19:31:51 +02:00
FabiandGitHub 5988ec4844 fix: merge migrations (#363)
* fix: merge migrations

* fix: rename env variable
2020-07-07 16:53:54 +02:00
fb2091edc9 fix: add migration (#361)
* fix: add migration

* fix: add migration

* fix: delete primary domain

* Update en.yaml

Co-authored-by: Livio Amstutz <[email protected]>
2020-07-07 14:23:09 +02:00
FabiandGitHub c8cdbe136c feat: remove phone (#349)
* feat: remove phone number

* feat: remove phone number tests

* feat: remove phone number tests

* fix: regenerate protos
2020-07-06 15:48:24 +02:00
FabiandGitHub 645c4597e8 feat: add get my password policy (#346)
* feat: add get my password policy

* fix: failed merges
2020-07-06 15:35:20 +02:00
FabiandGitHub 5251fc712c feat: usergrant (#348)
* fix: add needed permissions

* feat: search project/projectgrant user grants

* fix: no zitadel permissions

* fix: queries length
2020-07-06 15:27:29 +02:00
FabiandGitHub 5a0876cf98 fix: rename tables failed_event to failed_events (#287)
* fix: rename tables failed_event to failed_events

* fix: use const
2020-06-29 09:56:29 +02:00
79eff2795f feat: on logout we terminate all sessions from agent (#288)
* feat: on logout we terminate all sessions from agent

* Update eventstore.go

Co-authored-by: Livio Amstutz <[email protected]>
2020-06-29 09:49:40 +02:00
FabiandGitHub c8a0a050ba fix: editorname (#281)
* feat: editorname on changes

* feat: editorname on changes

* feat: editorname on changes

* feat: editorname on changes

* fix: tests

* fix: tests
2020-06-29 09:37:10 +02:00