Commit Graph
100 Commits
Author SHA1 Message Date
Livio SpringandGitHub 34e9748cba chore: update dependencies (#6826) 2023-10-26 15:03:57 +00:00
Livio SpringandGitHub 73dbf31368 Merge pull request from GHSA-954h-jrpm-72pm 2023-10-25 11:15:22 +02:00
Livio Springandadlerhurst 426c4acbfe fix(notification): get origin from all relevant events and fix nil pointer (#6726) 2023-10-19 10:34:52 +02:00
cb0a0f996e fix(api): add remove otp sms and email to management api (#6721)
* fix(api): add remove otp sms and email to management api

* fix(console): remove otpsms and otpemail from user

---------

Co-authored-by: peintnermax <[email protected]>
2023-10-16 10:49:02 +03:00
Livio SpringandGitHub ce719a3fa4 fix(notification): get origin from all relevant events and fix nil pointer (#6726) 2023-10-13 14:45:38 +00:00
Livio SpringandGitHub 95889cf576 fix(api): use organization instead of organisation (#6720)
* fix(api): use organization instead of organisation

* fix test

* docs: add deprecation notice

* remove validation
2023-10-13 12:37:35 +00:00
Livio SpringandGitHub 27e03120dc fix(api): extend client_secret length for generic oauth and oidc providers to 1000 (#6722) 2023-10-13 14:31:39 +03:00
Livio SpringandGitHub a272b1201f fix(api): use (provided) organisation instead of resourceOwner of caller (#6714) 2023-10-12 10:00:36 +02:00
f2d1cd2045 docs(technical advisory): add login ui default context (#6695)
* docs(technical advisory): add login ui default context

* Update docs/docs/support/advisory/a10003.md

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

---------

Co-authored-by: Fabi <[email protected]>
2023-10-11 08:20:48 +02:00
Livio SpringandGitHub 4d85013ffb chore: update stable (#6690) 2023-10-10 08:28:09 +02:00
Livio Spring 907a1611ac fix(login): error case for unknown usernames correctly (#6689)
(cherry picked from commit 8549dd7a3d)
2023-10-10 07:41:16 +02:00
Livio SpringandGitHub 8549dd7a3d fix(login): error case for unknown usernames correctly (#6689) 2023-10-09 15:05:25 +00:00
Livio Spring dee9d8d3a7 Merge branch 'main' into next
# Conflicts:
#	cmd/start/start.go
#	internal/auth/repository/eventsourcing/eventstore/auth_request.go
#	internal/auth/repository/eventsourcing/repository.go
#	internal/command/main_test.go
#	internal/command/quota.go
#	internal/command/quota_model.go
#	internal/command/quota_model_test.go
2023-10-09 14:18:29 +02:00
Livio SpringandGitHub 827ce8809d fix: use enum for instance feature in system api (#6682)
* fix: use enum for instance feature in system api

* add feature.proto to lint ignore
2023-10-09 12:33:23 +02:00
Livio Spring 8ca053fad3 fix: respect "Ignore unknown usernames" on password reset
Merge pull request from GHSA-v683-rcxx-vpff

(cherry picked from commit 54676eda98)
2023-10-09 12:12:16 +02:00
Livio SpringandGitHub 9696fde676 fix: reduce origin check to tokens issued through code and implicit flow (#6681)
fix: only check origin for tokens issued to users through apps (code / implicit flow)
2023-10-09 10:08:18 +00:00
Livio SpringandGitHub 54676eda98 Merge pull request from GHSA-v683-rcxx-vpff 2023-10-09 11:47:43 +02:00
Livio SpringandGitHub e3ac217424 fix: ensure no events are skipped on token check (#6663)
fix: ensure no events are skipped on token check
2023-10-09 09:26:27 +02:00
Livio SpringandGitHub 2e99d0fe1b fix(email): UTF-8 "Q" encode subject header (#6637)
fix(email): UTF-8 "Q" encode subject header
2023-09-29 08:53:45 +00:00
Livio SpringandGitHub 68bfab2fb3 feat(login): use default org for login without provided org context (#6625)
* start feature flags

* base feature events on domain const

* setup default features

* allow setting feature in system api

* allow setting feature in admin api

* set settings in login based on feature

* fix rebasing

* unit tests

* i18n

* update policy after domain discovery

* some changes from review

* check feature and value type

* check feature and value type
2023-09-29 08:21:32 +00:00
Livio Spring 41e31aad41 fix: only reuse active session and use correct policies (from user org) (#6603)
(cherry picked from commit 593d1605ab)
2023-09-21 16:57:03 +02:00
Livio SpringandGitHub 593d1605ab fix: only reuse active session and use correct policies (from user org) (#6603) 2023-09-21 16:45:41 +02:00
Livio Spring b688d6f842 Merge branch 'main' into next 2023-09-15 15:46:06 +02:00
Livio SpringandGitHub b4d0d2c9a7 chore(webauthn): add logs (#6569) 2023-09-15 13:43:38 +00:00
Livio SpringandGitHub be81570fb5 feat(api): move resource apis to beta (#6530)
Moves UserService, SessionService, SettingsService and OIDCService to beta state. This includes gRPC and HTTP path changes.
2023-09-13 12:43:01 +00:00
Livio SpringandGitHub c790715628 fix: improve autofill values (#6541) 2023-09-13 08:16:57 +02:00
523dee8801 chore: remove postgres beta warning (#6394)
fix: remove postgres beta warning

Co-authored-by: Fabi <[email protected]>
2023-09-08 15:44:34 +00:00
Livio Springandadlerhurst f5060d70d7 fix: handle password data correct on user creation (#6515) 2023-09-07 16:21:10 +02:00
Livio SpringandGitHub 62d679e553 fix: handle password data correct on user creation (#6515) 2023-09-07 14:06:11 +00:00
Livio Spring 3b0be67627 cleanup merge 2023-09-05 07:18:47 +02:00
Livio Spring 38f7b1bd06 Merge branch 'main' into next
# Conflicts:
#	docs/docs/guides/integrate/login-ui/external-login.mdx
#	internal/command/idp_model.go
#	proto/zitadel/user/v2alpha/user_service.proto
2023-09-05 07:04:42 +02:00
Livio SpringandGitHub e3e17fe742 chore: update stable to 2.35.1 (#6481) 2023-09-04 09:40:40 +02:00
3c8640fbfd fix: rename (t)otp to code in session checks (#6455)
* fix: rename (t)otp to code in session checks

* update integration tests

---------

Co-authored-by: Fabi <[email protected]>
2023-08-31 07:06:50 +00:00
e17b49e4ca feat: add apple as idp (#6442)
* feat: manage apple idp

* handle apple idp callback

* add tests for provider

* basic console implementation

* implement flow for login UI and add logos / styling

* tests

* cleanup

* add upload button

* begin i18n

* apple logo positioning, file upload component

* fix add apple instance idp

* add missing apple logos for login

* update to go 1.21

* fix slice compare

* revert permission changes

* concrete error messages

* translate login apple logo -y-2px

* change form parsing

* sign in button

* fix tests

* lint console

---------

Co-authored-by: peintnermax <[email protected]>
2023-08-31 08:39:16 +02:00
Livio SpringandGitHub 0d94947d3c fix: rest path for StartIdentityProviderIntent (#6447) 2023-08-30 10:42:24 +02:00
Livio Spring 379437f1d6 fix(api): handle id_token_mapping in generic oidc provider correctly (#6428)
(cherry picked from commit 94d13fd3e1)
2023-08-25 16:05:06 +02:00
Livio Spring 637caba8a0 chore(workflow): exclude console dist folder from cache (#6414)
* empty line for test

* chore: exclude console dist folder from cache

(cherry picked from commit f03a9d03b6)
2023-08-25 16:02:25 +02:00
Livio Spring ccb92b3c8d fix(api): naming cleanup in user and session service (#6379)
* fix(api): rename first and last name to given and family name, intent to idp_intent, remove _ actions

* fix merge

* fully rename intent to idp intent in api

---------

Co-authored-by: Tim Möhlmann <[email protected]>
(cherry picked from commit a9fb2a6e5c)
2023-08-25 16:02:14 +02:00
Livio Spring a628f2222e fix: restrict AllowRegistration check to local registration (#5939)
* fix: restrict AllowRegistration check to local registration

* add comment

* add additional tests

* hide registration fields if no registration allowed

* fix: always allow linking and creation of external idps on users in userV2 and admin import

* chore: exclude console dist and node_module folders from cache

* chore: include node_module folders into cache again

* linting

(cherry picked from commit 66772ad0dd)
2023-08-25 16:02:05 +02:00
Livio SpringandGitHub 94d13fd3e1 fix(api): handle id_token_mapping in generic oidc provider correctly (#6428) 2023-08-24 10:31:12 +00:00
bb40e173bd feat(api): add otp (sms and email) checks in session api (#6422)
* feat: add otp (sms and email) checks in session api

* implement sending

* fix tests

* add tests

* add integration tests

* fix merge main and add tests

* put default OTP Email url into config

---------

Co-authored-by: Stefan Benz <[email protected]>
2023-08-24 09:41:52 +00:00
Livio SpringandGitHub 66772ad0dd fix: restrict AllowRegistration check to local registration (#5939)
* fix: restrict AllowRegistration check to local registration

* add comment

* add additional tests

* hide registration fields if no registration allowed

* fix: always allow linking and creation of external idps on users in userV2 and admin import

* chore: exclude console dist and node_module folders from cache

* chore: include node_module folders into cache again

* linting
2023-08-23 13:55:52 +02:00
Livio Spring 85194666ff fix: use system secret config if generator type does not exist on instance (#6420)
* fix: use system secret config if generator type does not exist on instance

* remove unused idGenerator

(cherry picked from commit cbd2ef0612)
2023-08-23 10:18:27 +02:00
Livio SpringandGitHub cbd2ef0612 fix: use system secret config if generator type does not exist on instance (#6420)
* fix: use system secret config if generator type does not exist on instance

* remove unused idGenerator
2023-08-23 08:04:29 +00:00
Livio SpringandGitHub efcabed04f docs: add technical advisory on allow register (#6413)
* docs: add technical advisory on `allow register`

* typos

* Update technical_advisory.mdx
2023-08-22 17:00:26 +02:00
a9fb2a6e5c fix(api): naming cleanup in user and session service (#6379)
* fix(api): rename first and last name to given and family name, intent to idp_intent, remove _ actions

* fix merge

* fully rename intent to idp intent in api

---------

Co-authored-by: Tim Möhlmann <[email protected]>
2023-08-22 10:05:45 +00:00
Livio SpringandGitHub f03a9d03b6 chore(workflow): exclude console dist folder from cache (#6414)
* empty line for test

* chore: exclude console dist folder from cache
2023-08-22 07:31:41 +02:00
Livio Spring 7442492b8a fix(login): add some missing translations for OTP (#6409)
(cherry picked from commit e701e05d23)
2023-08-21 15:43:26 +02:00
Livio Spring 74841dfb1c fix: setMetadata in saml and pre access token triggers (#6398)
(cherry picked from commit 84faf98bc2)
2023-08-21 15:43:25 +02:00
Livio SpringandGitHub e701e05d23 fix(login): add some missing translations for OTP (#6409) 2023-08-21 12:41:39 +00:00
Livio SpringandGitHub 84faf98bc2 fix: setMetadata in saml and pre access token triggers (#6398) 2023-08-21 14:21:45 +02:00
aa2d547eb2 docs: update passkey usage in session api (#6386)
Co-authored-by: Stefan Benz <[email protected]>
2023-08-19 06:26:51 +00:00
Livio SpringandGitHub 69b49ac0ed fix(api): return correct http code on assets api (#6388)
* fix(api): return correct http code on assets api

* add test

* fix test
2023-08-18 13:51:11 +00:00
Livio SpringandGitHub 8b44794c75 fix: delete SMTP correctly (#6391) 2023-08-18 14:22:57 +02:00
Livio Spring d029b82f0d fix: handle metadata from post authentication on auto creation (#6389)
(cherry picked from commit 90a62b777b)
2023-08-18 11:23:06 +02:00
Livio SpringandGitHub 90a62b777b fix: handle metadata from post authentication on auto creation (#6389) 2023-08-18 09:16:58 +00:00
Livio Spring 21e35e0ce3 Merge branch 'main' into next
# Conflicts:
#	internal/auth/repository/eventsourcing/eventstore/auth_request.go
2023-08-18 10:36:05 +02:00
Livio SpringandGitHub a99f49999a fix: OTP SMS texts (#6387) 2023-08-18 10:28:08 +02:00
Livio SpringandGitHub 7c494fd219 feat(login): add OTP (email and sms) (#6353)
* feat: login with otp

* fix(i18n): japanese translation

* add missing files

* fix provider change

* add event types translations to en

* add tests

* resourceOwner

* remove unused handler

* fix: secret generators and add comments

* add setup step

* rename

* linting

* fix setup

* improve otp handling

* fix autocomplete

* translations for login and notifications

* translations for event types

* changes from review

* check selected mfa type
2023-08-15 12:47:05 +00:00
Livio SpringandGitHub 372755bddd feat(api): add organisation service (#6340)
* setup org with multiple admins

* tests

* add missing proto

* remove machine users (for now)

* update tests with idp case

* fix package

* organisation -> organization

* fix test
2023-08-11 14:19:14 +00:00
Livio SpringandGitHub e5acfb76b3 test: fix oidc session test (#6342)
* test: fix oidc session test

* fix test
2023-08-10 13:38:30 +00:00
Livio SpringandGitHub 8dc1fd06a1 fix: provide tokens in azuread idp session (#6334) 2023-08-08 09:28:47 +00:00
Livio Spring b9de36778f fix: check if session is reused on reauthentication (#6322)
* fix: check if session is reused on reauth steps

* add nolint directive

---------

Co-authored-by: Silvan <[email protected]>
(cherry picked from commit 57857b8d30)
2023-08-08 09:13:00 +02:00
57857b8d30 fix: check if session is reused on reauthentication (#6322)
* fix: check if session is reused on reauth steps

* add nolint directive

---------

Co-authored-by: Silvan <[email protected]>
2023-08-07 08:01:24 +00:00
Livio Spring 6959392fab Merge branch 'main' into next
# Conflicts:
#	console/src/assets/i18n/pt.json
2023-08-04 17:17:10 +02:00
Livio Spring e000213817 fix: migrate external id of federated users (#6312)
* feat: migrate external id

* implement tests and some renaming

* fix projection

* cleanup

* i18n

* fix event type

* handle migration for new services as well

* typo

(cherry picked from commit 45262e6829)
2023-08-04 11:49:01 +02:00
Livio SpringandGitHub 45262e6829 fix: migrate external id of federated users (#6312)
* feat: migrate external id

* implement tests and some renaming

* fix projection

* cleanup

* i18n

* fix event type

* handle migration for new services as well

* typo
2023-08-04 11:35:36 +02:00
Livio SpringandGitHub a1942ecdaa feat(api): add and remove OTP (SMS and email) (#6295)
* refactor: rename otp to totp

* feat: add otp sms and email

* implement tests
2023-08-02 18:57:53 +02:00
Livio SpringandGitHub dd480f8a8d feat(login): reuse existing session if no prompt is provided and only single session exists (#6272)
* feat: reuse existing session if no prompt is provided and only single session exists

* fix tests
2023-08-01 11:21:44 +00:00
Livio Spring 660a7b2576 fix(OIDC): introspection (#6298)
* fix(OIDC): introspect for PAT

* fix(OIDC): introspect for PAT

* fix(OIDC): introspect

* remove adding projectID into audience

(cherry picked from commit 782f7ad647)
2023-07-31 15:56:09 +02:00
Livio SpringandGitHub 782f7ad647 fix(OIDC): introspection (#6298)
* fix(OIDC): introspect for PAT

* fix(OIDC): introspect for PAT

* fix(OIDC): introspect

* remove adding projectID into audience
2023-07-31 13:55:26 +00:00
Livio Spring 993808cbcb fix(i18n): do not translate language itself (#6286)
(cherry picked from commit 43cb62ca4e)
2023-07-28 10:09:20 +02:00
Livio Spring 9d2ae1e9fa fix: password hash update and add missing i18n (#6285)
(cherry picked from commit 789dcd8615)
2023-07-28 10:09:20 +02:00
Livio SpringandGitHub 43cb62ca4e fix(i18n): do not translate language itself (#6286) 2023-07-28 09:58:05 +02:00
Livio SpringandGitHub 789dcd8615 fix: password hash update and add missing i18n (#6285) 2023-07-28 09:09:15 +02:00
Livio Spring 880896af75 perf: reduce events read from eventstore (#6280)
* fix: events query user

* fix: events query user

* user events query

* fix tests

* fix query

* cleanup

---------

Co-authored-by: Fabienne <[email protected]>
(cherry picked from commit d3e403f645)
2023-07-27 14:19:22 +02:00
d3e403f645 perf: reduce events read from eventstore (#6280)
* fix: events query user

* fix: events query user

* user events query

* fix tests

* fix query

* cleanup

---------

Co-authored-by: Fabienne <[email protected]>
2023-07-27 12:10:19 +00:00
Livio SpringandGitHub b0dc02509b docs: fix formatting of idp migration (#6279) 2023-07-27 08:01:36 +00:00
Livio SpringandGitHub 2fe76acd14 feat: add secret generators for OTP (#6262)
This PR adds configuration options for OTP codes through Admin API.
2023-07-26 11:00:41 +00:00
Livio Spring e2c51e8b02 chore: build release on next branch (#6266)
(cherry picked from commit 702dfaf314)
2023-07-25 08:46:14 +02:00
Livio Spring c46afa437e fix: build css for login correctly (#6265)
(cherry picked from commit 2183b9a7c5)
2023-07-25 08:45:53 +02:00
Livio SpringandGitHub 702dfaf314 chore: build release on next branch (#6266) 2023-07-25 08:43:06 +02:00
Livio SpringandGitHub 2183b9a7c5 fix: build css for login correctly (#6265) 2023-07-25 07:52:59 +02:00
Livio Spring ba2b7e584e chore: remove dry run 2023-07-24 16:41:28 +02:00
Livio Spring 3c1f092c74 chore: release latest on next 2023-07-24 15:48:24 +02:00
Livio Spring bdecf90d6e fix: ensure resource owner in update human profile (#6253)
(cherry picked from commit 13e284dd56)
2023-07-24 15:38:31 +02:00
Livio Spring 60ecaefd72 chore: remove on push and merge_group from pipeline execution (#6254)
(cherry picked from commit 01dce17b14)
2023-07-24 15:38:30 +02:00
Livio Spring 1b44e9ad76 fix: user grant by id (#6242)
(cherry picked from commit cd5e176e30)
2023-07-24 15:38:30 +02:00
Livio Spring e08b8dcb13 chore: linting in console (#6243)
chore: linting in console
(cherry picked from commit cfb8f3c07f)
2023-07-24 15:38:29 +02:00
Livio SpringandGitHub 13e284dd56 fix: ensure resource owner in update human profile (#6253) 2023-07-21 13:42:24 +00:00
Livio SpringandGitHub 01dce17b14 chore: remove on push and merge_group from pipeline execution (#6254) 2023-07-21 12:37:07 +00:00
Livio SpringandGitHub cd5e176e30 fix: user grant by id (#6242) 2023-07-21 11:04:55 +00:00
Livio SpringandGitHub cfb8f3c07f chore: linting in console (#6243)
chore: linting in console
2023-07-21 06:54:38 +00:00
Livio Spring e2644cf076 Merge branch 'main' into next
# Conflicts:
#	.releaserc.js
2023-07-21 07:47:54 +02:00
Livio SpringandGitHub fed15574f6 feat: allow to force MFA local only (#6234)
This PR adds an option to the LoginPolicy to "Force MFA for local users", so that users authenticated through an IDP must not configure (and verify) an MFA.
2023-07-20 04:06:16 +00:00
Livio SpringandGitHub 59f3c328ec feat(OIDC): add support for end_session for V2 tokens (#6226)
This PR adds support for the OIDC end_session_endpoint for V2 tokens. Sending an id_token_hint as parameter will directly terminate the underlying (SSO) session and all its tokens. Without this param, the user will be redirected to the Login UI, where he will able to choose if to logout.
2023-07-19 13:17:39 +02:00
Livio SpringandGitHub e1b3cda98a feat(OIDC): support token revocation of V2 tokens (#6203)
This PR adds support for OAuth2 token revocation of V2 tokens.

Unlike with V1 tokens, it's now possible to revoke a token not only from the authorized client / client which the token was issued to, but rather from all trusted clients (audience)
2023-07-17 14:33:37 +02:00
Livio SpringandGitHub 80961125a7 feat(API): support V2 token and session token usage (#6180)
This PR adds support for userinfo and introspection of V2 tokens. Further V2 access tokens and session tokens can be used for authentication on the ZITADEL API (like the current access tokens).
2023-07-14 11:16:16 +00:00
Livio SpringandGitHub ee26f99ebf fix: store auth methods instead of AMR in auth request linking and OIDC Session (#6192)
This PR changes the information stored on the SessionLinkedEvent and (OIDC Session) AddedEvent from OIDC AMR strings to domain.UserAuthMethodTypes, so no information is lost in the process (e.g. authentication with an IDP)
2023-07-12 12:24:01 +00:00
14b8cf4894 feat(api): add OIDC session service (#6157)
This PR starts the OIDC implementation for the API V2 including the Implicit and Code Flow.


Co-authored-by: Livio Spring <[email protected]>
Co-authored-by: Tim Möhlmann <[email protected]>
Co-authored-by: Stefan Benz <[email protected]>
2023-07-10 13:27:00 +00:00