Commit graph

153 commits

Author SHA1 Message Date
d9597882bf chore: add param to make auth optional (to handle more granularly) 2025-01-05 20:57:45 +01:00
cduvray
10a926c25b fix: better jwks refresh errors
reporting error response status (ref #59, #55)
2024-09-03 08:33:43 +02:00
cduvray
29ec07bd87 chore: moving racing-subscriber to dev-dependencies (fixes #57) 2024-08-30 08:14:37 +02:00
cduvray
e24ebf9195 chore: release 0.15.0 2024-08-26 07:45:51 +02:00
cduvray
5ef14759dc
Merge pull request #58 from cduvray/ci-update
refactor ci.yml, bump MSRV to 1.75
2024-08-26 07:44:04 +02:00
cduvray
b548c773d1 fix(doc): use automatic links, add module comment 2024-08-25 09:20:25 +02:00
cduvray
6dd6b11880 build(ci): refactor ci.yml, bump MSRV to 1.75
(wiremock -> deadpool-runtime which needs 1.75)

build(ci): remove update

- cargo update -Z minimal-version resulting in errors in num-bigint
2024-08-25 09:20:25 +02:00
Sjoerd Simons
ac444f9286 Make layer generic over Request body type
Nothing in the layer implementation actually depends on the Request's
body type. So generalise over the body type, allowing the service
implementation not longer be tied to axum specifically.
2024-08-21 08:00:25 +02:00
Sjoerd Simons
d75fec0409 features: Fix tonic support
Now that tonic support has been re-added, update as required for the
new/latest version with.
2024-08-21 07:52:44 +02:00
cduvray
31c625b499 Revert "chore: remove tonic temporarily (waiting hyperium/tonic/#1595)"
This reverts commit 5f71827bf2.
2024-08-20 08:17:10 +02:00
cduvray
d87b7ef909 chore: dependency update 2024-05-27 07:55:37 +02:00
cduvray
fd94b80069 test(e2e): Bruno tests 2024-05-13 08:25:29 +02:00
cduvray
a31cde1dd3 chore: release 0.14.0 2024-01-21 09:05:56 +01:00
cduvray
f0b09235a1
Merge pull request #45 from cduvray/tmp-tonic-removal
temporary tonic removal
2024-01-21 08:43:19 +01:00
cduvray
671f3cd388 chore: dipendencies updates 2024-01-20 14:53:46 +01:00
cduvray
5f71827bf2 chore: remove tonic temporarily (waiting hyperium/tonic/#1595) 2024-01-20 14:53:16 +01:00
cduvray
12eeed5240 chore: simplify 2023-12-31 09:18:27 +01:00
Daniel Gallups
976d65d362 fix: std tcp listener must be non-blocking to create tokio tcplistener 2023-12-05 11:23:16 -05:00
Daniel Gallups
665377e71f chore: clippy 2023-12-01 20:07:04 -05:00
Daniel Gallups
a2b2771ad8 fix: readded sequential tests 2023-12-01 20:05:50 -05:00
Daniel Gallups
272dd5c2c3 fix: removed hacky mutex, fixed doc test 2023-12-01 19:47:30 -05:00
Daniel Gallups
526fc77dae fix: use Request, ignore props of ReqBody 2023-12-01 19:01:12 -05:00
Daniel Gallups
dd2a48b00c chore: removed commented code for Service impl 2023-12-01 15:16:50 -05:00
Daniel Gallups
7970a6c358 unit tests pass, removed generic to expand upon, integration tests freeze 2023-12-01 14:59:41 -05:00
Daniel Gallups
e1e5874347 fix: responses collect into bytes with BodyExt trait 2023-12-01 13:22:12 -05:00
Daniel Gallups
41f38d8db5 update hyperium crates to 1.0, axum to 0.7 2023-12-01 12:37:13 -05:00
cduvray
8cec2283e0 chore: release 2023-11-20 07:59:45 +01:00
cduvray
ce0f83517e fix: clippy 2023-11-20 07:34:50 +01:00
cduvray
1f9569d7d9 test: add EC384 test keys and tokens 2023-11-19 10:04:03 +01:00
cduvray
14f4a6dcc3 feat(validation): allow to restrict valid algs 2023-11-19 09:06:23 +01:00
cduvray
5f148d3631 fix: validation algs
- fix: missing alg in jwk panics
- fix: add valid algs if alg missing (alg in jwk is optional, RFC7517#section-4.4)
2023-11-17 08:26:26 +01:00
cduvray
d740102908 Revert "fix: bad jwk panic"
This reverts commit ed386ec972.

reverting because alg is optional in jwk spec (RFC7517#section-4.4), algs needed for validation can be "guessed" from the key type
2023-11-17 08:24:07 +01:00
cduvray
bc90802639 doc(CHANGELOG) 2023-11-15 07:39:12 +01:00
cduvray
8d9734bcd5
Merge pull request #42 from NotNorom/main
feat: Add support for custom http client in jwks discovery.
2023-11-15 07:35:03 +01:00
Andre Julius
7893f8f775 Run cargo fmt 2023-11-13 09:34:14 +01:00
cduvray
ed386ec972 fix: bad jwk panic
replacinf unwrap by Error (jsonwebtoken.error::Error)
2023-11-12 09:03:37 +01:00
cduvray
4baeb42a64 chore(demo-server): update jsonwebtoken 8.3.0 -> 9.1.0 2023-11-12 09:02:56 +01:00
Vladislav Manchev
62b75a8c72 Fix tonic test 2023-11-11 14:42:19 +01:00
Vladislav Manchev
77949d6a3a Fix tests 2023-11-11 14:42:19 +01:00
Vladislav Manchev
a7d2830dd1 - Update jsonwebtoken to latest version
- Update key algorithm handling when initializing key data
2023-11-11 14:42:19 +01:00
cduvray
4a29bdfbc6 test: test tokens without with and without audiences
- prepares for jsonwebtoken update
2023-11-07 07:34:05 +01:00
cduvray
c5f73d43d4 test: generate token with and witout aud 2023-11-06 23:14:12 +01:00
cduvray
d3ccceef2c feat(claims): make RegisteredClaims serializable (fixes #38) 2023-11-06 23:14:12 +01:00
Andre Julius
7a5d7ee03b Add support for custom http client in jwks discovery 2023-11-06 16:31:45 +01:00
cduvray
6897633c7f chore: release 0.12.0 2023-10-14 13:55:34 +02:00
cduvray
4b5be6052b doc; CHANGELOG.md 2023-10-14 13:38:07 +02:00
cduvray
4cabc9777d test: add a test of from_jwks_text 2023-10-12 07:45:32 +02:00
Sjoerd Simons
ef8ac07271 Add support for reading keys from a static JWKS
Allow creating authorizer from JWKS files similar to other static
certificates.

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
2023-10-08 08:51:09 +02:00
cduvray
6e19f31c77 refactor: ClaimCheckerFn (simplification) 2023-09-30 16:10:29 +02:00
cduvray
b42aab8d31 feat: claim checker accepts closures
chore: remove Sync (not needed)

chore: simplify
2023-09-30 16:10:29 +02:00