{"id":19706751,"url":"https://github.com/unisharp/laravel-oauth2-server","last_synced_at":"2025-07-22T05:33:39.004Z","repository":{"id":66292741,"uuid":"47090378","full_name":"UniSharp/laravel-oauth2-server","owner":"UniSharp","description":"This package is for laravel 5.x, which may help you build an oauth2 server instantly.","archived":false,"fork":false,"pushed_at":"2016-01-27T05:10:41.000Z","size":358,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-03T16:50:11.178Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UniSharp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-30T02:21:41.000Z","updated_at":"2016-02-10T21:32:45.000Z","dependencies_parsed_at":"2023-04-21T11:54:15.432Z","dependency_job_id":null,"html_url":"https://github.com/UniSharp/laravel-oauth2-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UniSharp/laravel-oauth2-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UniSharp%2Flaravel-oauth2-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UniSharp%2Flaravel-oauth2-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UniSharp%2Flaravel-oauth2-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UniSharp%2Flaravel-oauth2-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UniSharp","download_url":"https://codeload.github.com/UniSharp/laravel-oauth2-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UniSharp%2Flaravel-oauth2-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266433678,"owners_count":23927797,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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-11T21:36:52.679Z","updated_at":"2025-07-22T05:33:38.975Z","avatar_url":"https://github.com/UniSharp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Laravel-OAuth2-Server\n===================\n\n### What is this package for? ###\n\n* This package is for laravel 5.0/5.1, which may help you build an oauth2 server instantly.\n* It's based on https://github.com/lucadegasperi/oauth2-server-laravel\n* It implements `Access Token` + `Refresh Token` and a GUI-based client id/secret token generator.\n\n## Setup\n\n1. In `/config/app.php`, add the following to `providers`:\n    ```\n    Unisharp\\Oauth2\\Oauth2ServiceProvider::class,\n    ```\n2. Run `php artisan vendor:publish --provider=\"Unisharp\\Oauth2\\Oauth2ServiceProvider\" --force`.\n   * Because this package will overwrite the config of lucadegasperi/oauth2-server-laravel (sharring the same config file)\n3. Run `php artisan migrate`\n4. In `/config/oath2.php`, here are the default settings\n   * `auth_fields`: user authentication fields binding to your users table\n   * `user_model`: user model that you are going to combine with oauth2 login\n   * `grant_types`: here, we implement the most common way in oauth2 (authorization_code + refresh token)\n   * `client_middleware`: middleware used to protect your clients CRUD interface\n\n## Usage\n\n* Client CRUD: you can manage your oauth clients info here - `/oauth2/client`\n* API protection: just put the middleware `oauth` in the route you'd like to protect\n* Routing reference:\n    * `/oauth2/login`: a login interface for oauth2\n    * `/oauth2/authorize`: for oauth2 process\n    * `/oauth2/token`: for oauth2 process\n    * `/oauth2/resource`: for oauth2 process\n    * `/oauth2/client`: for CRUDing your clients info\n\n\u003e This package hasn't implemented scopes, you need to define your own scopes by yourself.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funisharp%2Flaravel-oauth2-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funisharp%2Flaravel-oauth2-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funisharp%2Flaravel-oauth2-server/lists"}