Commit graph

19 commits

Author SHA1 Message Date
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