{"id":22072788,"url":"https://github.com/zalkarz/cookie-based-auth","last_synced_at":"2026-03-19T21:37:35.335Z","repository":{"id":175600812,"uuid":"654056921","full_name":"zalkarz/cookie-based-auth","owner":"zalkarz","description":"Cookie-based authentication middleware for Laravel","archived":false,"fork":false,"pushed_at":"2023-06-16T03:04:38.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-28T19:51:43.025Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Blade","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/zalkarz.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":"2023-06-15T09:48:10.000Z","updated_at":"2024-03-01T12:00:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"68dae69f-3acc-43ae-99ae-b03ee3865049","html_url":"https://github.com/zalkarz/cookie-based-auth","commit_stats":null,"previous_names":["zalkarz/cookie-based-auth"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zalkarz/cookie-based-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalkarz%2Fcookie-based-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalkarz%2Fcookie-based-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalkarz%2Fcookie-based-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalkarz%2Fcookie-based-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zalkarz","download_url":"https://codeload.github.com/zalkarz/cookie-based-auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalkarz%2Fcookie-based-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273983017,"owners_count":25202092,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-11-30T21:14:53.779Z","updated_at":"2026-02-14T01:39:57.578Z","avatar_url":"https://github.com/zalkarz.png","language":"Blade","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cookie-based authentication middleware for Laravel.\n\nCookie-based authentication is a Laravel middleware that provides cookie-based authentication functionality. It allows you to secure your application from any access.\n\n## Installation\n\nYou can install this package via Composer. Simply run the following command:\n\n```bash\ncomposer require zalkarz/cookie-based-auth\n```\n\n## Usage\n\nTo use the Cookie-based authentication middleware, follow these steps:\n\n1. Add the middleware to your route or route group in your Laravel application.\n2. Configure the required environment variables for authentication credentials.\n3. Customize the authentication logic if needed.\n\nHere's an example of how to add the middleware to a route group:\n\n```php\nprotected $middlewareGroups = [\n        'web' =\u003e [\n            ...\n            \\Zalkarz\\CookieBasedAuth\\Http\\Middleware\\CookieBasedAuth::class\n        ],\n    ];\n```\n\n## Configuration\nMake sure to set these environment variables in your .env file or your server configuration. \nFor example:\n\n```dotenv\nCOOKIE_BASED_AUTH_USERNAME=johndoe\nCOOKIE_BASED_AUTH_PASSWORD=mypassword\n```\n\n## Contributing\nContributions are welcome! If you find any issues or want to add new features, please submit a pull request.\n\n## License\nThis package is open-source software licensed under the MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzalkarz%2Fcookie-based-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzalkarz%2Fcookie-based-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzalkarz%2Fcookie-based-auth/lists"}