GithubHelp home page GithubHelp logo

mrudatsprint / fusionauth-quickstart-python-flask-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fusionauth/fusionauth-quickstart-python-flask-web

0.0 0.0 0.0 2.41 MB

License: Other

Python 9.47% CSS 81.89% HTML 8.64%

fusionauth-quickstart-python-flask-web's Introduction

Example Flask Application

This repo holds an example Python/Flask application that uses FusionAuth as the identity provider. This application will use an OAuth Authorization Code Grant workflow to log a user in and get them access and refresh tokens.

This application was built by following the Python/Flask Quickstart.

Project Contents

The docker-compose.yml file and the kickstart directory are used to start and configure a local FusionAuth server.

The /complete-application directory contains a fully working version of the application.

Project Dependencies

  • Docker, for running FusionAuth
  • Python 3.8 or later, for running the Changebank Python application

Running FusionAuth

To run FusionAuth, just stand up the docker containers using docker-compose.

docker-compose up

This will start a PostgreSQL database, and Elastic service, and the FusionAuth server.

Running the Example App

To run the application, first go into the project directory

cd complete-application

Set up a Python virtual env and installing the project dependencies.

python -m venv venv && \
source venv/bin/activate && \
pip install -r requirements.txt

Then use the flask run command to start up the application.

flask --app server.py run

If you're going to be working on the application and want hot reloads of the server code, add the --debug flag.

flask --app server.py --debug run

Visit the local webserver at http://localhost:5000/ and sign in using the credentials:

fusionauth-quickstart-python-flask-web's People

Contributors

aaron-ritter avatar andrewpai avatar bhalsey avatar fusionandy avatar mark-robustelli avatar mooreds avatar rideam 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.