Skip to main content

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.

Requirements

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

  • Django 1.10+

Installation

pip install django-gitlab-auth

settings.py

INSTALLED_APPS += ['django_gitlab_auth']

urls.py

urlpatterns += [
    url(r'^accounts/login/', include('django_gitlab_auth.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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_gitlab_auth-0.1.1-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file django_gitlab_auth-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: django_gitlab_auth-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for django_gitlab_auth-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b74e543a3f43c7a1aa153b197d72c7b7f91f7f3d8ba33bfcb3ad6f087e85b081
MD5 810ebfd24797cb8bad9511d2a58dd615
BLAKE2b-256 15ae95e3fef68f52abef6d477a2df26bb9ecfcc0a16d5af955f7da9d540fde34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page