How do I do basic authentication with RestClient? September 15, 2023 by Tarik The easiest way is to embed the details in the URL: RestClient.get "http://username:password@example.com"