summaryrefslogtreecommitdiff
path: root/docs/api-usage.rst
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-10-23 22:04:08 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2016-10-23 22:04:08 +0200
commitf8080db8c8913c8002c8ebe310533fc518514075 (patch)
tree0fd84c5fc1212db07b566262c11a8db1890ecd3e /docs/api-usage.rst
parentb15f17b6d2008ee658cf9206aa37faaf966a521b (diff)
downloadgitlab-oauth.tar.gz
Add support for OAuth2 authenticationoauth
Diffstat (limited to 'docs/api-usage.rst')
-rw-r--r--docs/api-usage.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/api-usage.rst b/docs/api-usage.rst
index b33913d..4c4ad19 100644
--- a/docs/api-usage.rst
+++ b/docs/api-usage.rst
@@ -24,6 +24,9 @@ To connect to a GitLab server, create a ``gitlab.Gitlab`` object:
# private token authentication
gl = gitlab.Gitlab('http://10.0.0.1', 'JVNSESs8EwWRx5yDxM5q')
+ # oauth authentication
+ gl = gitlab.Gitlab('http://10.0.0.1', my_oauth2_token)
+
# or username/password authentication
gl = gitlab.Gitlab('http://10.0.0.1', email='jdoe', password='s3cr3t')