{"id":25239139,"url":"https://github.com/denver-code/auth-extension","last_synced_at":"2025-04-05T19:38:04.609Z","repository":{"id":275057388,"uuid":"924937897","full_name":"denver-code/auth-extension","owner":"denver-code","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-30T22:54:24.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T18:13:45.563Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/denver-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-01-30T22:53:10.000Z","updated_at":"2025-01-30T22:54:28.000Z","dependencies_parsed_at":"2025-01-30T23:27:42.389Z","dependency_job_id":null,"html_url":"https://github.com/denver-code/auth-extension","commit_stats":null,"previous_names":["denver-code/auth-extension"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denver-code%2Fauth-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denver-code%2Fauth-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denver-code%2Fauth-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denver-code%2Fauth-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denver-code","download_url":"https://codeload.github.com/denver-code/auth-extension/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393555,"owners_count":20931809,"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":[],"created_at":"2025-02-11T18:13:51.854Z","updated_at":"2025-04-05T19:38:04.561Z","avatar_url":"https://github.com/denver-code.png","language":"Rust","readme":"# Auth Extension for CoreX-API\n\n**Auth Extension** is a plugin for the [CoreX-API](https://crates.io/crates/corex-api) framework. It provides an authentication endpoint for your modular API system.\n\n## Installation\n\nAdd `auth-extension` to your `Cargo.toml`:\n\n```toml\n[dependencies]\nauth-extension = { git = \"https://github.com/denver-code/auth-extension\" }\ntokio = { version = \"1\", features = [\"full\"] }\ncorex-api = \"0.1.1\"\n```\n\n## Usage\n\n1. Register the `AuthExtension` with your CoreX-API system:\n\n```rust\nuse auth_extension::AuthExtension;\nuse corex_api::CoreX;\nuse std::sync::Arc;\n\n#[tokio::main]\nasync fn main() {\n    let host = \"0.0.0.0\".to_string();\n    let port = 3000;\n    let mut core = CoreX::new(host, port);\n\n    core.register_extension(Arc::new(AuthExtension));\n\n    core.run().await;\n}\n```\n\n2. Start the server and test the `/auth` endpoint:\n\n```bash\ncurl http://localhost:3000/auth\n```\n\nResponse:\n\n```json\n{\n  \"message\": \"Auth endpoint\"\n}\n```\n\n## License\n\nThis project is licensed under:\n\n- **MIT License** ([LICENSE-MIT](LICENSE-MIT))\n\n\n## Contributing\n\nContributions are welcome! If you'd like to contribute, please:\n\n1. Fork the repository.\n2. Create a new branch for your feature or bugfix.\n3. Submit a pull request.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenver-code%2Fauth-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenver-code%2Fauth-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenver-code%2Fauth-extension/lists"}