Skip to content

Salman-TCM/auth

Repository files navigation

Auth0 Python Web App Sample

This sample demonstrates how to add authentication to a Django web app using Auth0.

Check the Django Quickstart to better understand this sample.

Running the App

To run the application:

  1. Make sure you have python3, pip installed.
  2. Rename .env.example to .env and populate it with the client ID, domain, secret.
  3. Register http://localhost:3000/callback as Allowed Callback URLs and http://localhost:3000 as Allowed Logout URLs in your app settings.

Once you've set those variables:

  1. Install the needed dependencies with pip install -r requirements.txt
  2. Run python3 manage.py migrate to migrate the database schema
  3. Run python3 manage.py runserver 3000 to run the server.

The app will be served at http://localhost:3000/.

Running the App with Docker

To run the sample with docker:

  1. Rename the .env.example file to .env, change the environment variables, and register the URLs as explained previously.
  2. Run sh exec.sh to build and run the docker image in Linux or run .\exec.ps1 to build and run the docker image on Windows.

The app will be served at http://localhost:3000/.

What is Auth0?

Auth0 helps you to:

  • Add authentication with multiple authentication sources, either social like Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, among others, or enterprise identity systems like Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider.
  • Add authentication through more traditional username/password databases.
  • Add support for linking different user accounts with the same user.
  • Support for generating signed JSON Web Tokens to call your APIs and flow the user identity securely.
  • Analytics of how, when and where users are logging in.
  • Pull data from other sources and add it to the user profile, through JavaScript rules.

Create a free account in Auth0

  1. Go to Auth0 and click Sign Up.
  2. Use Google, GitHub or Microsoft Account to login.

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.

Author

Auth0

License

This project is licensed under the MIT license. See the LICENSE file for more info.

auth

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published