zitadel-oidc/pkg/op
Tim Möhlmann 0f8a0585bf
feat(op): Server interface (#447)
* first draft of a new server interface

* allow any response type

* complete interface docs

* refelct the format from the proposal

* intermediate commit with some methods implemented

* implement remaining token grant type methods

* implement remaining server methods

* error handling

* rewrite auth request validation

* define handlers, routes

* input validation and concrete handlers

* check if client credential client is authenticated

* copy and modify the routes test for the legacy server

* run integration tests against both Server and Provider

* remove unuse ValidateAuthRequestV2 function

* unit tests for error handling

* cleanup tokenHandler

* move server routest test

* unit test authorize

* handle client credentials in VerifyClient

* change code exchange route test

* finish http unit tests

* review server interface docs and spelling

* add withClient unit test

* server options

* cleanup unused GrantType method

* resolve typo comments

* make endpoints pointers to enable/disable them

* jwt profile base work

* jwt: correct the test expect

---------

Co-authored-by: Livio Spring <livio.a@gmail.com>
2023-09-28 17:30:08 +03:00
..
mock feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
applicationtype_enumer.go chore: add enumer for iota-defined types (#197) 2022-07-25 20:06:49 +02:00
auth_request.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
auth_request_test.go feat: add slog logging (#432) 2023-08-29 14:07:45 +02:00
client.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
client_test.go chore: replace gorilla/schema with zitadel/schema (#348) 2023-03-28 14:57:27 +03:00
config.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
config_test.go feat(op): dynamic issuer depending on request / host (#278) 2023-02-09 17:10:22 +01:00
context.go chore: test all routes 2023-03-15 14:32:14 +01:00
context_test.go feat(op): dynamic issuer depending on request / host (#278) 2023-02-09 17:10:22 +01:00
crypto.go upgrade this module to v3 2023-03-20 13:38:21 +02:00
device.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
device_test.go chore: cleanup unneeded device storage methods (#399) 2023-05-26 10:06:33 +02:00
discovery.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
discovery_test.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
endpoint.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
endpoint_test.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
error.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
error_test.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
keys.go chore(deps): migrage jose to go-jose/v3 (#433) 2023-09-01 14:33:16 +03:00
keys_test.go chore(deps): migrage jose to go-jose/v3 (#433) 2023-09-01 14:33:16 +03:00
op.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
op_test.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
probes.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
server.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
server_http.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
server_http_routes_test.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
server_http_test.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
server_legacy.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
server_test.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
session.go feat: add slog logging (#432) 2023-08-29 14:07:45 +02:00
signer.go chore(deps): migrage jose to go-jose/v3 (#433) 2023-09-01 14:33:16 +03:00
storage.go chore(deps): migrage jose to go-jose/v3 (#433) 2023-09-01 14:33:16 +03:00
token.go Merge branch 'main' into main-to-next 2023-04-18 12:32:04 +03:00
token_client_credentials.go feat: add slog logging (#432) 2023-08-29 14:07:45 +02:00
token_code.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
token_exchange.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
token_intospection.go feat: merge the verifier types (#336) 2023-03-22 19:18:41 +02:00
token_jwt_profile.go feat: add slog logging (#432) 2023-08-29 14:07:45 +02:00
token_refresh.go feat: add slog logging (#432) 2023-08-29 14:07:45 +02:00
token_request.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
token_revocation.go feat(op): Server interface (#447) 2023-09-28 17:30:08 +03:00
userinfo.go feat: merge the verifier types (#336) 2023-03-22 19:18:41 +02:00
verifier_access_token.go feat: merge the verifier types (#336) 2023-03-22 19:18:41 +02:00
verifier_access_token_example_test.go upgrade this module to v3 2023-03-20 13:38:21 +02:00
verifier_access_token_test.go feat: merge the verifier types (#336) 2023-03-22 19:18:41 +02:00
verifier_id_token_hint.go feat: merge the verifier types (#336) 2023-03-22 19:18:41 +02:00
verifier_id_token_hint_test.go feat: merge the verifier types (#336) 2023-03-22 19:18:41 +02:00
verifier_jwt_profile.go chore(deps): migrage jose to go-jose/v3 (#433) 2023-09-01 14:33:16 +03:00
verifier_jwt_profile_test.go feat: merge the verifier types (#336) 2023-03-22 19:18:41 +02:00