Commit Graph
53 Commits
Author SHA1 Message Date
0017542aa2 feat(api/v2): implement TOTP session check (#6362)
* feat(api/v2): implement TOTP session check

* add integration test

* correct typo in projection test

* fix event type typos

---------

Co-authored-by: Livio Spring <[email protected]>
2023-08-15 09:50:42 +00:00
Tim MöhlmannandGitHub cc4499ec2d fix(make): add buf command to core_grpc_dependencies (#6319) 2023-08-14 21:16:20 +03:00
Tim MöhlmannandGitHub 86af67d1be feat(api/v2): implement U2F session check (#6339) 2023-08-11 15:36:18 +00:00
Tim MöhlmannandLivio Spring 61742139e0 fix: always update the timestamp in trigger (#6326)
* always reset timestamp

* re-enable test

(cherry picked from commit 3c7b603650)
2023-08-08 09:13:00 +02:00
Tim MöhlmannandLivio Spring 27513b7bfd fix: trigger session by id in verifySessionToken (#6325)
(cherry picked from commit 11b5a73551)
2023-08-08 09:12:59 +02:00
Tim MöhlmannandGitHub 3c7b603650 fix: always update the timestamp in trigger (#6326)
* always reset timestamp

* re-enable test
2023-08-04 16:17:16 +00:00
Tim MöhlmannandGitHub 11b5a73551 fix: trigger session by id in verifySessionToken (#6325) 2023-08-04 18:16:27 +03:00
Tim MöhlmannandGitHub 4d09409328 feat(crypto): add pbkdf2 support (#6303)
This change brings pbkdf2 support for password hashing and verification.
2023-08-02 11:27:18 +00:00
4589ddad4a feat: integrate passwap for human user password hashing (#6196)
* feat: use passwap for human user passwords

* fix tests

* passwap config

* add the event mapper

* cleanup query side and api

* solve linting errors

* regression test

* try to fix linter errors again

* pass systemdefaults into externalConfigChange migration

* fix: user password set in auth view

* pin passwap v0.2.0

* v2: validate hashed password hash based on prefix

* resolve remaining comments

* add error tag and translation for unsupported hash encoding

* fix unit test

---------

Co-authored-by: Livio Spring <[email protected]>
2023-07-14 09:49:57 +03:00
Tim MöhlmannandGitHub 112f672266 chore: cleanup command/crypto (#5883)
* chore: cleanup command/crypto

* cleanup unused function mockEmailCode
2023-07-10 08:07:10 +00:00
c0e45b63d8 fix: reset the call timestamp after a bulk trigger (#6080)
* reproduce #5808

Add an integration test that imports and gets N amount of human users.
- With N set to 1-10 the operation seems to succeed always
- With N set to 100 the operation seems to fail between 1 and 7 times.

* fix merge issue

* fix: reset the call timestamp after a bulk trigger

With the use of `AS OF SYSTEM TIME` in queries,
there was a change for the query package not
finding the latest projection verson after
a bulk trigger.
If events where processed in the bulk trigger,
the resulting row timestamp would be after the call
start timestamp.
This sometimes resulted in consistency issues when
Set and Get API methods are called in short succession.
For example a Import and Get user could sometimes result in a Not Found
error.

Although the issue was reported for the Management API user import,
it is likely this bug contributed to the flaky integration and e2e tests.

Fixes #5808

* trigger bulk action in GetSession

* don't use the new context in handler schedule

* disable reproduction test

---------

Co-authored-by: Livio Spring <[email protected]>
2023-07-07 08:15:05 +00:00
Tim MöhlmannandGitHub 1461977d93 Merge branch 'main' into rename-topt 2023-06-23 19:09:39 +03:00
Tim Möhlmann 56e33ce1a7 fix: rename OTP to TOTP in v2 alpha user api
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.
2023-06-22 12:06:32 +02:00
83da9cada7 fix(v2): typo in register u2f endpoint summary (#6059)
Co-authored-by: Fabi <[email protected]>
2023-06-20 11:06:57 +00:00
Tim MöhlmannandGitHub 09aafb35eb feat(v2): implement user register OTP (#6030)
* feat(v2): implement user register OTP

* feat(v2): implement user verify OTP

* session: retry on permission denied
2023-06-20 10:36:21 +00:00
Tim MöhlmannandGitHub 2e323e8044 feat(v2): register user u2f (#6020) 2023-06-15 05:32:40 +00:00
Tim MöhlmannandGitHub 5693e40930 chore(v2): user register factors proto definitions (#6017)
* chore(v2): user register factors proto definitions
* use uri
2023-06-12 13:24:51 +00:00
Tim MöhlmannandGitHub 6907b52b32 chore(deps): update oidc (#6002) 2023-06-09 15:18:14 +00:00
Tim MöhlmannandGitHub 18f761d404 fix: re-apply register Passkey API v2 (#5990)
Revert "fix: REVERT register Passkey API v2"
2023-06-08 07:39:11 +00:00
Tim MöhlmannandGitHub f456168a74 feat: session v2 passkey authentication (#5952) 2023-06-07 17:28:42 +02:00
Tim MöhlmannandGitHub da95cf32bf fix: REVERT register Passkey API v2 (#5981)
Reverts zitadel/zitadel#5873
2023-06-06 08:35:54 +02:00
Tim Möhlmann 56e5d1a9a8 fix linting error 2023-06-06 00:05:46 +02:00
Tim Möhlmann 7692d2cb8d preserve reused code 2023-06-05 23:30:10 +02:00
Tim Möhlmann cea0595328 Revert "feat: implement register Passkey user API v2 (#5873)"
This reverts commit a301c40f9f.
2023-06-05 18:43:51 +02:00
Tim MöhlmannandGitHub d5eaa8fa16 fix: display loginname in machine client credentials (#5936) 2023-05-26 13:04:45 +00:00
Tim MöhlmannandGitHub a301c40f9f feat: implement register Passkey user API v2 (#5873)
* command/crypto: DRY the code

- reuse the the algorithm switch to create a secret generator
- add a verifyCryptoCode function

* command: crypto code tests

* migrate webauthn package

* finish integration tests with webauthn mock client
2023-05-24 10:22:00 +00:00
Tim MöhlmannandGitHub 6839a5c203 chore: update oidc (#5918) 2023-05-24 08:11:56 +00:00
Tim MöhlmannandGitHub 62e35b266d chore: exclude generated files from coverage (#5884) 2023-05-17 14:22:16 +00:00
Tim Möhlmann 1461d9ec6d Merge branch 'main' into grcp-server-reflect 2023-05-07 16:47:52 +02:00
Tim Möhlmann 62b4c31834 add server reflection to Probes list 2023-05-07 16:47:43 +02:00
Tim MöhlmannandGitHub e772ae55ab chore: integration test base (#5739)
Add integrations tests for the gRPC API, primarily targeted at `v2` but
can also be used for legacy. Provides a crude framework that runs a
server, prepares a client and exposes the underlying resources such as
`command` and `query` handlers to the tester. The code in
`internal/integration` is written just as a proof of concept and
probably needs to be split up in more reusable chunks when we need more
functionality, like multiple users, organisations, instances etc.

Integrations tests for `user/v2alpha` are also included.

See the added documentation for more details.

Related to #5598
2023-05-04 09:45:04 +02:00
Tim MöhlmannandGitHub 11f0f54ce5 Merge branch 'main' into integration-tests 2023-05-04 09:11:59 +02:00
Tim Möhlmann 5f0c1b5290 resolve comments 2023-05-03 15:10:27 +02:00
Tim Möhlmann 4934d6f4fa Merge branch 'main' into integration-tests 2023-05-02 19:24:37 +03:00
Tim Möhlmann c839cb3ce0 tie loose ends, documentation 2023-05-02 19:24:24 +03:00
Tim Möhlmann f011882b2d Merge branch 'main' into grcp-server-reflect 2023-04-30 14:40:13 +03:00
Tim Möhlmann 498c4436ae inegration tests for user email 2023-04-28 17:44:59 +03:00
Tim Möhlmann 4b7f5ae186 AddHumanUser tests 2023-04-28 14:39:53 +03:00
Tim Möhlmann 11ab645bb7 Merge branch 'main' into integration-tests 2023-04-27 12:47:35 +03:00
Tim Möhlmann bd3820cc6c correct the coverpkg path 2023-04-27 12:03:57 +03:00
Tim Möhlmann 596900aba6 nolint contextcheck in NewTester 2023-04-26 20:49:33 +03:00
Tim Möhlmann 03789d43e5 re-enable PR build 2023-04-26 20:29:43 +03:00
Tim Möhlmann ec8f741e58 coverage reports 2023-04-26 20:12:58 +03:00
Tim Möhlmann e1655c3fbb Revert "temporarily remove other workflow for fast running"
This reverts commit 68200dcbe9.
2023-04-26 20:03:40 +03:00
Tim Möhlmann 1dc46b16b0 remove negated integration tags 2023-04-26 19:55:13 +03:00
Tim Möhlmann 90ba3a8d92 poll on test start 2023-04-26 19:54:47 +03:00
Tim Möhlmann 234186c60c do not run tests in parallel 2023-04-25 18:30:08 +03:00
Tim Möhlmann 68200dcbe9 temporarily remove other workflow for fast running 2023-04-25 18:11:53 +03:00
Tim Möhlmann 79084089ea add github action for integration tests 2023-04-25 18:11:04 +03:00
Tim Möhlmann a22b58f1c0 simple test of a health endpoint 2023-04-25 15:04:35 +03:00
Tim Möhlmann e167365548 chore: test server for direct resource access 2023-04-24 20:40:31 +03:00
5819924275 feat: device authorization RFC 8628 (#5646)
* device auth: implement the write events

* add grant type device code

* fix(init): check if default value implements stringer

---------

Co-authored-by: adlerhurst <[email protected]>
2023-04-19 08:46:02 +00:00
Tim Möhlmann 27e9852367 feat: enable grpc server reflection 2023-04-14 16:34:12 +03:00