lpotthast / axum-keycloak-auth

Protect axum routes with a JWT emitted by Keycloak.
https://crates.io/crates/axum-keycloak-auth
Apache License 2.0
34 stars 13 forks source link

Changed response codes in error case #22

Closed Tockra closed 3 months ago

Tockra commented 5 months ago

Attention this could break current implementations.

Associated with #21

401: MissingAuthorizationHeader, InvalidAuthorizationHeader, MissingBearerToken, NoDecodingKeys, InvalidToken, Decode

403: InvalidToken, MissingExpectedRole

Tockra commented 3 months ago

@lpotthast what do you think?

lpotthast commented 3 months ago

Sieht gut aus! Danke für die Änderung.