code4mk/kapi

Kauth is laravel api jwt auth system

dev-master 2019-04-03 10:17 UTC

This package is auto-updated.

Last update: 2024-11-21 20:28:14 UTC


README

Create API app system

Kapi methods

~ developer(user)

  • create($userID,$image)
  • update($appID,$authUserID,$image)
  • showAuthUserApps(userID)
  • showAuthUserOauth($userID)
  • getAppInfo($appID,$authUserID)
  • destroyApp($appID,$authUserID)
  • refreshSecret($appID,$authUserID)
  • activeApp($appID,$authUserID)
  • deactiveApp($appID,$authUserID)

~ admin/super-admin/owner

  • apiAppApproval()
  • apiOauthApproval()
  • apiInfo($appID)
  • apiAllApps() only api apps
  • apiAllOauth() oauth lists
  • apiApprove($appID)
  • apiBlock($appID)
  • apiUnblock($appID)
  • apiBlockAppLists()api app
  • apiBlockOauthLists() oauth
  • apiDestroy($appID)
  • apiAppLive api app
  • apiOauthLive oauth

Koauth method

  • checkApp()
  • appInfo()
  • checkOauth($appID,$authUserID)
  • acceptApp($appID,$authUserID)
  • sendEncrypToken($authUserID)
  • decrypToken($token)
  • authUserOauth($authUserID)
  • revoke($oauthID,$authUserID)
  • revokeAll($authUserID)

~mk