public Task <SecurityAuthenticateResponse> AuthenticateAsync(Action <SecurityAuthenticateRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new SecurityAuthenticateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <SecurityAuthenticateRequestDescriptor, SecurityAuthenticateResponse>(descriptor)); }
public SecurityAuthenticateResponse Authenticate(Action <SecurityAuthenticateRequestDescriptor> configureRequest = null) { var descriptor = new SecurityAuthenticateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <SecurityAuthenticateRequestDescriptor, SecurityAuthenticateResponse>(descriptor)); }