Commit Graph
100 Commits
Author SHA1 Message Date
Livio AmstutzandGitHub ae840f364c fix(queries): authn keys (#2820)
* begin authn keys

* single table for state change

* add key type

* begin authn keys query

* query

* tests

* fix merge

* remove wrong migration version

* improve filter

* Update projection.go

* cleanup
2021-12-14 10:57:20 +01:00
Livio AmstutzandGitHub 79f7c1198b feat: display login succeeded page only for native apps (#2839) 2021-12-14 09:47:49 +01:00
Livio AmstutzandGitHub 2f7d8ca557 fix: client secret verification (for introspection) (#2825)
* fix: client secret verification (for introspection)

* revert change for ProjectIDAndOriginsByClientID
2021-12-10 09:25:17 +00:00
43f15953c3 feat: allow global org users to create org and self delete (#2759)
* fix: grant PROJECT_OWNER_VIEWER_GLOBAL org.create permission

* Update authz.yaml

* feat: delete my user

* console things

* lint

* signout after deletion

* stylelint rule

* Update authz.yaml

* Update authz.yaml

* setup step

* role SELF_MANAGEMENT_GLOBAL setup

* fix: change default role on global org

* Apply suggestions from code review

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

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

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

Co-authored-by: Max Peintner <[email protected]>
Co-authored-by: Fabi <[email protected]>
2021-12-09 08:41:21 +00:00
Livio AmstutzandGitHub 75f3067d42 chore(deps): replace "github.com/ghodss/yaml" with "sigs.k8s.io/yaml" (#2812) 2021-12-08 16:26:12 +01:00
Livio AmstutzandGitHub 9967a3ee5e chore(deps): bump dependencies (#2811) 2021-12-08 16:25:28 +01:00
Livio AmstutzandGitHub 65a6fb638b fix: add authnkeys projection (#2801)
* begin authn keys

* single table for state change

* add key type

* rename migration

* format imports

* fix test
2021-12-08 16:16:48 +01:00
Livio AmstutzandGitHub 211dc7c21f fix: add workaround for org check (if projection is not up-to-date) (#2800) 2021-12-07 15:54:33 +01:00
Livio AmstutzandGitHub 2ad03285f1 fix: user projection (#2795)
* fix: first- and lastname changes on user

* add reset migration
2021-12-06 17:22:59 +01:00
f0a77e80bf fix: add keys to projections (#2728)
* fix: add keys to projections

* change to multiple tables

* merge

* change migration version

* merge

* Update migrations/cockroach/V1.98__keys.sql

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

* Update migrations/cockroach/V1.98__keys.sql

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

* check keys

Co-authored-by: Silvan <[email protected]>
2021-12-06 16:57:35 +01:00
Livio AmstutzandGitHub 81efd86a8d fix: improve db call when only count is required (on views) (#2769)
* fix: improve db call when only count is required (old views)

* Update query.go
2021-12-06 16:28:49 +01:00
Livio AmstutzandGitHub a8eed4a215 fix: audience and empty app name (#2775) 2021-12-03 14:24:29 +01:00
Livio AmstutzandGitHub d7417b6ef6 fix: filter of users uniqueness (#2753) 2021-11-29 18:38:11 +01:00
Livio AmstutzandGitHub 7d45ae3c6c fix: filter of domain claimed users (#2752) 2021-11-29 17:36:24 +01:00
Livio AmstutzandGitHub 56e10ecf30 fix: set clustername in sql connection string (#2703) 2021-11-21 19:02:10 +01:00
Livio AmstutzandGitHub 004f14d1fe docs: add openid certification (#2705) 2021-11-18 19:15:09 +01:00
Livio AmstutzandGitHub b80751d7f7 fix: use PrivateLabelingOrgID for logo (#2690) 2021-11-15 16:18:27 +00:00
Livio AmstutzandGitHub ebe2fbe1d5 fix: rename lifetime to expiration of pwless link in ImportHumanUserResponse (#2687) 2021-11-15 14:24:45 +01:00
Livio AmstutzandGitHub bd9f621030 docs: revocation_endpoint (#2654) 2021-11-15 08:37:05 +00:00
Livio AmstutzandGitHub cfdb8c3301 fix: mitigate overload risk in processProject on user memberships (#2665) 2021-11-12 15:06:26 +01:00
Livio AmstutzandGitHub 4fc2582b4c fix: mitigate overload risk in processProject on user grant (#2662) 2021-11-12 11:11:37 +00:00
Livio AmstutzandGitHub 7324e776cf fix: features and texts models (#2653) 2021-11-12 09:50:37 +01:00
Livio AmstutzandGitHub 5bc0520adb docs: fix jwt profile iat and exp (#2660) 2021-11-11 17:56:30 +01:00
fef9eb91f9 docs: add swagger editor links (#2657)
* docs: add swagger editor links

* Apply suggestions from code review

Co-authored-by: Florian Forster <[email protected]>

Co-authored-by: Florian Forster <[email protected]>
2021-11-11 13:56:16 +01:00
Livio AmstutzandGitHub 037e1ab4ac fix: add cors (*) to openAPI endpoint (#2656) 2021-11-11 10:58:16 +01:00
Livio AmstutzandGitHub 92e9db3fa6 fix: project grpc converter (#2658) 2021-11-11 07:23:19 +00:00
Livio AmstutzandGitHub 685ffc5dc7 fix: nil pointer in external providers (#2642)
* fix: nil pointer in external providers

* fix returns
2021-11-09 08:13:17 +00:00
Livio AmstutzandGitHub af1f10b7ca fix: check login policy before register and password check (#2611)
* fix: check login policy before register and password check

* remove accidentally pushed overwrite

* Update en.yaml
2021-11-08 07:42:07 +00:00
Livio AmstutzandGitHub ccf4828b50 feat: allow IAM and Org Owners to generate a passwordless registration link (#2619) 2021-11-05 14:57:10 +01:00
Livio AmstutzandGitHub 3a7d68fccd fix: error handling for refresh_token revocation (#2609) 2021-11-03 14:10:01 +01:00
Livio AmstutzandGitHub fc6154cffc feat: token revocation and OP certification (#2594)
* fix: try using only user session if no user is set (id_token_hint) on prompt none

* fix caos errors As implementation

* implement request mode

* return explicit error on invalid refresh token use

* begin token revocation

* token revocation

* tests

* tests

* cleanup

* set op config

* add revocation endpoint to config

* add revocation endpoint to config

* migration version

* error handling in token revocation

* migration version

* update oidc lib to 1.0.0
2021-11-03 08:35:24 +01:00
Livio AmstutzandGitHub 6ef0d92200 docs: remove client credentials from supported grant types (#2586) 2021-10-28 16:06:48 +02:00
Livio AmstutzandGitHub b3b4d5dde9 fix: return auth request even on error (in next steps) (#2588)
* fix return auth request even on error (in next steps)

* Update README.md

* Update README.md
2021-10-28 14:50:29 +02:00
Livio AmstutzandGitHub f1afdef7fb fix: remove vulnerable dependencies (#2577)
* fix: remove vulnerable dependencies

* fix: replace vulnerable dependencies (gin-gonic)

* fix: replace vulnerable dependencies (gin-gonic)
2021-10-27 14:55:03 +02:00
Livio AmstutzandGitHub a4127278e7 fix: client secret verification (for introspection) (#2570) 2021-10-26 11:33:59 +02:00
Livio AmstutzandGitHub 686c0edb5c fix: return flow type (#2563) 2021-10-22 16:45:30 +02:00
Livio AmstutzandGitHub f5661c6e61 fix: respect requested org (primary domain scope) for private labeling (#2561)
* fix: handle private labeling on login page without auth request

* fix: respect requested org (primary domain scope) for private labeling again

* respect requested org (primary domain scope) for private labeling
2021-10-22 13:53:28 +00:00
b0bcefd202 fix: actions (#2547)
* fix: external login

* fix: query flow types correct

* fix: queries of action statements

Co-authored-by: fabi <[email protected]>
2021-10-21 14:30:09 +02:00
Livio AmstutzandGitHub b957f58e1e fix: idp remove (#2486) 2021-10-06 10:16:00 +02:00
Livio AmstutzandGitHub 73a51c1544 fix: handle various nil pointers (#2473) 2021-10-05 08:33:20 +02:00
Livio AmstutzandGitHub 318fa25061 chore: set localhost as local default domain (#2476) 2021-10-05 07:52:36 +02:00
eb60fe8582 docs: improve docs with images (#2474)
* docs: exchange auth flow from mermaid to image

* docs: img

Co-authored-by: fabi <[email protected]>
2021-10-04 17:11:16 +02:00
Livio AmstutzandGitHub 18a0a16752 fix: grpc converter for idp in admin (#2477) 2021-10-04 16:47:59 +02:00
Livio AmstutzandGitHub 52c1494fe9 feat: choose preferred WebAuthN platform for passwordless registration (#2469)
* feat: request preferred platform type for passwordless registration when using link

* add text in console
2021-10-04 16:19:21 +02:00
Livio AmstutzandGitHub 415d0c7ab2 fix: webauthn support check (#2450) 2021-10-02 12:26:03 +02:00
Livio AmstutzandGitHub 4dbe68f626 fix: identifier for columns w/o table name / alias (#2449) 2021-10-01 07:45:45 +00:00
Livio AmstutzandGitHub 244d945886 chore: enable testExecuter to test multi statement (#2448)
* chore: enable testExecuter to test multi statement

* remove todo
2021-09-30 09:26:29 +00:00
Livio AmstutzandGitHub 5e110f0a48 fix: typo in migration 1.73 (#2435) 2021-09-28 12:49:09 +00:00
Livio AmstutzandGitHub b96291ec8d fix: save creation and change date of auth requests in db (#2429)
* fix: save creation and change date of auth requests in db (prepare for cleanup)

* Update cache.go
2021-09-28 09:34:44 +00:00
ed80a8bb1e feat: actions (#2377)
* feat(actions): begin api

* feat(actions): begin api

* api and projections

* fix: handle multiple statements for a single event in projections

* export func type

* fix test

* update to new reduce interface

* flows in login

* feat: jwt idp

* feat: command side

* feat: add tests

* actions and flows

* fill idp views with jwt idps and return apis

* add jwtEndpoint to jwt idp

* begin jwt request handling

* add feature

* merge

* merge

* handle jwt idp

* cleanup

* bug fixes

* autoregister

* get token from specific header name

* fix: proto

* fixes

* i18n

* begin tests

* fix and log http proxy

* remove docker cache

* fixes

* usergrants in actions api

* tests adn cleanup

* cleanup

* fix add user grant

* set login context

* i18n

Co-authored-by: fabi <[email protected]>
2021-09-27 13:43:49 +02:00
Livio AmstutzandGitHub 5c32fc9c12 fix(operator): proxy and asset storage secrets handling (#2403)
* fix(operator): proxy and asset storage secrets handling

* fix test
2021-09-24 10:25:50 +02:00
Livio AmstutzandGitHub b90d1cfaf8 chore(workflow): use event push only on main (#2381) 2021-09-23 10:04:46 +02:00
Livio AmstutzandGitHub 3f15d76660 docs: update rate limits (#2382)
* docs: update rate limits

* remove remark
2021-09-22 06:49:47 +00:00
Livio AmstutzandGitHub 8883d74e3d fix: check login policy state for idp policy mgmt (#2384) 2021-09-17 13:45:14 +02:00
Livio AmstutzandGitHub d090f12672 fix: set active org to local and session storage (#2380) 2021-09-16 09:48:56 +00:00
Livio AmstutzandGitHub 0f9a939f44 feat: set env vars for http proxy (#2379) 2021-09-16 08:43:04 +00:00
Livio AmstutzandGitHub f39ff13acb fix: check get origins and projectID only for tokens with clientID (#2378) 2021-09-16 08:07:48 +00:00
b6b5b1b782 feat: jwt as idp (#2363)
* feat: jwt idp

* feat: command side

* feat: add tests

* fill idp views with jwt idps and return apis

* add jwtEndpoint to jwt idp

* begin jwt request handling

* merge

* handle jwt idp

* cleanup

* fixes

* autoregister

* get token from specific header name

* error handling

* fix texts

* handle renderExternalNotFoundOption

Co-authored-by: fabi <[email protected]>
2021-09-14 15:15:01 +02:00
Livio AmstutzandGitHub 4e1d42259c chore(workflow): enable builds on PR (for forks) (#2364) 2021-09-14 13:43:37 +02:00
Livio AmstutzandGitHub 257bf90f7e fix: UserByIDAndResourceOwner query (#2340) 2021-09-09 11:10:06 +00:00
1ac1492fd3 fix: handle multiple statements for a single event in projections (#2313)
* fix: handle multiple statements for a single event in projections

* export func type

* fix test

* Update internal/eventstore/handler/crdb/statement.go

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

* Update internal/eventstore/handler/crdb/statement.go

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

* change to pointers

* add error test case

Co-authored-by: Silvan <[email protected]>
2021-09-08 13:54:31 +02:00
Livio AmstutzandGitHub b5a6e25e9d fix: handle private labeling on login page without auth request (#2309)
* fix: handle private labeling on login page without auth request

* fix: respect requested org (primary domain scope) for private labeling again
2021-09-02 18:29:42 +02:00
Livio AmstutzandGitHub 34002ec834 fix: check domain of username not claimed by other organisation and cleanup (#2265)
* fix: register human

* fix: check domain of username not claimed by other organisation

* fix: create setup step to create domain claimed events for invalid users

* Update setup_step19.go
2021-08-25 09:12:24 +00:00
Livio AmstutzandGitHub 961cd4bff6 docs: fix jwt profile requests (#2227) 2021-08-19 16:22:56 +02:00
Livio AmstutzandGitHub 9ba8184829 fix: remove duplicate pw and otp verification (#2226)
* fix: save data (userAgentID) of otp verified event

* fix: change event to human.seftregistered on org setup

* fix: change event to human.seftregistered on org setup only from login

* fix: set password
2021-08-18 17:04:56 +02:00
Livio AmstutzandGitHub 0b3155b8ab fix: error page (#2205) 2021-08-18 06:39:26 +00:00
Livio AmstutzandGitHub 261b652b82 fix: set correct enum type for u2f and otp init (#2224) 2021-08-18 08:08:50 +02:00
Livio AmstutzandGitHub 490d087d45 fix: set correct username / preferred login name after idp callback (#2189) 2021-08-16 07:05:56 +02:00
Livio AmstutzandGitHub cf8515598c fix: improve error handling of asset api (#2177) 2021-08-11 08:49:08 +00:00
Livio AmstutzandGitHub 272e411e27 fix: key pair query for newer events (#2165) 2021-08-11 07:55:16 +02:00
00220e9532 feat: passwordless registration (#2103)
* begin pw less registration

* create pwless one time codes

* send pwless link

* separate send and add passwordless link

* separate send and add passwordless link events

* custom message text for passwordless registration

* begin custom login texts for passwordless

* i18n

* i18n message

* i18n message

* custom message text

* custom login text

* org design and texts

* create link in human import process

* fix import human tests

* begin passwordless init required step

* passwordless init

* passwordless init

* do not return link in mgmt api

* prompt

* passwordless init only (no additional prompt)

* cleanup

* cleanup

* add passwordless prompt to custom login text

* increase init code complexity

* fix grpc

* cleanup

* fix and add some cases for nextStep tests

* fix tests

* Update internal/notification/static/i18n/en.yaml

* Update internal/notification/static/i18n/de.yaml

* Update proto/zitadel/management.proto

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

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

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

Co-authored-by: Fabi <[email protected]>
2021-08-02 15:24:58 +02:00
Livio AmstutzandGitHub e1a3cc732d fix: check allowed origins from calling and not called application (#2106)
* fix: check allowed origins from calling and not called application

* fix test
2021-07-30 11:30:51 +02:00
Livio AmstutzandGitHub de9f88bf5b fix: custom mail texts (#2101)
* fix: custom mail texts

* fix: custom mail texts

* disable cache

* enable cache again

* disable cache again

* comment
2021-07-29 12:29:09 +00:00
Livio AmstutzandGitHub fb06aed238 fix: grant "policy.read" to every role (label and privacy policy necessary in console) (#2089) 2021-07-28 14:14:51 +02:00
Livio AmstutzandGitHub bd8133aedd fix: do not cache api (incl. grpc) and http errors (#2088)
* fix: add cache-control headers (no-store, no-cache) on grpc (for grpc-web)

* fix: do not cache api response (incl. grpc) and http errors
2021-07-28 13:19:44 +02:00
Livio AmstutzandGitHub 93ad1daa69 fix: add some missing translations (#2073) 2021-07-26 13:03:42 +00:00
Livio AmstutzandGitHub 0a6f6b6422 fix: add missing grpc converters in SetLoginCustomTextToDomain (#2054) 2021-07-22 08:59:44 +00:00
Livio AmstutzandGitHub e89b2be1f1 fix: eventListener in input_suffix_offset.js (#2053) 2021-07-21 09:23:55 +00:00
Livio AmstutzandGitHub 21001862ae fix: update oidc lib to fix userinfo claims in id_token (#2052) 2021-07-21 09:00:04 +02:00
Livio AmstutzandGitHub 413ed80611 fix: custom message texts (#2046)
* fix: grpc implementation of custom message texts

* fix: proto definition of RemoveHumanAvatar in mgmt api

* fix: DeleteCustomText in view (respect key)
2021-07-20 11:40:53 +02:00
Livio AmstutzandGitHub 9413fc19ff fix: parsing of ip address (#2045) 2021-07-20 10:10:48 +02:00
Livio AmstutzandGitHub 87ef8f454a fix: grpc status in sentry and validation interceptors (#2012) 2021-07-13 15:42:41 +02:00
Livio AmstutzandGitHub 7ebf0333c3 fix: filter event_data (#2011) 2021-07-12 14:26:54 +00:00
Livio AmstutzandGitHub f7aa2f6b25 fix: handle closed channels on unsubscribe (#1995) 2021-07-09 11:33:43 +02:00
Livio AmstutzandGitHub 09b5c964cc feat: handle ui_locales in login (#1994)
* fix: handle ui_locales in login

* move supportedlanguage func into i18n package

* update oidc pkg
2021-07-09 07:45:31 +00:00
Livio AmstutzandGitHub f93337e99b fix: race condition in auth request unmarshalling (#1993) 2021-07-08 16:38:34 +00:00
Livio AmstutzandGitHub 10cae58505 fix: log error reason on terminate session (#1973) 2021-07-08 13:55:21 +02:00
Livio AmstutzandGitHub 38a4683bab fix: role assertion (#1986)
* fix: enum to display access token role assertion

* improve assertion descriptions

* fix nil pointer
2021-07-07 09:51:20 +00:00
Livio AmstutzandGitHub 0e472a347f fix: add sentry in ui, http and projection handlers (#1977)
* fix: add sentry in ui, http and projection handlers

* fix test
2021-07-06 13:36:35 +02:00
Livio AmstutzandGitHub 20f84ef469 fix: template names in login (#1974)
* fix: template names in login

* fix: error.html
2021-07-06 11:56:43 +02:00
Livio AmstutzandGitHub 7c0bc8f63d chore: add generated asset files to .gitignore (#1971) 2021-07-05 11:08:58 +00:00
Livio AmstutzandGitHub 820df1571b fix: migration version of privacy policy (#1968) 2021-07-05 09:00:22 +00:00
Livio AmstutzandGitHub 91f1c88d4e fix: add option to disable asset storage (#1878)
* fix: add no storage option

* improve error handling
2021-07-02 13:55:52 +02:00
Livio AmstutzandGitHub 62b4df8c09 fix: user grant change (#1953) 2021-07-01 15:08:40 +00:00
Livio AmstutzandGitHub c6ad784a6c fix: check oidc / api config (#1940) 2021-06-27 09:20:59 +00:00
Livio AmstutzandGitHub 4ecbb932e8 chore(issues): add links to discussions for feature requests (#1934)
* add links to discussions in issues

* delete feature request template

* add emoji to bug report template
2021-06-25 12:04:36 +02:00
Livio AmstutzandGitHub c93e3370d2 chore(dependencies): set labels for dependabot PR (#1930)
* chore(dependencies): set labels for dependabot PR

* Update dependabot.yml
2021-06-24 15:44:18 +00:00
Livio AmstutzandGitHub 3fde4aa1c2 chore: align go.mod version for pipeline (#1922) 2021-06-22 15:18:22 +02:00
Livio AmstutzandGitHub 796cbc8998 fix: subscription (#1918)
* fix: disable button until redirect is ready

* fix: hide unnecessary button

* fix: format audit log retention

* fix: enable descriptions to be empty

* fix: enable descriptions to be empty
2021-06-21 15:35:00 +00:00
Livio AmstutzandGitHub ab88d311f3 fix: create label policy if not exists on font upload (#1898) 2021-06-18 08:12:40 +00:00