Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Authenticate against identity providers with HTTP requests.

Project description

A simple Python 3 service that accepts HTTP requests with an Authorization header, and authenticates the credentials against an identity backend service, such as LDAP.

This is particularly useful in combination with ngx_http_auth_request_module.


usage: authproxy [-h] [-b BIND] -u URL [--ca-certs-file] [--ca-certs-dir]
                 [--no-verify] [--ldap-user-pattern] [--ldap-member-attr]

Simple HTTP server to proxy authentication requests.

optional arguments:
  -h, --help            show this help message and exit
  -b BIND, --bind BIND  IP:port to bind to (default:
  -u URL, --url URL     URL of auth server (multiple, required)
  --ca-certs-file       Path to CA certs bundle file
  --ca-certs-dir        Path to directory containing CA certs
  --no-verify           Skip TLS verification
  --ldap-user-pattern   User DN string with {} for username
  --ldap-member-attr    User attribute containing group memberships


authproxy -u ldaps://ipa.localdomain.tld \
    --ca-certs-file /etc/ipa/ca.crt \
    --ldap-user-pattern uid={},cn=users,cn=accounts,dc=localdomain,dc=tld

Project details

Release history Release notifications

This version
History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
httpauthproxy-1.0.1-py3-none-any.whl (6.2 kB) Copy SHA256 hash SHA256 Wheel py3 Mar 1, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page