{"id":22092119,"url":"https://github.com/krakphp/lava-oauth2","last_synced_at":"2025-03-23T23:44:58.440Z","repository":{"id":57009012,"uuid":"90219907","full_name":"krakphp/lava-oauth2","owner":"krakphp","description":"Lava OAuth2 Integration","archived":false,"fork":false,"pushed_at":"2017-05-04T05:38:49.000Z","size":10,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T06:52:25.072Z","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/krakphp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-05-04T03:57:05.000Z","updated_at":"2017-05-04T05:29:40.000Z","dependencies_parsed_at":"2022-08-21T14:31:36.835Z","dependency_job_id":null,"html_url":"https://github.com/krakphp/lava-oauth2","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krakphp%2Flava-oauth2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krakphp%2Flava-oauth2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krakphp%2Flava-oauth2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krakphp%2Flava-oauth2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krakphp","download_url":"https://codeload.github.com/krakphp/lava-oauth2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245186925,"owners_count":20574554,"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-12-01T03:08:22.706Z","updated_at":"2025-03-23T23:44:58.411Z","avatar_url":"https://github.com/krakphp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lava OAuth2\n\nThis library provides OAuth2 integration with the Krak\\\\Lava framework. It uses the `league/oauth2-server` package for all of the heavy lifting and the Doctrine ORM for the backend.\n\n## Installation\n\nInstall with composer at `krak/lava-oauth2`\n\n## Usage\n\n```php\n\u003c?php\n\nuse Krak\\LavaOAuth2;\n\n$app-\u003ewith(new LavaOAuth2\\OAuth2Package());\n$app['krak.lava_oauth2']['private_key'] = $app-\u003ebasePath('oauth-private.key');\n$app['krak.lava_oauth2']['public_key'] = $app-\u003ebasePath('oauth-public.key');\n$app['krak.lava_oauth2']['grants'] = [\n    'client_credentials' =\u003e true,\n    'access_token_ttl' =\u003e new \\DateInterval('PT2H'),\n];\n\n$app-\u003ehttpStack()-\u003epush($app['krak.lava_oauth2']['resource_server_middleware']);\n$app-\u003ehttpStack()-\u003epush(mount('/oauth', $app['krak.lava_oauth2']));\n```\n\nThis configures the lava_oauth2 application and adds the oauth2 server and middleware onto the main application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrakphp%2Flava-oauth2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrakphp%2Flava-oauth2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrakphp%2Flava-oauth2/lists"}