{"id":17957534,"url":"https://github.com/itinance/slim-basic-auth-pass-through","last_synced_at":"2025-04-03T17:32:17.964Z","repository":{"id":56994256,"uuid":"179630549","full_name":"itinance/slim-basic-auth-pass-through","owner":"itinance","description":"An extension on top of slim-basic-auth, that basically passes through any auth data to the request","archived":false,"fork":false,"pushed_at":"2019-04-05T07:24:43.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T11:29:24.119Z","etag":null,"topics":[],"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/itinance.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}},"created_at":"2019-04-05T06:32:51.000Z","updated_at":"2021-04-09T08:02:39.000Z","dependencies_parsed_at":"2022-08-21T10:40:44.968Z","dependency_job_id":null,"html_url":"https://github.com/itinance/slim-basic-auth-pass-through","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itinance%2Fslim-basic-auth-pass-through","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itinance%2Fslim-basic-auth-pass-through/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itinance%2Fslim-basic-auth-pass-through/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itinance%2Fslim-basic-auth-pass-through/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itinance","download_url":"https://codeload.github.com/itinance/slim-basic-auth-pass-through/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247046717,"owners_count":20874708,"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":"2024-10-29T10:55:31.223Z","updated_at":"2025-04-03T17:32:17.940Z","avatar_url":"https://github.com/itinance.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pass Through Basic Authentication\n\n\nA Decorator for HttpBasicAuthentication that passes through any user with password and make it available\nto the controller (e.g. to be reused for Proxy-API's).\n\nIt is based on [HttpBasicAuthentication](https://github.com/tuupola/slim-basic-auth). Any parameters, that the constructor of HttpBasicAuthentication excepts,\ncan be passed to PassThroughHttpBasicAuthentication also.\n \n## Example:\n \n \n```\nuse itinance\\Middleware\\PassThroughHttpBasicAuthentication\n\n$app = new \\Slim\\App($config);\n\n$app-\u003eadd(new PassThroughHttpBasicAuthentication([\n    \"realm\" =\u003e \"Protected\",\n]));\n\n// Define app routes\n$app-\u003epost('/soapProxy/{methodName}', function (\\Slim\\Http\\Request $request, \\Slim\\Http\\Response $response, $args) {\n\n    $user = $params['PHP_AUTH_USER'];\n    $pass = $params['PHP_AUTH_PW'];\n\n    // Proxy-Call to another API with Username and Password happens here\n    // ...proxyCall($user, $pass, ...)\n});\n\n// Run app\n$app-\u003erun();\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitinance%2Fslim-basic-auth-pass-through","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitinance%2Fslim-basic-auth-pass-through","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitinance%2Fslim-basic-auth-pass-through/lists"}