{"repo":"descope/django-descope","free":true,"listed":false,"github":"https://github.com/descope/django-descope","clone":"git clone https://github.com/descope/django-descope.git","description":"Descope plugin for Django framework","language":"Python","stars":52,"topics":["django","authentication","descope","python","app","sdk","plugin"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Descope Django App Descope is a user management and authentication platform. This plugin integrates Descope with your Django app. Quick start 1. Sign up for Descope and set admin roles - Get your project id - Create two roles in Descope, that will be mapped to Django permissions - is staff - is superuser Map these roles to any user you would like to make a staff or superuser in your Django app. The names of these roles can be customized in the settings below. 2. Install \"django-descope\" and add to your INSTALLED APPS setting like this: 3. Add Descope Middleware after the AuthenticationMiddleware and SessionMiddleware 4. Include descope URLconf in your project urls.py like this: 5. In your site templates, insert the descope flow tag where you want to place your flow 6. Start the development server and visit the newly created view Testing See test admin.py for a rudimentary example of how to utilize Descope Test Users when testing your application with authenticated users. You can use the helper django descope.authentication.add tokens to request to add the tokens to the django session Local development Set DESCOPE PROJECT ID and DESCOPE MANAGEMENT KEY before running tests that create Descope test users. [!IMPORTANT] Remember you must create the relevant roles in Descope Console so you can utilize them in your testing. Settings The following settings are available to configure in your project settings.py Required Optional","default_branch":null,"files":null,"tree":[],"storefront":"/r/descope","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/descope/django-descope/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}