{"id":39856974,"url":"https://github.com/dmt-software/auth-middleware","last_synced_at":"2026-01-18T13:52:56.136Z","repository":{"id":56970320,"uuid":"123990536","full_name":"dmt-software/auth-middleware","owner":"dmt-software","description":"Authentication and authorization middleware for psr-7 request","archived":false,"fork":false,"pushed_at":"2019-02-11T20:16:50.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T04:45:44.873Z","etag":null,"topics":["authentication","psr-7"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/dmt-software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-05T23:07:05.000Z","updated_at":"2019-04-12T09:45:47.000Z","dependencies_parsed_at":"2022-08-21T10:50:44.181Z","dependency_job_id":null,"html_url":"https://github.com/dmt-software/auth-middleware","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dmt-software/auth-middleware","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmt-software%2Fauth-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmt-software%2Fauth-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmt-software%2Fauth-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmt-software%2Fauth-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmt-software","download_url":"https://codeload.github.com/dmt-software/auth-middleware/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmt-software%2Fauth-middleware/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28537277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T13:04:05.990Z","status":"ssl_error","status_checked_at":"2026-01-18T13:01:44.092Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["authentication","psr-7"],"created_at":"2026-01-18T13:52:55.454Z","updated_at":"2026-01-18T13:52:56.120Z","avatar_url":"https://github.com/dmt-software.png","language":"PHP","readme":"# Auth-middleware\n\n[![Build Status](https://travis-ci.org/dmt-software/auth-middleware.svg?branch=master)](https://travis-ci.org/dmt-software/auth-middleware)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/dmt-software/auth-middleware/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/dmt-software/auth-middleware/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/dmt-software/auth-middleware/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/dmt-software/auth-middleware/?branch=master)\n\n## Install\n`composer require dmt-software/auth-middleware`\n\n## Usage\n\n### Example using GuzzleHttp\\Client\n\n```php\n\u003c?php\n \nuse DMT\\Auth\\Authorization\\ApiToken;\nuse DMT\\Auth\\AuthorizationMiddleware;\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Handler\\CurlHandler;\nuse GuzzleHttp\\HandlerStack;\nuse GuzzleHttp\\Middleware;\n \n$stack = new HandlerStack();\n$stack-\u003esetHandler(new CurlHandler());\n$stack-\u003epush(Middleware::mapRequest(new AuthorizationMiddleware(new ApiToken('abc123abc123'))));\n \n$client = new Client([\n    'handler' =\u003e $stack\n]);\n \n$response = $client-\u003eget('https://api.localhost.dev'); // api token is added before the request is sent.\n\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmt-software%2Fauth-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmt-software%2Fauth-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmt-software%2Fauth-middleware/lists"}