Net::Http user domain automatically supplied on basic_auth

Is it possible to automatically supply the user domain that is currently
logged on Windows/Linux on a Net::Http request?