This is a Django login view that authenticates against GitLab.
Use it if you own a single GitLab instance that you want to use as a OAuth Authentication Server between multiple apps.
See also django-auth-oidc.
Requirements
Python 3.6+. Python 2 is not supported, and won’t ever get supported.
Django 1.10+
Installation
pip install django-auth-gitlab
settings.py
INSTALLED_APPS += ['django_auth_gitlab']
urls.py
urlpatterns += [
url(r'^accounts/login/', include('django_auth_gitlab.urls')),
]
Configuration
GitLab
App’s redirect URI: http(s)://app-domain/accounts/login/callback
App’s environment variables
GITLAB_SERVER - Gitlab Server URL - with trailing slash.
GITLAB_CLIENT_ID - Client ID received from GitLab
GITLAB_CLIENT_SECRET - Client secret received from GitLab
Metadata
Release files for django-auth-gitlab 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-auth-gitlab-0.1.0.tar.gz | 13.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_auth_gitlab-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.7 kB
Release files / django-auth-gitlab-0.1.0.tar.gz
| Download URL | django-auth-gitlab-0.1.0.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a7873a10be0f607b9f9c2b001c799bd9facf8d7cc8b1d967ad42643fccf1fbf
|
|
BLAKE2b-256 checksum How to use checksums |
4fc5eb0a005010ac4fc071bff67811c92074f72bb27081142bbf50b7a0a248a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_auth_gitlab-0.1.0-py3-none-any.whl
| Download URL | django_auth_gitlab-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ccc7dc20b59ea05b4b63e6cd743d3b5466fb3e3209d4d224837110c36868004
|
|
BLAKE2b-256 checksum How to use checksums |
3fc901f7ec390fdc729eb161e1133981e4f107a3e1f31cad2cc3316bf55b18d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |