Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 583 Bytes

File metadata and controls

21 lines (18 loc) · 583 Bytes

SimpleAuthProvider

Простая реализация (затычка) Auth Provider. Для создания аккаунтов загляните в Main#verifyPassword.

Авторизация с этим скриптом выглядит вот так:

"auth": [
  {
    "provider": {
      "type": "request",
      "usePermission": true,
      "flagsEnabled": false,
      "url": "http://localhost:8001/auth?username=%login%&password=%password%&ip=%ip%",
      "response": "OK:(?<username>.+):(?<permissions>.+)"
    }
  }
]

Автор - https://thelivan.ru/