Commit graph

9 commits

Author SHA1 Message Date
Vladislav Manchev
77949d6a3a Fix tests 2023-11-11 14:42:19 +01:00
cduvray
e815d35a55 refactor: JwtAuthorizer::IntoLayer -> Authorizer::IntoLayer
- better error management (avoids composite errors when transforming multiple builder into layer)
2023-08-18 07:48:53 +02:00
cduvray
50c2ecac38 refactor: simplification ToAuthorizationLayer -> IntoLayer 2023-08-14 08:02:56 +02:00
cduvray
55c4f7cc16 chore: clippy 2023-08-14 08:02:56 +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
cduvray
683f932468
feat: configurable validation (validation: iss, aud, exp, nbf, leeway) (fixes #1) (#4) 2023-02-26 20:30:55 +01:00
cduvray
28c7eedcd5
fix: from_ec, from_ed (#3)
* fix: from_ec, from_ed

* chore: fix clippy warnings
2023-02-23 21:22:55 +01:00
cduvray
a8b510a03e refactor: refresh simplification
- difference between refresh_interval and minimal_refresh_interval was no clear,
- therfore they were merged
2023-02-13 08:32:02 +01:00
cduvray
ae44a8e961 feat: integration tests 2023-02-11 20:48:59 +01:00