{"id":16889978,"url":"https://github.com/mvantellingen/wsgi-basic-auth","last_synced_at":"2025-03-22T08:31:07.255Z","repository":{"id":62589616,"uuid":"46447610","full_name":"mvantellingen/wsgi-basic-auth","owner":"mvantellingen","description":"WSGI Basic HTTP Auth middleware","archived":false,"fork":false,"pushed_at":"2018-02-12T15:54:09.000Z","size":42,"stargazers_count":21,"open_issues_count":1,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-01T14:41:33.063Z","etag":null,"topics":["authentication","python","wsgi"],"latest_commit_sha":null,"homepage":"https://wsgi-basic-auth.readthedocs.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mvantellingen.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-18T21:10:15.000Z","updated_at":"2024-09-30T15:28:17.000Z","dependencies_parsed_at":"2022-11-03T17:01:58.500Z","dependency_job_id":null,"html_url":"https://github.com/mvantellingen/wsgi-basic-auth","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvantellingen%2Fwsgi-basic-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvantellingen%2Fwsgi-basic-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvantellingen%2Fwsgi-basic-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvantellingen%2Fwsgi-basic-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvantellingen","download_url":"https://codeload.github.com/mvantellingen/wsgi-basic-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244198386,"owners_count":20414443,"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":["authentication","python","wsgi"],"created_at":"2024-10-13T16:59:59.716Z","updated_at":"2025-03-22T08:31:06.965Z","avatar_url":"https://github.com/mvantellingen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===============\nWSGI Basic Auth\n===============\n\nReally simple wsgi middleware to provide basic http auth. It is intented to\nwork with environment variables. This makes it simple to use in a docker \ncontext.\n\nStatus\n------\n\n.. image:: https://readthedocs.org/projects/wsgi-basic-auth/badge/?version=latest\n    :target: https://readthedocs.org/projects/wsgi-basic-auth/\n   \n.. image:: https://travis-ci.org/mvantellingen/wsgi-basic-auth.svg?branch=master\n    :target: https://travis-ci.org/mvantellingen/wsgi-basic-auth\n\n.. image:: https://ci.appveyor.com/api/projects/status/im609ng9h29vt89r?svg=true\n    :target: https://ci.appveyor.com/project/mvantellingen/wsgi-basic-auth\n\n.. image:: http://codecov.io/github/mvantellingen/wsgi-basic-auth/coverage.svg?branch=master \n    :target: http://codecov.io/github/mvantellingen/wsgi-basic-auth?branch=master\n\n.. image:: https://img.shields.io/pypi/v/wsgi-basic-auth.svg\n    :target: https://pypi.python.org/pypi/wsgi-basic-auth/\n\n\n\nGetting started\n===============\n\nUsing this module is really simple.  In Django for example edit the wsgi.py\nfile and add the following to the end of the file.\n\n.. code-block:: python\n\n  from wsgi_basic_auth import BasicAuth \n  application = BasicAuth(application) \n  \nNow run docker with the env variable WSGI_AUTH_CREDENTIALS=foo:bar and you have\nto authenticate with username foo and password bar. Multiple credentials are\nseparated with a | (pipe) character.\n\nTo exclude specific paths for healthchecks (e.g. the Amazon ELB healthchecks)\nspecify the environment variable WSGI_AUTH_EXCLUDE_PATHS=/api/healthchecks.\nHere multiple paths can be separated with the ; char.\n\nTo include only specific paths specify the environment variable\nWSGI_AUTH_PATHS. Here multiple paths can be separated with the ; char.\n\nYou can use both include and exclude paths together for example:\nWSGI_AUTH_PATHS=/foo\nWSGI_AUTH_EXCLUDE_PATHS=/foo/bar\nThis will force Basic Auth on all paths under /foo except /foo/bar\n\n\nInstallation \n============\n\nYou can install the latest version using pip::\n\n    pip install wsgi-basic-auth\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvantellingen%2Fwsgi-basic-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvantellingen%2Fwsgi-basic-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvantellingen%2Fwsgi-basic-auth/lists"}