Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_express_gateway-0.0.3.tar.gz (6.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page