Commit Graph
100 Commits
Author SHA1 Message Date
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
5cba5cd635 fix: set samesite to none for user agent cookie for iframe usage (#6162)
Co-authored-by: Fabi <[email protected]>
2023-07-10 07:51:56 +02:00
Livio SpringandGitHub 26d63cd233 fix: handle missing parameters in external provider callback (#6158) 2023-07-07 21:04:55 +02:00
6319fdda9e fix: add scope profile to PAT (#6154)
Co-authored-by: Fabi <[email protected]>
2023-07-07 17:31:42 +02:00
Livio SpringandGitHub 59d67bde5f fix: return secret generators (#6159) 2023-07-07 14:46:02 +00:00
a5b4319f1f fix: ignore unchanged console redirect_uris when adding an instance domain (#6156)
Co-authored-by: Fabi <[email protected]>
2023-07-07 14:15:19 +00:00
94fdb9a022 fix: org metadata query (#6161)
Co-authored-by: Fabi <[email protected]>
2023-07-07 15:48:41 +02:00
Livio SpringandGitHub 9fed1a7a5b fix: add font color on new label policy (#6155) 2023-07-07 09:21:10 +00:00
Livio Spring 5060c7463a Merge branch 'main' into next
# Conflicts:
#	cmd/setup/11.go
#	console/src/app/utils/language.ts
2023-06-27 21:31:28 +02:00
Livio SpringandGitHub bd5defa96a fix: provide domain in session, passkey and u2f (#6097)
This fix provides a possibility to pass a domain on the session, which
will be used (as rpID) to create a passkey / u2f assertion and
attestation. This is useful in cases where the login UI is served under
a different domain / origin than the ZITADEL API.
2023-06-27 14:36:07 +02:00
Livio SpringandGitHub 2c6a2a376c fix: rename OTP to TOTP in v2 alpha user api (#6069)
This change renames the v2 user OTP registration endpoints and objects
to TOTP.
Also the v2 related code paths have been renamed to TOTP.

This change was discussed during the sprint review.

### Definition of Ready

- [ ] I am happy with the code
- [ ] Short description of the feature/issue is added in the pr
description
- [ ] PR is linked to the corresponding user story
- [ ] Acceptance criteria are met
- [ ] All open todos and follow ups are defined in a new ticket and
justified
- [ ] Deviations from the acceptance criteria and design are agreed with
the PO and documented.
- [ ] No debug or dead code
- [ ] My code has no repetitions
- [ ] Critical parts are tested automatically
- [ ] Where possible E2E tests are implemented
- [ ] Documentation/examples are up-to-date
- [ ] All non-functional requirements are met
- [ ] Functionality of the acceptance criteria is checked manually on
the dev system.
2023-06-23 18:58:29 +02:00
Livio SpringandGitHub a0204ade4a Merge branch 'main' into rename-topt 2023-06-23 09:08:51 +02:00
Livio Spring 8041dd995c fix(login): ensure auth request information is up-to-date in external user check (#6060) 2023-06-22 06:49:10 +02:00
Livio Spring 74198b0078 fix: external user check (#6038) 2023-06-22 06:48:58 +02:00
Livio SpringandGitHub 7e6434fa8c fix: event handling on UserIDPLinkWriteModel (#6054) 2023-06-21 06:30:39 +00:00
Livio SpringandGitHub 84085478ec fix(login): ensure auth request information is up-to-date in external user check (#6060) 2023-06-21 05:00:03 +00:00
Livio SpringandGitHub 7046194530 feat(api): list authentication method types in user api v2 (#6058) 2023-06-20 16:23:28 +00:00
Livio SpringandGitHub 82e7333169 feat(api): add password reset and change to user service (#6036)
* feat(api): add password reset and change to user service

* integration tests

* invalidate password check after password change

* handle notification type

* fix proto
2023-06-20 17:34:06 +02:00
Livio SpringandGitHub 1017568cf1 fix: provide more information in the retrieve idp information (#5927)
* fix: provide more information in the retrieve idp information

* change raw_information to proto struct

* change unmarshal

* improve description
2023-06-20 14:39:50 +02:00
Livio SpringandGitHub 1c8037f291 fix: external user check (#6038) 2023-06-16 10:27:43 +02:00
Livio SpringandGitHub e4427380f3 feat: enable grpc server reflection (#5689)
This change enables [gRPC server
reflection](https://github.com/grpc/grpc-go/blob/master/Documentation/server-reflection-tutorial.md).
It allows for easier setting up of dev-tools like
[gRPCurl](https://github.com/fullstorydev/grpcurl) and
[gRPCui](https://github.com/fullstorydev/grpcui).

To see it in action, after you start zitadel on the localhost:

```
go install github.com/fullstorydev/grpcui/cmd/grpcui@latest
grpcui -plaintext localhost:8080
````


![image](https://user-images.githubusercontent.com/5411563/232060184-1a114640-e87a-48da-866f-ff8d597e790f.png)
2023-05-16 11:17:20 +02:00
Livio SpringandGitHub 383e68b819 Merge branch 'main' into grcp-server-reflect 2023-05-16 10:51:32 +02:00
Livio SpringandGitHub a77f299168 fix(eventstore): add created_at column (#5818)
### Definition of Ready

- [x] I am happy with the code
- [ ] Short description of the feature/issue is added in the pr
description
- [ ] PR is linked to the corresponding user story
- [ ] Acceptance criteria are met
- [ ] All open todos and follow ups are defined in a new ticket and
justified
- [ ] Deviations from the acceptance criteria and design are agreed with
the PO and documented.
- [ ] No debug or dead code
- [ ] Critical parts are tested automatically
- [ ] Where possible E2E tests are implemented
- [ ] Documentation/examples are up-to-date
- [ ] All non-functional requirements are met
- [ ] Functionality of the acceptance criteria is checked manually on
the dev system.
2023-05-16 09:08:54 +02:00