{"id":19339587,"url":"https://github.com/dsferruzza/actix-web-middleware-keycloak-auth","last_synced_at":"2025-06-25T15:07:32.672Z","repository":{"id":42699161,"uuid":"315780860","full_name":"dsferruzza/actix-web-middleware-keycloak-auth","owner":"dsferruzza","description":"A middleware for Actix Web that handles authentication with a JWT emitted by Keycloak","archived":false,"fork":false,"pushed_at":"2024-09-29T10:09:33.000Z","size":154,"stargazers_count":34,"open_issues_count":4,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-26T17:47:15.004Z","etag":null,"topics":["actix-web","actix-web-middleware","authentication","jwt","keycloak","middleware","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dsferruzza.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-24T23:51:46.000Z","updated_at":"2025-04-08T13:02:04.000Z","dependencies_parsed_at":"2023-12-03T13:25:55.307Z","dependency_job_id":"34292c40-9ad0-45f5-9255-7ea849c7e5cb","html_url":"https://github.com/dsferruzza/actix-web-middleware-keycloak-auth","commit_stats":{"total_commits":91,"total_committers":2,"mean_commits":45.5,"dds":0.01098901098901095,"last_synced_commit":"97f730e071beb608a89722a63314b3a3dd4047cb"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/dsferruzza/actix-web-middleware-keycloak-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsferruzza%2Factix-web-middleware-keycloak-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsferruzza%2Factix-web-middleware-keycloak-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsferruzza%2Factix-web-middleware-keycloak-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsferruzza%2Factix-web-middleware-keycloak-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsferruzza","download_url":"https://codeload.github.com/dsferruzza/actix-web-middleware-keycloak-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsferruzza%2Factix-web-middleware-keycloak-auth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261897003,"owners_count":23226648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actix-web","actix-web-middleware","authentication","jwt","keycloak","middleware","rust"],"created_at":"2024-11-10T03:23:02.994Z","updated_at":"2025-06-25T15:07:32.643Z","avatar_url":"https://github.com/dsferruzza.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# actix-web-middleware-keycloak-auth\n\n[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n![Build and test](https://github.com/dsferruzza/actix-web-middleware-keycloak-auth/workflows/Build%20and%20test/badge.svg)\n![Lint](https://github.com/dsferruzza/actix-web-middleware-keycloak-auth/workflows/Lint/badge.svg)\n[![Crates.io Version](https://img.shields.io/crates/v/actix-web-middleware-keycloak-auth.svg)](https://crates.io/crates/actix-web-middleware-keycloak-auth)\n[![Documentation](https://docs.rs/actix-web-middleware-keycloak-auth/badge.svg)](https://docs.rs/actix-web-middleware-keycloak-auth)\n\nA middleware for [Actix Web](https://actix.rs/) that handles authentication with a JWT emitted by [Keycloak](https://www.keycloak.org/).\n\n## Features\n\n- Actix Web middleware\n- deny HTTP requests that do not provide a valid JWT (or choose to allow them and handle the authentication state from a following middleware)\n- require one or several Keycloak realm or client roles to be included in the JWT\n- error HTTP responses sent from the middleware can have generic bodies as well as detailed error reasons\n- access JWT claims from handlers (for example: get the ID of the authenticated user)\n- parse custom JWT claims (using Serde)\n- access parsed roles from handlers (every Keycloak role contained in the JWT)\n- compatible with [paperclip](https://crates.io/crates/paperclip) using the `paperclip_compat` feature\n- 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)\n\n## Usage\n\n- [Documentation](https://docs.rs/actix-web-middleware-keycloak-auth)\n- [Examples](examples/)\n\n## License\n\nMIT License Copyright (c) 2020 David Sferruzza\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsferruzza%2Factix-web-middleware-keycloak-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsferruzza%2Factix-web-middleware-keycloak-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsferruzza%2Factix-web-middleware-keycloak-auth/lists"}