Skip to main content

OpenID Connect authentication support for Django

Project description

https://badge.fury.io/py/django-auth-gitlab.svg

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

Project details


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_auth_gitlab-0.1.0-py3-none-any.whl (5.5 kB) Copy SHA256 hash SHA256 Wheel 3.6
django-auth-gitlab-0.1.0.tar.gz (13.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page