public bool Auth(string token) { _logger.LogInformation("Authenticate a partners"); string username = token.Substring(0, token.IndexOf('|')); string password = token.Substring(token.IndexOf('|') + 1, (token.Length - 1) - (token.IndexOf('|'))); bool result = _partnerService.Authenticate(username, password); return(result); }
public override Internal.PartnerModule.Responses.PartnerAuthenticateResponse ExecuteInternal( Internal.PartnerModule.Requests.PartnerAuthenticateRequest internalRequest) { return(_partnerService.Authenticate(internalRequest)); }