Skip to content

Commit 7843ace

Browse files
authored
Merge pull request #1000 from matusf/update-auth-docs
Update auth docs
2 parents df485a9 + c9329bb commit 7843ace

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

docs/api-usage.rst

-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ To connect to a GitLab server, create a ``gitlab.Gitlab`` object:
2323
import os
2424
gl = gitlab.Gitlab('http://10.0.0.1', job_token=os.environ['CI_JOB_TOKEN'])
2525
26-
# username/password authentication (for GitLab << 10.2)
27-
gl = gitlab.Gitlab('http://10.0.0.1', email='jdoe', password='s3cr3t')
28-
2926
# anonymous gitlab instance, read-only for public resources
3027
gl = gitlab.Gitlab('http://10.0.0.1')
3128

gitlab/__init__.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ class Gitlab(object):
6060
private_token (str): The user private token
6161
oauth_token (str): An oauth token
6262
job_token (str): A CI job token
63-
email (str): The user email or login.
64-
password (str): The user password (associated with email).
6563
ssl_verify (bool|str): Whether SSL certificates should be validated. If
6664
the value is a string, it is the path to a CA file used for
6765
certificate validation.
@@ -211,9 +209,7 @@ def from_config(cls, gitlab_id=None, config_files=None):
211209
)
212210

213211
def auth(self):
214-
"""Performs an authentication.
215-
216-
Uses either the private token, or the email/password pair.
212+
"""Performs an authentication using private token.
217213
218214
The `user` attribute will hold a `gitlab.objects.CurrentUser` object on
219215
success.

0 commit comments

Comments
 (0)