X Tutup
Skip to content

Commit a5f847c

Browse files
author
Frust, Tobias (FWCC) - 111645
committed
add oauth_token to auth function
1 parent d66ef2d commit a5f847c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def auth(self):
179179
The `user` attribute will hold a `gitlab.objects.CurrentUser` object on
180180
success.
181181
"""
182-
if self.private_token:
182+
if self.private_token or self.oauth_token:
183183
self._token_auth()
184184
else:
185185
self._credentials_auth()

0 commit comments

Comments
 (0)
X Tutup