A Django app that handles the communication between the IDP and the products for the authorization of users.
Project description
Add “idp_user” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'idp_user', ]
Add the settings of the app in settings.py like this:
APP_ENV = "development"/"staging"/"production" IDP_USER_APP = { "APP_IDENTIFIER": "str", "ROLES": "path.to.roles_choices", "USE_LOCAL_IDP_IN_DEV": True, "USER_UPDATES_TOPIC_NAME": f"{APP_ENV}_user_updates", "FAUST_APP_PATH": "backend.kafka_consumer.app", "OPA_DOMAIN": os.getenv("OPA_DOMAIN"), "OPA_VERSION": os.getenv("OPA_VERSION"), "IDP_URL": os.getenv("IDP_URL"), "USE_REDIS_CACHE": True, "ALLOWED_PATHS": ["/", "..."], "USE_OPA": True }
Run python manage.py migrate to create the models.
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
django_idp_user-0.4.7.tar.gz
(10.8 kB
view hashes)
Built Distribution
Close
Hashes for django_idp_user-0.4.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9976dfc4d28c7ce3c9e238628d5b50f5fd90818e09a1a063697371079b344919 |
|
MD5 | 1f0f8e2d71bc9306330e29b5eabf413d |
|
BLAKE2b-256 | da464885ac176c7b8f214a182d283381f755c01b96bfc8ecfe8009412ea54c41 |