Flask security demo
Project · study · 2024
Flask security demo is a study project exploring Flask-Security, the extension that adds user accounts and roles to a Flask app. In a few files it sets up:
- users and roles stored with SQLAlchemy;
- registration and email confirmation, with mail sent through Flask-Mailman;
- password hashing with a salt, and pages protected behind login.
Secrets and mail settings come from environment variables. He used the same library later in Research OS.
See also
In the knowledge graph
Flask security demo and the 7 things it is linked to. Open any dot for its page, or explore it in the full graph.
As data
Everything on this page is read from triples in the knowledge graph. These are the 20 it states about Flask security demo, and 1 more its ontology implies; the console runs SPARQL over the whole graph, here in your browser.
@prefix id: <https://ask.chaipat.cc/id/> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix cj: <https://ask.chaipat.cc/ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . id:DemoFlaskSecurity a cj:Project ; rdfs:label "Flask security demo" ; cj:description "Demo of authentication and security in Flask." ; cj:context id:OpenSource ; cj:repository "https://github.com/AppleBoiy/demo-flask-security"^^xsd:anyURI ; cj:firstCommit "2024-04-28"^^xsd:date ; cj:lastCommit "2024-05-07"^^xsd:date ; cj:commitCount 4 ; cj:kind "study" ; cj:theme id:ThemeWeb ; cj:uses id:Python , id:Flask , id:SQLAlchemy ; cj:tier 3 ; cj:mentions id:FlaskAuth , id:ResearchOS ; cj:article "https://ask.chaipat.cc/wiki/DemoFlaskSecurity"^^xsd:anyURI ; cj:activeIn id:Y2024 ; cj:activity _:b29 , _:b30 .