{"id":20877422,"url":"https://github.com/flusherdock1/jwtauth","last_synced_at":"2025-05-12T15:32:54.089Z","repository":{"id":42486841,"uuid":"416882129","full_name":"FlusherDock1/JWTAuth","owner":"FlusherDock1","description":"JWTAuth plugin for October CMS","archived":false,"fork":false,"pushed_at":"2024-06-25T09:39:41.000Z","size":63,"stargazers_count":12,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-20T11:19:36.312Z","etag":null,"topics":["cms","october","octobercms","plugin"],"latest_commit_sha":null,"homepage":"https://octobercms.com/plugin/reazzon-jwtauth","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/FlusherDock1.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":"2021-10-13T20:02:44.000Z","updated_at":"2024-04-08T16:53:11.000Z","dependencies_parsed_at":"2022-09-03T07:25:09.964Z","dependency_job_id":null,"html_url":"https://github.com/FlusherDock1/JWTAuth","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlusherDock1%2FJWTAuth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlusherDock1%2FJWTAuth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlusherDock1%2FJWTAuth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlusherDock1%2FJWTAuth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FlusherDock1","download_url":"https://codeload.github.com/FlusherDock1/JWTAuth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253766070,"owners_count":21960840,"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":["cms","october","octobercms","plugin"],"created_at":"2024-11-18T06:56:58.828Z","updated_at":"2025-05-12T15:32:53.838Z","avatar_url":"https://github.com/FlusherDock1.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JWTAuth plugin for Lovata.Buddies and RainLab.User*\n*RainLab.User support will be added soon.\n\nThis plugin adds to your application functionality to authenticate with JWT tokens easily, no additional settings or code required.\n\n## Requirements\n\n- PHP 7.4 and higher\n- October CMS v2 and higher\n\n## Installation\n\n1. Install plugin via terminal in your enviroment:\n```bash\nphp artisan plugin:install ReaZzon.JWTAuth\n```\n\n2. Generate JWT Secret:\n```bash\nphp artisan jwt:secret\n```\n\n## Middleware\n\nTo use JWT Middleware, put `ResolveUser` middleware in your routes. Example below:\n\n```php\nRoute::group(['middleware' =\u003e [\\ReaZzon\\JWTAuth\\Http\\Middlewares\\ResolveUser::class]], function () {\n\n  // Routes only for authenticated users\n  \n});\n```\n\nor \n\n```php\nRoute::get('account', function () {\n\n   // Logic that should be available only for authenticated users\n   \n})-\u003emiddleware(\\ReaZzon\\JWTAuth\\Http\\Middlewares\\ResolveUser::class);\n```\n\n## Routes\n\n- **POST** `/jwt/login` - Login route\n- **POST** `/jwt/register` - Registration route\n- **POST** `/jwt/activate` - Activation route (if activation set to mail)\n- **POST** `/jwt/refresh` - Refresh route\n\n## Suggestions, Ideas, Issues, Bugs\n\n\nWe are open to your suggestions and ideas in public repository of this plugin [GitHub](https://github.com/FlusherDock1/JWTAuth)\n\n\n---\n© 2021, Nick Khaetsky and Vladimir Pyankov under the [MIT license](https://opensource.org/licenses/MIT).\n\nRussian October CMS comminuty [OctoClub](https://octoclub.ru/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflusherdock1%2Fjwtauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflusherdock1%2Fjwtauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflusherdock1%2Fjwtauth/lists"}