code4mk/kapi

Kauth 是 Laravel API JWT 认证系统

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

This package is auto-updated.

Last update: 2024-09-21 20:10:38 UTC


README

创建 API 应用系统

Kapi 方法

~ 开发者(用户)

  • 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)

~ 管理员/超级管理员/所有者

  • apiAppApproval()
  • apiOauthApproval()
  • apiInfo($appID)
  • apiAllApps() 仅 API 应用
  • apiAllOauth() oauth 列表
  • apiApprove($appID)
  • apiBlock($appID)
  • apiUnblock($appID)
  • apiBlockAppLists()API 应用
  • apiBlockOauthLists() oauth
  • apiDestroy($appID)
  • apiAppLive API 应用
  • apiOauthLive oauth

Koauth 方法

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

~ mk