grantor-django
Sign in with Grantor from Django — an OAuth 2.1 / OpenID Connect provider.
pip install grantor-django # session sign-in
pip install grantor-django[drf] # + a DRF API that answers to an access token
pip install grantor-django[admin] # + a Django admin with no local password
INSTALLED_APPS = [..., "grantor_django"]
GRANTOR_ISSUER = "https://acme.api.grantor.id"
GRANTOR_CLIENT_ID = env("GRANTOR_CLIENT_ID")
GRANTOR_CLIENT_SECRET = env("GRANTOR_CLIENT_SECRET")
GRANTOR_CALLBACK_BASE_URL = "https://app.example.com"
urlpatterns = [path("auth/", include("grantor_django.urls"))]
Every endpoint — authorization, token, JWKS, end-session — is read from the issuer's discovery document. The issuer is the only string you configure.
Documentation: docs.grantor.id. Source and security policy: Grantor-id/grantor-python.
MIT. © Allure Labs.
Release files for grantor-django 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| grantor_django-0.1.3.tar.gz | 48.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| grantor_django-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 84.1 kB
Release files / grantor_django-0.1.3.tar.gz
| Download URL | grantor_django-0.1.3.tar.gz |
|---|---|
| Size | 48.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e3843f21b1099cdc6c8fc1fb04685d4f29d27ff0a8bb2e2717707c99794dcb1
|
|
BLAKE2b-256 checksum How to use checksums |
dbdc0c0a28f9f9ae5c9594d1d444ab942edcff221672ffc10d6a5b499017f558
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logRelease files / grantor_django-0.1.3-py3-none-any.whl
| Download URL | grantor_django-0.1.3-py3-none-any.whl |
|---|---|
| Size | 35.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ecc7edf823c0fdb7c92b197bd3d9dc71860ac946b3256b4e5b4d5ae7dd6d9f5
|
|
BLAKE2b-256 checksum How to use checksums |
e0a5df978dc3efb7aa77f4165472738d9e5f1b533a7285d07aa0e5d71a6554d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency log