All Projects → code4mk → kauth

code4mk / kauth

Licence: other
🔑 kauth is JWT API Authentication ( jwt-auth ) for laravel

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to kauth

Jwt Auth Guard
JWT Auth Guard for Laravel and Lumen Frameworks.
Stars: ✭ 319 (+2178.57%)
Mutual labels:  auth, jwt-auth
Lara Vue Auth
A repo for laravel vue authentication tutorial.
Stars: ✭ 54 (+285.71%)
Mutual labels:  auth, jwt-auth
jwt-auth
JSON Web Token Authentication for Thinkphp
Stars: ✭ 113 (+707.14%)
Mutual labels:  auth, jwt-auth
supabase-ui-svelte
Supabase authentication UI for Svelte
Stars: ✭ 83 (+492.86%)
Mutual labels:  auth
casbin-ex
An authorization library that supports access control models like ACL, RBAC, ABAC in Elixir
Stars: ✭ 37 (+164.29%)
Mutual labels:  auth
MyTelegramOrgRoBot
telegram.dog/usetgxbot
Stars: ✭ 94 (+571.43%)
Mutual labels:  auth
restify-jwt-community
Restify middleware that validates a JsonWebToken
Stars: ✭ 24 (+71.43%)
Mutual labels:  auth
ExpressJS-SocketIO-Boilerplate
📦 Simple Express.js & Socket.io Boilerplate
Stars: ✭ 31 (+121.43%)
Mutual labels:  auth
pstore
🔧 Middleware for keeping track of users, login states and permissions, using the HSTORE feature in PostgreSQL
Stars: ✭ 28 (+100%)
Mutual labels:  auth
react-material-kit
React Material Kit - Built with Automation Tools | AppSeed App Generator
Stars: ✭ 17 (+21.43%)
Mutual labels:  jwt-auth
permissionbolt
🔩 Middleware for keeping track of users, login states and permissions
Stars: ✭ 81 (+478.57%)
Mutual labels:  auth
littleca
littleca是一个基于BC的小型ca库,支持ecc,rsa,dsa,sm2的证书签发,加密解密,签名验签操作,支持国密加解密,证书签发
Stars: ✭ 44 (+214.29%)
Mutual labels:  auth
auth
www.yiiframework.com/
Stars: ✭ 28 (+100%)
Mutual labels:  auth
blueauth
🔐 Serverless passwordless authentication. No databases needed. Use in just 1 line in serverless, middleware, express, next.js, and more.
Stars: ✭ 56 (+300%)
Mutual labels:  auth
auth-jwt
www.yiiframework.com/
Stars: ✭ 28 (+100%)
Mutual labels:  auth
yii-auth-client
Yii Framework external authentication via OAuth and OpenID Extension
Stars: ✭ 20 (+42.86%)
Mutual labels:  auth
laravel-livewire-ui
Laravel Livewire UI, Auth, & CRUD starter kit.
Stars: ✭ 92 (+557.14%)
Mutual labels:  auth
Database-Web-API
Dynamically generate RESTful APIs from the contents of a database table. Provides JSON, XML, and HTML. Supports most popular databases
Stars: ✭ 37 (+164.29%)
Mutual labels:  auth
JwtAuthDemo
ASP.NET Core + Angular JWT auth demo; integration tests; login, logout, refresh token, impersonation, authentication, authorization; run on Docker Compose.
Stars: ✭ 278 (+1885.71%)
Mutual labels:  jwt-auth
MacOSX-FileSystem-Filter
A file system filter for Mac OS X
Stars: ✭ 72 (+414.29%)
Mutual labels:  kauth

kauth

kauth

kauth is JWT API Authentication ( jwt-auth ) for laravel

Installation

you can install kauth package by command

composer require code4mk/kauth

Setup

1) Vendor publish.

php artisan vendor:publish --provider="Kauth\KauthServiceProvider" --tag=config
php artisan vendor:publish --provider="Kauth\KauthServiceProvider" --tag=migations

2) Config setup

  • config\kauth.php

  • set token_header_name that you can use with guzzle or axios header

  • default token_header_name name is tokon

Usage

Kauth::attempt() functions

  • guard('name')
// guard name will be user table name
Kauth::guard("users")
  • socialite()->attempt()
// laravel socialite system
// credential will be only email
Kauth::guard("users")->socialite()
        ->attempt(["email"=>"[email protected]"]);
  • normal attempt()
// your all desired credentials
// password credentail need
Kauth::guard("users")
  ->attempt(["email"=>"[email protected]","password"=>1234])

~ attempt() return a jwt token which you pass with request header (ex:axios header)

attempt special

  • username credential will be optional as (id|email|username) . (ex: facebook username)
  • usernames describe which columns you want to match for username
attempt(["usernames"=>["id","email","name"],"username"=>"request query for username","password=>123456"]);

Kauth::check()

Kauth::check();

Kauth::id()

Kauth::id();

Kauth::refreshToken()

Kauth::refreshToken()

Kauth::logout()

Kauth::logout();

Kauth::logoutOtherDevices()

Kauth::logoutOtherDevices();

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].