{"id":18423816,"url":"https://github.com/realaravinth/actix-auth-middleware","last_synced_at":"2025-04-13T16:16:15.021Z","repository":{"id":105007982,"uuid":"417585243","full_name":"realaravinth/actix-auth-middleware","owner":"realaravinth","description":"Session management muddleware for actix web","archived":false,"fork":false,"pushed_at":"2022-05-07T06:04:46.000Z","size":3621,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T16:16:11.955Z","etag":null,"topics":["actix-web","authentication-middleware","session-management"],"latest_commit_sha":null,"homepage":"https://realaravinth.github.io/actix-auth-middleware/actix_auth_middleware/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/realaravinth.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","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},"funding":{"open_collective":null,"liberapay":"realaravinth","issuehunt":null,"custom":["https://batsense.net/donate"]}},"created_at":"2021-10-15T17:37:43.000Z","updated_at":"2021-12-17T05:53:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"52f22524-a9b5-42c5-9d64-0d07461ba7ef","html_url":"https://github.com/realaravinth/actix-auth-middleware","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realaravinth%2Factix-auth-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realaravinth%2Factix-auth-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realaravinth%2Factix-auth-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realaravinth%2Factix-auth-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realaravinth","download_url":"https://codeload.github.com/realaravinth/actix-auth-middleware/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741194,"owners_count":21154255,"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","authentication-middleware","session-management"],"created_at":"2024-11-06T04:38:46.297Z","updated_at":"2025-04-13T16:16:14.997Z","avatar_url":"https://github.com/realaravinth.png","language":"Rust","funding_links":["https://liberapay.com/realaravinth","https://batsense.net/donate"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\u003ch1\u003eActix Authentication Middleware\u003c/h1\u003e\n\n[![Documentation](https://img.shields.io/badge/docs-master-blue)](https://realaravinth.github.io/actix-auth-middleware/actix_auth_middleware/)\n[![Build](https://github.com/realaravinth/actix-auth-middleware/actions/workflows/linux.yml/badge.svg)](https://github.com/realaravinth/actix-auth-middleware/actions/workflows/linux.yml)\n[![codecov](https://codecov.io/gh/realaravinth/actix-auth-middleware/branch/master/graph/badge.svg?token=TYZXLOOHYQ)](https://codecov.io/gh/realaravinth/actix-auth-middleware)\n\n[![dependency status](https://deps.rs/repo/github/realaravinth/actix-auth-middleware/status.svg)](https://deps.rs/repo/github/realaravinth/actix-auth-middleware)\n\n  \u003cp\u003e\n    \u003cstrong\u003eChecks if session is authenticated\u003c/strong\u003e\n  \u003c/p\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\n## What\n\nThis library provides a generic middleware to protect authenticated\nroutes from unauthenticated access. The middleware provides options to\ncustomise authentication checking mechanism, which enables it to\nsupport a wide range of session management mechanisms.\n\nIf a session is authenticated, then the request will be dispatched to\nthe matching handler and if unauthenticated, it will be redirected to a\nuser specified route, ideally a sign in route.\n\n## Usage\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies.actix-auth-middleware]\nversion = \"0.2.0\"\ngit = \"https://github.com/realaravinth/actix-auth-middleware\"\n# if using https://crates.io/crates/actix-identity, uncomment the\n#following line:\n#features = [\"actix-identity\"]\n```\n\n## Example\n\n1. Cookie session management:\n   source : [`cookie-identity.rs`](\"./examples/cookie-identity.rs)\n    ```bash\n    cargo run --example cookie-identity\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealaravinth%2Factix-auth-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealaravinth%2Factix-auth-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealaravinth%2Factix-auth-middleware/lists"}