Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

OpenID Connect authentication support for Django

Project description

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.


  • Python 3.6+. Python 2 is not supported, and won’t ever get supported.
  • Django 1.10+


pip install django-gitlab-auth

INSTALLED_APPS += ['django_gitlab_auth']

urlpatterns += [
    url(r'^accounts/login/', include('django_gitlab_auth.urls')),



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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-gitlab-auth, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size django_gitlab_auth-0.1.1-py3-none-any.whl (13.5 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page