Giter Site home page Giter Site logo

aditya964 / python-integrated-authentication Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/python-integrated-authentication

0.0 0.0 0.0 24 KB

A sample that includes a main Flask app deployed to Azure App Service along with a separate API endpoint deployed to Azure Functions, which are used to demonstrate authentication and authorization on Azure.

License: MIT License

Python 8.89% Batchfile 45.59% Shell 45.52%

python-integrated-authentication's Introduction

Integrated security with Azure Active Directory and Key Vault

This sample accompanies the article Integrated authentication for Python apps with Azure services. The sample specifically contains the code described in the article along with Azure CLI scripts to provision the entire sample in your own Azure subscription.

  • main_app contains a simple Flask main app code that's deployed to Azure App Service. The app has a main page that points to its own open API endpoint that generates a JSON response and writes a message to Azure Queue storage.

  • third_party_api contains code that's deployed to Azure Functions to simulate a third-party REST API that's protected by an access key. The main app API endpoint calls this secured third-party API using the access key obtained from Azure Key Vault.

  • scripts contains provisioning and test scripts using the Azure CLI as described in the next section.

To provision the sample

  1. Install the Azure CLI

  2. Install the Azure Functions Core Tools

  3. Change to the scripts folder:

    cd scripts
  4. Run the provision.cmd (Windows) or provision.sh (macOS/Linux) script. On macOS/Linux, run the script using source command to ensure that environment variables are set up in the current shell session.

    chmod +x provision.sh
    source ./provision.sh
  5. The provisioning script runs test.cmd or test.sh at the end of the process to test the deployed sample. You can run test.cmd or test.sh again to repeat the test.

python-integrated-authentication's People

Contributors

microsoftopensource avatar kraigb avatar microsoft-github-operations[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.