Commit graph

34 commits

Author SHA1 Message Date
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
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
4baeb42a64 chore(demo-server): update jsonwebtoken 8.3.0 -> 9.1.0 2023-11-12 09:02:56 +01:00
cduvray
6897633c7f chore: release 0.12.0 2023-10-14 13:55:34 +02:00
cduvray
310444007d chore: release 0.11.0 2023-09-06 07:32:58 +02:00
cduvray
6f2ca786c0 fix: ci test (pinned: 1.68)
- minimal rust version 1.68 (wiremock issue)
2023-09-04 18:59:44 +02:00
cduvray
0738ec13ea chore: deps update 2023-08-25 08:08:33 +02:00
cduvray
ae1a29ed10 chore: release 0.10.1 2023-07-11 08:36:44 +02:00
cduvray
157cdfa396 chore: Merge branch 'NotNorom/main' into main 2023-07-10 08:15:30 +02:00
Andre Julius
70d1ac3786 Add support for time crate. 2023-06-26 17:17:03 +02:00
cduvray
7f9ad54694 chore: release 0.10.0 2023-05-19 09:14:53 +02:00
cduvray
d3fc883006 feat: claims 2023-05-18 17:13:29 +02:00
cduvray
93325dce96 chore: Merge 'sjoerdsimons/use-ready-inner-service'
- containing 2 PRs: #21, #19
2023-05-17 08:24:54 +02:00
Sjoerd Simons
89f795368c features: Add integration test for tonic support
Add an integration tests for tonic in such a way that it avoids having
to create a build.rs with tonic code generation; As such it hand-codes
some parts of the tonic service implementation which is normally
code-generated. This also simply tests successfull and failed auth
without validating other authorization functionality as that's not
different between usage in tonic and axum

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
2023-04-22 14:36:41 +02:00
Sjoerd Simons
5f3a08c4c7 feat: Add support for tonic
Tonic and Axum are quite closely related; From a tower perspective the
main difference is in the Error type in the body for their Response.

This refactor the code a little bit and add conversions from AuthError
to a tonic's Response such that the exact same code can be used by both
Axum and tonic services

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
2023-04-22 14:36:41 +02:00
cduvray
f45568a044 chore: release 0.9.0 2023-04-14 07:59:38 +02:00
cduvray
bad5ad18f3
fix(jwt source): cookie from request (#18)
- JwtSource:Bearer renamed to AuthorizationHeader for more consistency with jwt terminology
- documentation added
- the token cookie should be taken from request not from the tower-cookies middleware jar
  - dependency on tower-cookies is no longer needed
- tests added
2023-04-09 08:31:39 +02:00
Felix B. Bause
9054f400dc
feat: implementation of named cookie as jwt source (#10)
* feat: working but naive implementation of named cookie as jwt source

* refactor: add with_jwt_source to JwtAuthorizer. Make Bearer default

* fix: fix the demo-server. Remove JWTSource

* refactor: rename with_jwt_source() -> jwt_source()
2023-03-30 07:25:39 +02:00
cduvray
5b99335da6 chore: release 0.8.1 2023-03-16 07:14:50 +01:00
cduvray
8b3dcd4b24 chore: dependencies update
- tower-http 0.3 -> 0.4 (as it was changed for axum 0.6.9)
- tokio 1.0 -> 1.25 (same version as in axum 0.6.9)
- other demo-server dependencies
2023-03-02 08:12:06 +01:00
cduvray
3b2ad550c3 chore: release 0.8.0 2023-02-28 07:47:46 +01:00
cduvray
3d8b5a7f46 chore: release 0.7.0 2023-02-14 07:35:12 +01:00
cduvray
ae44a8e961 feat: integration tests 2023-02-11 20:48:59 +01:00
cduvray
3a6a31b418 chore: release 0.6.0 2023-02-05 09:50:31 +01:00
cduvray
ec02b70a99 chore: release 0.5.0 2023-01-28 08:43:19 +01:00
cduvray
8f989bb80c chore: loosening deps 2023-01-27 21:31:59 +01:00
cduvray
8f03e8e1b6 chore: release 0.4.0 2023-01-21 08:34:54 +01:00
cduvray
582206b24c chore: release 0.3.2 2023-01-18 07:38:00 +01:00
cduvray
7009f645e6 test: integration tests 2023-01-14 09:07:02 +01:00
cduvray
8a687f0474 chore: version 0.3.0 2023-01-13 07:50:50 +01:00
cduvray
b0667729a3 chore: fmt 2023-01-09 07:37:25 +01:00