Skip to content

Commit 875f626

Browse files
author
Fabien Coelho
committed
require FlaskSimpleAuth 33
1 parent 0651b52 commit 875f626

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dev = [
3838
# packaging
3939
"build", "twine", "wheel",
4040
# tests
41-
"types-flask", "types-requests", "FlaskSimpleAuth>=30.0", "passlib", "bcrypt", "pydantic"
41+
"types-flask", "types-requests", "FlaskSimpleAuth>=33.0", "passlib", "bcrypt", "pydantic"
4242
]
4343
# documentation generation
4444
doc = ["sphinx", "sphinx_rtd_theme", "sphinx-autoapi", "sphinx-lint", "myst_parser"]

tests/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import secret
55

66
# create application with token, param and basic authentication
7-
app = fsa.Flask("app", FSA_MODE="dev", FSA_AUTH=["token", "param", "basic"])
7+
app = fsa.Flask("app", FSA_MODE="dev", FSA_AUTH=["token", "param", "basic", "none"])
88

99
# authentication with randomly-generated passwords
1010
PASSDB: dict[str, str] = {login: app.hash_password(pwd) for login, pwd in secret.PASSES.items()}

tests/app2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
def create_app():
77

8-
app = fsa.Flask("app", FSA_MODE="dev", FSA_AUTH=["basic", "param"])
8+
app = fsa.Flask("app", FSA_MODE="dev", FSA_AUTH=["basic", "param", "none"])
99

1010
# app password, group and other data
1111
PASSDB = {login:app.hash_password(pw) for login, pw in secret.PASSES.items()}

0 commit comments

Comments
 (0)