Integrating Django with Express Gateway
Project description
# Express Gateway With Django
Integrating Django with Express Gateway
## Requirements
- Python 3 or later
- Django 2 or later
- Django Rest Framework 3.7 or later
- Requests 2.19 or later
## Installation
Install with pip
```bash
$ pip install django_express_gateway
```
## Getting Started
Add `express_gateway` to your `INSTALLED_APPS`
```python
INSTALLED_APPS = [
...
'express_gateway',
]
```
Add authentication to DRF default authentication settings
```python
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'express_gateway.authentications.AuthUserAuthentication',
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.BasicAuthentication',
),
...
}
```
Finally add the configuration for Centralize Authentication System.
```python
# Config data should get from environment variable
EXPRESS_GATEWAY = {
'URL': 'https://mycas-server.com',
'API_KEY': 'testingApiKey',
'ENDPOINTS': {
'register': '/auth/user/
'token': '/auth/token/',
}
}
```
# History
### 0.0.1
* First stable release on PyPI
Integrating Django with Express Gateway
## Requirements
- Python 3 or later
- Django 2 or later
- Django Rest Framework 3.7 or later
- Requests 2.19 or later
## Installation
Install with pip
```bash
$ pip install django_express_gateway
```
## Getting Started
Add `express_gateway` to your `INSTALLED_APPS`
```python
INSTALLED_APPS = [
...
'express_gateway',
]
```
Add authentication to DRF default authentication settings
```python
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'express_gateway.authentications.AuthUserAuthentication',
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.BasicAuthentication',
),
...
}
```
Finally add the configuration for Centralize Authentication System.
```python
# Config data should get from environment variable
EXPRESS_GATEWAY = {
'URL': 'https://mycas-server.com',
'API_KEY': 'testingApiKey',
'ENDPOINTS': {
'register': '/auth/user/
'token': '/auth/token/',
}
}
```
# History
### 0.0.1
* First stable release on PyPI
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
File details
Details for the file django_express_gateway-0.0.3.tar.gz
.
File metadata
- Download URL: django_express_gateway-0.0.3.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4af09c77a667a71b1afc8100acdc178df6a472065de7914a20ec91cb0b9b6bd2 |
|
MD5 | 4d320e421e2e1d9d7f0e2da84729ea34 |
|
BLAKE2b-256 | a4d59ebc0a1fab6a9116ca46f6826e6c32ab13944138a4d5fd2dfed0fca108c8 |