| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,9 +23,6 @@ To connect to a GitLab server, create a ``gitlab.Gitlab`` object: | |||
| 23 | 23 | import os | |
| 24 | 24 | gl = gitlab.Gitlab('http://10.0.0.1', job_token=os.environ['CI_JOB_TOKEN']) | |
| 25 | 25 | ||
| 26 | - # username/password authentication (for GitLab << 10.2) | ||
| 27 | - gl = gitlab.Gitlab('http://10.0.0.1', email='jdoe', password='s3cr3t') | ||
| 28 | - | ||
| 29 | 26 | # anonymous gitlab instance, read-only for public resources | |
| 30 | 27 | gl = gitlab.Gitlab('http://10.0.0.1') | |
| 31 | 28 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,8 +60,6 @@ class Gitlab(object): | |||
| 60 | 60 | private_token (str): The user private token | |
| 61 | 61 | oauth_token (str): An oauth token | |
| 62 | 62 | job_token (str): A CI job token | |
| 63 | - email (str): The user email or login. | ||
| 64 | - password (str): The user password (associated with email). | ||
| 65 | 63 | ssl_verify (bool|str): Whether SSL certificates should be validated. If | |
| 66 | 64 | the value is a string, it is the path to a CA file used for | |
| 67 | 65 | certificate validation. | |
@@ -203,9 +201,7 @@ def from_config(cls, gitlab_id=None, config_files=None): | |||
| 203 | 201 | ) | |
| 204 | 202 | ||
| 205 | 203 | def auth(self): | |
| 206 | - """Performs an authentication. | ||
| 207 | - | ||
| 208 | - Uses either the private token, or the email/password pair. | ||
| 204 | + """Performs an authentication using private token. | ||
| 209 | 205 | ||
| 210 | 206 | The `user` attribute will hold a `gitlab.objects.CurrentUser` object on | |
| 211 | 207 | success. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments