Authentication Service Backend
A django rest authentication service backend that handles storage of users account and authentication of their identities.
Endpoints
Here are it's key features:
- Register
- Login (JWT)
- Login (Refresh JWT)
- Request Email
- Verify Email (Uid & Token)
- Logout
- Change Password
- Reset Password
- Reset Password Complete
- Suspend User
API Schema
Download and Import the schema to your favourite API testing tool (postman, insomnia, etc) to get the endpoints and expected payload.
Requirements
- Python (3.8, 3.9.*)
- Django (2.2, 3.0, 3.1, 3.2, 4.*)
Quick Start
1). Install using pip:
pip install django-authentication-service
2). Add authentication_service to your INSTALLED_APPS setting:
INSTALLED_APPS = [
...
"authentication_service",
]
Make sure that you have djangorestframework, djangorestframework-simplejwt and drf-yasg installed in your apps.
INSTALLED_APPS = [
# django installed apps
...
# already added to installed_apps
"rest_framework",
"rest_framework.authtoken",
"rest_framework_simplejwt",
# this will help document the apis using either swagger or redoc
"drf_yasg",
# new line
"authentication_service",
]
3). Configure the AUTH_USER_MODEL in the setting:
AUTH_USER_MODEL = "authentication_service.AccountUser"
4). Register the account user model to the admin; if you don't want to - set it to False:
REGISTER_USER_MODEL = True # this will show the user model on the django admin
5). In order to use the pre-built email templates, you'd have to include the name of your site (or product name) and the contact email:
AUTHENTICATION_SERVICE = {
"site_name": "Authentication Service",
"contact_email": "contact@authentication-service.com"
}
6). Include the authentication_service URLs in your project urls.py:
path('auth/', include('authentication_service.urls')),
7). Run python manage.py migrate to create new migrations based on the changes on the model.
8). Start the development server:
python manage.py runserver 8080
Documentation & Support
If you find a code smell, or bad practice(s) anywhere while exploring through the codebase - kindly create an issue stating what it is; or fix the code smell, bad practice or whatever it is you found. As the saying goes, multiple heads are better than one. winks
License
Disclaimer: Everything you see here is open and free to use as long as you comply with the license. There are no hidden charges. We promise to do our best to fix bugs and improve the code quality.
Metadata
Release files for django-authentication-service 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-authentication-service-0.0.2.tar.gz | 69.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_authentication_service-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 145.0 kB
Release files / django-authentication-service-0.0.2.tar.gz
| Download URL | django-authentication-service-0.0.2.tar.gz |
|---|---|
| Size | 69.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab408115166b9100444f8b76e8f782856c447200ef224cbc0fec50af6da0821b
|
|
BLAKE2b-256 checksum How to use checksums |
6f7e9e5f3a91af69723b8f8521526a1fbe3a8067fd7e8f07362fc990408ac632
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / django_authentication_service-0.0.2-py3-none-any.whl
| Download URL | django_authentication_service-0.0.2-py3-none-any.whl |
|---|---|
| Size | 75.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6bfeb518a159206fdcd4757087456025b44eeffa5528f073bba0b1509f5aa826
|
|
BLAKE2b-256 checksum How to use checksums |
f08a5b85e7d2e8938a6f6b41f1714e5e6d46f46ea60a973fa894bfcd94b995c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Security for django-authentication-service 0.0.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.