milibytes / phase-4-flask-auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask Authentication

Learning Goals

  • Use the session object to authenticate a user

  • Securely store the password in a hash

  • Use the session object to determine when a user is logged in

  • Authorize only certain resources depending on whether a user is logged in

Getting Started

Fork / clone the repo and run

pipenv install

To start the client, create a separate terminal and run:

npm install --prefix client
npm start --prefix client

To start the server in another terminal:

pipenv shell
cd server
flask db upgrade
python app.py

Additional Resources

MDN Using HTTP Cookies

Flask Session

React Proxying API Requests

Python Generating Secrets

About


Languages

Language:Python 51.4%Language:JavaScript 31.0%Language:HTML 9.3%Language:CSS 5.6%Language:Mako 2.7%