Skip to content

Commit 5a31d0a

Browse files
committed
chore: release v0.4.0
1 parent 736f56a commit 5a31d0a

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## v0.4.0
4+
5+
- switch to Actix Web 4 (Actix Web 3 is no longer supported)
6+
- handle extraction and parsing of custom JWT claims
7+
- add a way to access parsed roles from handlers (every Keycloak role contained in the JWT)
8+
- add compatibility with the paperclip crate (under the `paperclip_compat` feature)
9+
- add passthrough policy setting to allow auth to be optional
10+
- add a `KeycloakAuth::default_with_pk()` helper function to initialize the middleware with default settings
11+
- improve extractors error types
12+
- expose a pure function to extract custom JWT claims from an Actix Web request
13+
- update to Rust 2021 edition
14+
315
## v0.4.0-beta.2
416

517
- support Actix Web 4.0.0-beta.10

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "actix-web-middleware-keycloak-auth"
3-
version = "0.4.0-beta.2"
3+
version = "0.4.0"
44
authors = ["David Sferruzza <[email protected]>"]
55
edition = "2021"
66
description = "A middleware for Actix Web that handles authentication with a JWT emitted by Keycloak"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ A middleware for [Actix Web](https://actix.rs/) that handles authentication with
1111
## Features
1212

1313
- 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)
1515
- require one or several Keycloak realm or client roles to be included in the JWT
1616
- error HTTP responses sent from the middleware can have generic bodies as well as detailed error reasons
1717
- access JWT claims from handlers (for example: get the ID of the authenticated user)
18+
- parse custom JWT claims (using Serde)
1819
- access parsed roles from handlers (every Keycloak role contained in the JWT)
1920
- compatible with [paperclip](https://crates.io/crates/paperclip) using the `paperclip_compat` feature
2021
- 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

Comments
 (0)