{"id":16889707,"url":"https://github.com/jonashaag/httpauth","last_synced_at":"2025-03-22T08:31:05.652Z","repository":{"id":3885516,"uuid":"4972566","full_name":"jonashaag/httpauth","owner":"jonashaag","description":"WSGI HTTP Digest Auth middleware","archived":false,"fork":false,"pushed_at":"2024-05-29T09:47:15.000Z","size":30,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T08:13:59.377Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonashaag.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-07-10T10:51:17.000Z","updated_at":"2024-07-12T07:50:39.000Z","dependencies_parsed_at":"2024-05-29T11:06:02.917Z","dependency_job_id":"b4952401-7b2f-43d5-a786-0de222b3d033","html_url":"https://github.com/jonashaag/httpauth","commit_stats":{"total_commits":34,"total_committers":3,"mean_commits":"11.333333333333334","dds":0.05882352941176472,"last_synced_commit":"842663f2198c6b5eaab3e4c1344c57e6e7973384"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashaag%2Fhttpauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashaag%2Fhttpauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashaag%2Fhttpauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashaag%2Fhttpauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonashaag","download_url":"https://codeload.github.com/jonashaag/httpauth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244931480,"owners_count":20534007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T16:58:30.851Z","updated_at":"2025-03-22T08:31:05.351Z","avatar_url":"https://github.com/jonashaag.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"httpauth\n========\n\na WSGI middleware that secures some/all routes using HTTP Digest Authentication.\n\n.. image:: https://travis-ci.org/jonashaag/httpauth.svg?branch=master\n    :target: https://travis-ci.org/jonashaag/httpauth\n\n\nInstallation\n------------\n::\n\n   pip install httpauth\n\n\nUsing with credentials dictionary\n---------------------------------\n::\n\n   secured_wsgi_app = httpauth.DictHttpAuthMiddleware(\n      {'user1': 'password1', 'user2': 'password2'},\n      wsgi_app=unsecured_wsgi_app,\n      #realm='Secured Content', # optional\n   )\n\n\nUsing with a ``.htdigest`` file\n-------------------------------\n::\n\n   secured_wsgi_app = httpauth.DigestFileHttpAuthMiddleware(\n      open('/path/to/your/.htdigest'),\n      wsgi_app=unsecured_wsgi_app,\n   )\n\n``.htdigest`` files can be created using the ``htdigest`` Apache tool.\n\n\nSecuring only some URLs\n-----------------------\nIf given, the ``routes`` parameter (a list of regular expressions) specifies\nthe URLs to be secured.  (By default, all URLs are secured.)\n\n::\n\n   secured_wsgi_app = httpauth.DictHttpAuthMiddleware(\n      {'user': 'password'},\n      wsgi_app=unsecured_wsgi_app,\n      routes=['^/admin/', '^/another/secret/page/$'],\n   )\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonashaag%2Fhttpauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonashaag%2Fhttpauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonashaag%2Fhttpauth/lists"}