@@ -529,7 +529,10 @@ def delete(self, obj, id=None, **kwargs):
529
529
params = params ,
530
530
headers = headers ,
531
531
verify = self .ssl_verify ,
532
- timeout = self .timeout )
532
+ timeout = self .timeout ,
533
+ auth = requests .auth .HTTPBasicAuth (
534
+ self .http_username ,
535
+ self .http_password ))
533
536
except Exception as e :
534
537
raise GitlabConnectionError (
535
538
"Can't connect to GitLab server (%s)" % e )
@@ -576,7 +579,10 @@ def create(self, obj, **kwargs):
576
579
r = self .session .post (url ,data = data ,
577
580
headers = headers ,
578
581
verify = self .ssl_verify ,
579
- timeout = self .timeout )
582
+ timeout = self .timeout ,
583
+ auth = requests .auth .HTTPBasicAuth (
584
+ self .http_username ,
585
+ self .http_password ))
580
586
except Exception as e :
581
587
raise GitlabConnectionError (
582
588
"Can't connect to GitLab server (%s)" % e )
@@ -626,7 +632,10 @@ def update(self, obj, **kwargs):
626
632
r = self .session .put (url ,data = data ,
627
633
headers = headers ,
628
634
verify = self .ssl_verify ,
629
- timeout = self .timeout )
635
+ timeout = self .timeout ,
636
+ auth = requests .auth .HTTPBasicAuth (
637
+ self .http_username ,
638
+ self .http_password ))
630
639
except Exception as e :
631
640
raise GitlabConnectionError (
632
641
"Can't connect to GitLab server (%s)" % e )