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
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: 127.0.0.1:8018) -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
Example
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file httpauthproxy-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: httpauthproxy-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1cbf4cf51aa9b417d5908ea02d1baf6c97640272f17606a84f2be68b35eee4e |
|
MD5 | 4f06069e459e56ff4a368fe52e03ef00 |
|
BLAKE2b-256 | 71ab63d4894b1aa1f2d22ae614b3995e81ed371dc38775c8f1b6c51b8ef76a26 |