Skip to content

kcm117/python-flask-aad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-Flask-AAD

This solution demonstrates deploying a Python 3.7 Flask application to a Linux Azure App Service, with Azure Active Directory authentication.

For initial setup, run the following code in the directory where you cloned the repo:

# Create Python Environment in root
py -3.7 -m venv venv

# Activate virtual env
venv\Scripts\activate

# Update Pip
python -m pip install --upgrade pip

# Install Flask and Flask-Dance
pip install -r requirements.txt

# Run for local testing
set FLASK_APP=app.py & set FLASK_DEBUG=1 & set OAUTHLIB_INSECURE_TRANSPORT=1 & python -m flask run

Environment Variables:

About

Python Flask app using AAD authenttication

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published