{"id":15021888,"url":"https://github.com/superbrave/auth0-http-client","last_synced_at":"2025-06-14T08:07:51.720Z","repository":{"id":35051130,"uuid":"200184449","full_name":"superbrave/auth0-http-client","owner":"superbrave","description":"Auth0 API client authentication for the Symfony HTTP client.","archived":false,"fork":false,"pushed_at":"2024-03-08T10:38:09.000Z","size":88,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-24T18:07:36.163Z","etag":null,"topics":["auth0","http-client","jwt","machine-to-machine","php","php7","symfony","symfony-component"],"latest_commit_sha":null,"homepage":"","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/superbrave.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":"2019-08-02T07:08:47.000Z","updated_at":"2022-02-28T14:01:22.000Z","dependencies_parsed_at":"2024-03-08T11:54:13.202Z","dependency_job_id":null,"html_url":"https://github.com/superbrave/auth0-http-client","commit_stats":{"total_commits":46,"total_committers":8,"mean_commits":5.75,"dds":0.5,"last_synced_commit":"d315cbc6772f8efc44cfa610bb99f1a36e6cb73a"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbrave%2Fauth0-http-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbrave%2Fauth0-http-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbrave%2Fauth0-http-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbrave%2Fauth0-http-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superbrave","download_url":"https://codeload.github.com/superbrave/auth0-http-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248290041,"owners_count":21078923,"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":["auth0","http-client","jwt","machine-to-machine","php","php7","symfony","symfony-component"],"created_at":"2024-09-24T19:57:11.294Z","updated_at":"2025-04-10T20:32:39.858Z","avatar_url":"https://github.com/superbrave.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth0 HTTP client\n\n[![Latest version on Packagist][ico-version]][link-version]\n[![Software License][ico-license]][link-license]\n[![Build Status][ico-build]][link-build]\n[![Coverage Status][ico-coverage]][link-coverage]\n[![Code Quality][ico-code-quality]][link-code-quality]\n\n[Auth0][link-auth0] API client authentication for the Symfony HTTP client.\n\n## Installation using Composer\nRun the following command to add the package to the composer.json of your project:\n\n``` bash\n$ composer require superbrave/auth0-http-client symfony/http-client\n```\n\nThe `symfony/http-client` can be replaced with any other HTTP client implementing the Symfony HTTP client contracts.\n\n## Usage\nThe following example shows how to create the instances required to do an API call authenticated through Auth0:\n```php\n\u003c?php\n\nuse Superbrave\\AuthZeroHttpClient\\AuthZeroAuthenticatingHttpClient;\nuse Superbrave\\AuthZeroHttpClient\\AuthZeroConfiguration;\nuse Symfony\\Component\\HttpClient\\HttpClient;\n\n$httpClient = HttpClient::create();\n$authZeroConfiguration = new AuthZeroConfiguration(\n    'https://dev-1234.eu.auth0.com', // Your Auth0 tenant URL\n    'clientId',                      // Your application's Client ID\n    'clientSecret',                  // Your application's Client Secret\n    'https://www.superbrave.nl/api'  // The unique identifier of the target API you want to access\n);\n\n$authZeroHttpClient = new AuthZeroAuthenticatingHttpClient($httpClient, $authZeroConfiguration);\n\n$response = $authZeroHttpClient-\u003erequest('GET', 'https://superbrave.nl/api');\n```\n\nOptionally, a custom cache instance can be injected into the `AuthZeroAuthenticatingHttpClient`. The cache will store\nthe access tokens (JWT) for the configured TTL returned by Auth0.\n\n## License\nThe Auth0 HTTP client is licensed under the MIT License. Please see the [LICENSE file][link-license] for details.\n\n[ico-version]: https://img.shields.io/packagist/v/superbrave/auth0-http-client\n[ico-license]: https://img.shields.io/packagist/l/superbrave/auth0-http-client\n[ico-build]: https://scrutinizer-ci.com/g/superbrave/auth0-http-client/badges/build.png?b=master\n[ico-coverage]: https://scrutinizer-ci.com/g/superbrave/auth0-http-client/badges/coverage.png?b=master\n[ico-code-quality]: https://scrutinizer-ci.com/g/superbrave/auth0-http-client/badges/quality-score.png?b=master\n\n[link-version]: https://packagist.org/packages/superbrave/auth0-http-client\n[link-license]: LICENSE\n[link-build]: https://scrutinizer-ci.com/g/superbrave/auth0-http-client/build-status/master\n[link-coverage]: https://scrutinizer-ci.com/g/superbrave/auth0-http-client/build-status/master\n[link-code-quality]: https://scrutinizer-ci.com/g/superbrave/auth0-http-client/build-status/master\n[link-auth0]: https://auth0.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperbrave%2Fauth0-http-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperbrave%2Fauth0-http-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperbrave%2Fauth0-http-client/lists"}