Django app to integrate your project in the ids infrastructure.
### Installation
You can get django-idshost from PyPi:
```bash
pip install django-idshost
```
### Configure
To use the app you should add it to your `INSTALLED_APPS` in `settings.py`.
```python
INSTALLED_APPS = (
...
'django_idshost',
...
)
```
Django-idshost custom the backend, the midleware and the model of the django user, so you have to override these datas in the `settings.py`.
```python
AUTHENTICATION_BACKENDS = (
'django_idshost.auth.idsauth.IdsRemoteUserBackend', #use to authenticate an ids user
'django.contrib.auth.backends.ModelBackend',#if you want to keep the default authentication, keep this line
)
MIDDLEWARE_CLASSES = (
...
'django_idshost.auth.idsauth.IdsHeaderMiddleware',#allow the specific http header use by ids to transmit the authenticate user
...
)
AUTH_USER_MODEL = 'django_idshost.IdsUser'
```
You should also add your ids datas in the `settings.py`. These datas are transmited by ids.
```python
DJANGO_IDSHOST_SETTINGS = {
'APP_NAME': '...', #the name of the app 'xxx.idshost.fr'
'PRIVATE_IP': '...',#the private ip of your server in the ids infrastructure
}
```
Metadata
Release files for django-idshost 0.1.0
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 | Actions |
|---|---|---|---|---|
| django-idshost-0.1.0.tar.gz | 10.0 kB | Without provenance | Details for django-idshost-0.1.0.tar.gz |
Release files / django-idshost-0.1.0.tar.gz
| Download URL | django-idshost-0.1.0.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67c9dcbcc354387333624dbff49554a6bd75034b078123795664c4dce1df05c4
|
|
BLAKE2b-256 checksum How to use checksums |
a244f44c5534fa1ad52f03c65951b0659461f94e66770b9a066b62dd6276f599
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-idshost 0.1.0
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.