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
.. code-block:: bash
$ pip install django_express_gateway
---------------
Getting Started
---------------
Add `express_gateway` to your `INSTALLED_APPS`
.. code-block:: python
INSTALLED_APPS = [
...
'express_gateway',
]
Add authentication to DRF default authentication settings
.. code-block:: 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.
.. code-block:: 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.0 (2018-07-31)
------------------
* First release on PyPI.
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
.. code-block:: bash
$ pip install django_express_gateway
---------------
Getting Started
---------------
Add `express_gateway` to your `INSTALLED_APPS`
.. code-block:: python
INSTALLED_APPS = [
...
'express_gateway',
]
Add authentication to DRF default authentication settings
.. code-block:: 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.
.. code-block:: 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.0 (2018-07-31)
------------------
* First 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
Close
Hashes for django_express_gateway-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c15e5a76765dc12e5b53ae822c659147c18242bf0437e35014ede48000bbd77 |
|
MD5 | a872aba634b5cd23210627502b57cff5 |
|
BLAKE2b-256 | 723427926b684ff6e9092fbb025b628be5319ba50ffa3f99c320b71234196aaf |