{"repo":"rluders/wn-jwtauth-plugin","free":true,"listed":false,"github":"https://github.com/rluders/wn-jwtauth-plugin","clone":"git clone https://github.com/rluders/wn-jwtauth-plugin.git","description":"JWTAuth Plugin for WinterCMS","language":"PHP","stars":30,"topics":["jwt","jwt-authentication","jwtauth","token","token-authentication","wintercms","wintercms-plugin","hacktoberfest"],"license":"GPL-3.0","category":"auth-billing-email","readme_excerpt":"Introduction This plugin provides a JSON Web Tokens authentication mechanism for Winter CMS integrated with Winter.User . It's essential for your web application built with Angular, Vue.js, React or other modern Javascript frameworks. Requirements - PHP 8.1+ - WinterCMS 1.2+ (Laravel 9) or 1.3+ (Laravel 10) - Winter.User plugin ^2.0 - RLuders.CORS plugin (optional, but recommended) Theme - Angular Skeleton Tutorials - Creating Vue, Vuex and Winter CMS APP - Login and Register by Watch and Learn Installation Configuration You must set a secret token for your application. Do do it, on Winter's Backend access: Settings Users JWTAuth Usage Here's the list of available endpoints for this plugin. If you are using Postman , you can click here to import the collection with all the calls that you need to test it. Login POST /api/auth/login Route name api.auth.login Parameters Name Type Required Description -------- ------ -------- ----------------------- login string Yes Account login attribute password string Yes Account password The field login value can be the account email or username . You can select it on Winter.User configuration what field should be used for login. Responses SUCCESS Code: 200 ERROR Code: 401 Register POST /api/auth/register Route name api.auth.register Parameters Name Type Required Description --------------------- ------ -------- ------------------------ username string No Account username email string Yes Account email password string Yes Account password pa","default_branch":null,"files":null,"tree":[],"storefront":"/r/rluders","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rluders/wn-jwtauth-plugin/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}