Compare commits
No commits in common. "33eb81f3685fa3fe37e351c97632cfe9a76b350d" and "d5a8bb3acd1da5b5e26775813c4a03bdacd9ffe2" have entirely different histories.
33eb81f368
...
d5a8bb3acd
@ -15,7 +15,8 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
recursive-include docs *
|
include docs/*
|
||||||
recursive-exclude docs/build *
|
include docs/source/*
|
||||||
recursive-include tests *
|
include docs/source/_static/*
|
||||||
recursive-exclude tests *.pyc
|
include docs/source/_templates/*
|
||||||
|
include tests/*
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# The Flask HTTP Digest Authentication Project.
|
# The Flask HTTP Digest Authentication Project.
|
||||||
# Author: imacat@mail.imacat.idv.tw (imacat), 2022/11/23
|
# Author: imacat@mail.imacat.idv.tw (imacat), 2022/11/23
|
||||||
|
|
||||||
# Copyright (c) 2022-2023 imacat.
|
# Copyright (c) 2022 imacat.
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
@ -15,39 +15,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
[project]
|
|
||||||
name = "Flask-DigestAuth"
|
|
||||||
version = "0.5.0"
|
|
||||||
description = "The Flask HTTP Digest Authentication project."
|
|
||||||
readme = "README.rst"
|
|
||||||
requires-python = ">=3.7"
|
|
||||||
authors = [
|
|
||||||
{name = "imacat", email = "imacat@mail.imacat.idv.tw"},
|
|
||||||
]
|
|
||||||
keywords = ["flask", "digest-authentication"]
|
|
||||||
classifiers = [
|
|
||||||
"Programming Language :: Python :: 3",
|
|
||||||
"License :: OSI Approved :: Apache Software License",
|
|
||||||
"Operating System :: OS Independent",
|
|
||||||
"Framework :: Flask",
|
|
||||||
"Topic :: System :: Systems Administration :: Authentication/Directory",
|
|
||||||
"Intended Audience :: Developers",
|
|
||||||
]
|
|
||||||
dependencies = [
|
|
||||||
"flask",
|
|
||||||
]
|
|
||||||
|
|
||||||
[project.optional-dependencies]
|
|
||||||
test = [
|
|
||||||
"unittest",
|
|
||||||
"flask-testing",
|
|
||||||
]
|
|
||||||
|
|
||||||
[project.urls]
|
|
||||||
"Documentation" = "https://flask-digestauth.readthedocs.io"
|
|
||||||
"Repository" = "https://github.com/imacat/flask-digestauth"
|
|
||||||
"Bug Tracker" = "https://github.com/imacat/flask-digestauth/issues"
|
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=42"]
|
requires = ["setuptools>=42"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
53
setup.cfg
Normal file
53
setup.cfg
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
# The Flask HTTP Digest Authentication Project.
|
||||||
|
# Author: imacat@mail.imacat.idv.tw (imacat), 2022/11/23
|
||||||
|
|
||||||
|
# Copyright (c) 2022-2023 imacat.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
[metadata]
|
||||||
|
name = Flask-DigestAuth
|
||||||
|
version = 0.5.0
|
||||||
|
author = imacat
|
||||||
|
author_email = imacat@mail.imacat.idv.tw
|
||||||
|
description = The Flask HTTP Digest Authentication project.
|
||||||
|
long_description = file: README.rst
|
||||||
|
long_description_content_type = text/x-rst
|
||||||
|
url = https://github.com/imacat/flask-digestauth
|
||||||
|
project_urls =
|
||||||
|
Bug Tracker = https://github.com/imacat/flask-digestauth/issues
|
||||||
|
classifiers =
|
||||||
|
Programming Language :: Python :: 3
|
||||||
|
License :: OSI Approved :: Apache Software License
|
||||||
|
Operating System :: OS Independent
|
||||||
|
Framework :: Flask
|
||||||
|
Topic :: System :: Systems Administration :: Authentication/Directory
|
||||||
|
Intended Audience :: Developers
|
||||||
|
|
||||||
|
[options]
|
||||||
|
package_dir =
|
||||||
|
= src
|
||||||
|
packages = find:
|
||||||
|
python_requires = >=3.7
|
||||||
|
install_requires =
|
||||||
|
flask
|
||||||
|
tests_require =
|
||||||
|
unittest
|
||||||
|
flask-testing
|
||||||
|
|
||||||
|
[options.packages.find]
|
||||||
|
where = src
|
||||||
|
|
||||||
|
[options.extras_require]
|
||||||
|
flask_login =
|
||||||
|
flask-login
|
@ -336,6 +336,7 @@ class DigestAuth:
|
|||||||
|
|
||||||
app: flask = Flask(__name__)
|
app: flask = Flask(__name__)
|
||||||
auth: DigestAuth = DigestAuth()
|
auth: DigestAuth = DigestAuth()
|
||||||
|
auth.realm = "My Admin"
|
||||||
auth.init_app(app)
|
auth.init_app(app)
|
||||||
|
|
||||||
:param app: The Flask application.
|
:param app: The Flask application.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user