A Django app to authenticate users passwordless using Passage.
Project description
A Django App that allows you to easilty integrate Passwordless authentication provided by Passage (by 1Password). Leverage a custom PassageUser module over the User module provided by Django but with built-in Passage user integration and token authentication for seamless passwordless authentication via REST APIs.
Setup
Install from pip:
python -m pip install drf-passage-identity
and then add it to your installed apps:
INSTALLED_APPS = [
...,
"passage_auth",
...,
]
Make sure you add the trailing comma or you might get a ModuleNotFoundError (see this blog post).
You will also need to add a path to listen in get responses:
urlpatterns = [
...,
path('api/client/', include("passage_auth.urls")),
...,
]
Configuration
Configure the Passage object in your Django settings. Here, for Header Auth, auth strategy is 2 and for Cookie Auth it is 1. You must set the following settings:
AUTH_USER_MODEL = 'passage_auth.PassageUser'
PASSAGE_APP_ID = "your-app-id"
PASSAGE_API_KEY = "your-api-key"
PASSAGE_AUTH_STRATEGY = 2
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file drf-passage-identity-0.0.3.tar.gz
.
File metadata
- Download URL: drf-passage-identity-0.0.3.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdd98e8bee6b71992dd7a15996be6954d94471c4cdbc83a8bfaff91ea131b2ff |
|
MD5 | 31b0d07af526b2626ec91690c264a9e8 |
|
BLAKE2b-256 | dee882c108efc313c184bcc17514b07dfe7ba04b68373ef5a10fc93f82412670 |
File details
Details for the file drf_passage_identity-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: drf_passage_identity-0.0.3-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f3821865852ab6745c1840c1ff21ef3685f59a9b59a70c50ef674366b782041 |
|
MD5 | 1e411ed8f7526033cbbec67ab32beeb0 |
|
BLAKE2b-256 | 83c8c9ee3adb46804220ae803796a0496da40df5d94ebda4b3146df2d4e4cb43 |