public bool Authorize(ref string message)
        {
            string admin_bearer_token = HTTPHandler.GetBearerToken(ref data);

            if (!string.IsNullOrEmpty(admin_bearer_token))
            {
                if (AdminPanel.CheckAvalibleToken(ref admin_bearer_token, ref message))
                {
                    Logger.WriteLog("Admin token was authorize successfully.", LogLevel.Warning);
                    return(true);
                }
                else
                {
                    Logger.WriteLog(message, LogLevel.Warning);
                    return(false);
                }
            }
            else
            {
                Logger.WriteLog("Server can't get bearer token from request.", LogLevel.Warning);
                message = "Server can't get bearer token from request.";
                return(false);
            }
        }
 public string GetBearerToken()
 {
     BearerToken = HTTPHandler.GetBearerToken(ref data);
     return(BearerToken);
 }