You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,11 @@ A middleware for [Actix Web](https://actix.rs/) that handles authentication with
11
11
## Features
12
12
13
13
- Actix Web middleware
14
-
- deny HTTP requests that do not provide a valid JWT
14
+
- deny HTTP requests that do not provide a valid JWT (or choose to allow them and handle the authentication state from a following middleware)
15
15
- require one or several Keycloak realm or client roles to be included in the JWT
16
16
- error HTTP responses sent from the middleware can have generic bodies as well as detailed error reasons
17
17
- access JWT claims from handlers (for example: get the ID of the authenticated user)
18
+
- parse custom JWT claims (using Serde)
18
19
- access parsed roles from handlers (every Keycloak role contained in the JWT)
19
20
- compatible with [paperclip](https://crates.io/crates/paperclip) using the `paperclip_compat` feature
20
21
- store auth status in request-local data instead of returning a HTTP response (so that the next middleware/handler can try another auth mechanism, for example)
0 commit comments