{"id":16623898,"url":"https://github.com/markcda/cc-auth","last_synced_at":"2025-10-28T11:31:08.633Z","repository":{"id":242722510,"uuid":"810424253","full_name":"markcda/cc-auth","owner":"markcda","description":"Simple backend authorization system","archived":false,"fork":false,"pushed_at":"2025-01-25T16:24:27.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T17:26:04.593Z","etag":null,"topics":["authentication-middleware","redis"],"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/markcda.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2024-06-04T17:07:05.000Z","updated_at":"2025-01-25T16:24:04.000Z","dependencies_parsed_at":"2024-06-04T17:23:23.951Z","dependency_job_id":"d9cbe357-3a1f-4451-a25d-557bdfe241f2","html_url":"https://github.com/markcda/cc-auth","commit_stats":null,"previous_names":["markcda/cc-auth"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcda%2Fcc-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcda%2Fcc-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcda%2Fcc-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcda%2Fcc-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markcda","download_url":"https://codeload.github.com/markcda/cc-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238642376,"owners_count":19506195,"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":["authentication-middleware","redis"],"created_at":"2024-10-12T03:25:20.537Z","updated_at":"2025-10-28T11:31:08.247Z","avatar_url":"https://github.com/markcda.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cc-auth\n\n[![crates.io][crates-badge]][crates-url]\n[![MIT licensed][mit-badge]][mit-url]\n[![docs.rs][docs-badge]][docs-url]\n\n[crates-badge]: https://img.shields.io/crates/v/cc-auth.svg\n[crates-url]: https://crates.io/crates/cc-auth\n[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg\n[mit-url]: https://github.com/tokio-rs/tokio/blob/master/LICENSE\n[docs-badge]: https://img.shields.io/docsrs/cc-auth\n[docs-url]: https://docs.rs/cc-auth\n\nSimple backend authorization system.\n\n## Simple usage example\n\n```rust\nuse bb8_redis::{RedisConnectionManager, bb8::Pool};\nuse cc_auth::{ApiToken, check_token};\nuse cc_utils::prelude::MResult;\n\npub async fn authorized_action(\n  cacher: \u0026Pool\u003cRedisConnectionManager\u003e,\n  token: ApiToken,\n) -\u003e MResult\u003c()\u003e {\n  let user_id = check_token(\u0026token, cacher).await?;\n  Ok(())\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkcda%2Fcc-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkcda%2Fcc-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkcda%2Fcc-auth/lists"}