zitadel/internal/api/oidc
Tim Möhlmann ba9b807854
perf(oidc): optimize the introspection endpoint (#6909)
* get key by id and cache them

* userinfo from events for v2 tokens

* improve keyset caching

* concurrent token and client checks

* client and project in single query

* logging and otel

* drop owner_removed column on apps and authN tables

* userinfo and project roles in go routines

* get  oidc user info from projections and add actions

* add avatar URL

* some cleanup

* pull oidc work branch

* remove storage from server

* add config flag for experimental introspection

* legacy introspection flag

* drop owner_removed column on user projections

* drop owner_removed column on useer_metadata

* query userinfo unit test

* query introspection client test

* add user_grants to the userinfo query

* handle PAT scopes

* bring triggers back

* test instance keys query

* add userinfo unit tests

* unit test keys

* go mod tidy

* solve some bugs

* fix missing preferred login name

* do not run triggers in go routines, they seem to deadlock

* initialize the trigger handlers late with a sync.OnceValue

* Revert "do not run triggers in go routines, they seem to deadlock"

This reverts commit 2a03da2127.

* add missing translations

* chore: update go version for linting

* pin oidc version

* parse a global time location for query test

* fix linter complains

* upgrade go lint

* fix more linting issues

---------

Co-authored-by: Stefan Benz <46600784+stebenz@users.noreply.github.com>
2023-11-21 13:11:38 +01:00
..
access_token.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
amr_test.go feat(api): add and remove OTP (SMS and email) (#6295) 2023-08-02 18:57:53 +02:00
amr.go feat(api): add and remove OTP (SMS and email) (#6295) 2023-08-02 18:57:53 +02:00
auth_request_converter_v2.go merge main into next 2023-10-19 12:34:00 +02:00
auth_request_converter.go merge main into next 2023-10-19 12:34:00 +02:00
auth_request_integration_test.go feat: add possibility to set an expiration to a session (#6851) 2023-11-06 10:48:28 +01:00
auth_request.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
client_converter.go merge main into next 2023-10-19 12:34:00 +02:00
client_credentials.go merge main into next 2023-10-19 12:34:00 +02:00
client_integration_test.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
client.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
device_auth.go merge main into next 2023-10-19 12:34:00 +02:00
introspect.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
jwt-profile.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
key_test.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
key.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
oidc_integration_test.go feat: add possibility to set an expiration to a session (#6851) 2023-11-06 10:48:28 +01:00
op.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
server_test.go perf(oidc): remove db call for discovery configuration (#6857) 2023-11-03 15:18:57 +00:00
server.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
userinfo_test.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00
userinfo.go perf(oidc): optimize the introspection endpoint (#6909) 2023-11-21 13:11:38 +01:00