Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.44 KB

File metadata and controls

40 lines (24 loc) · 1.44 KB

Flask/Python: User Authentication Code Sample

This Python code sample demonstrates how to build web applications using Flask.

Visit the "Flask/Python Security: Application Developer Guides" section of the "Auth0 Developer Resources" to explore how you can secure Flask applications written in Python by implementing user authentication with Auth0.

Why Use Auth0?

Auth0 is a flexible drop-in solution to add authentication and authorization services to your applications. Your team and organization can avoid the cost, time, and risk that come with building your own solution to authenticate and authorize users. We offer tons of guidance and SDKs for you to get started and integrate Auth0 into your stack easily.

Set Up and Run the Flask Project

To set up and run the project, you'll have to first set up a new virtual environment

python3 -m venv venv

Then, you can activate the environment:

source venv/bin/activate

And finally install the dependencies:

python -m pip install -r requirements.txt

Run the Project

To run the project and start the web app, make sure you are in the root directory, then run:

flask --app app run --port 4040

Visit http://localhost:4040/ to access the starter web application.