Skip to main content

Simple Authenticator

Project description

authwert

Simple Authenticator

usage: authwert [-h] [--domain DOMAIN] [--rootpath ROOTPATH] [--buildver BUILDVER] 
                [--addr ADDR] [--port PORT] [--logdir LOGDIR] [--logfile LOGFILE] 
                [--verbose] [--debug DEBUG] [--cookieid COOKIEID] [--userinf USERINF] 
                [--scheme SCHEME] [--authfile AUTHFILE] [--authparams AUTHPARAMS] 
                [--prvkey PRVKEY] [--exptime EXPTIME] [--expstr EXPSTR] 
                [--userlist USERLIST] [--algorithm ALGORITHM]

options:
  -h, --help            show this help message and exit
  --domain DOMAIN, -d DOMAIN
                        Domain name
  --rootpath ROOTPATH, -r ROOTPATH
                        Root Path
  --buildver BUILDVER, -b BUILDVER
                        Build Version
  --addr ADDR, -a ADDR  Server address
  --port PORT, -p PORT  Server port
  --logdir LOGDIR, -l LOGDIR
                        Default log directory
  --logfile LOGFILE, -L LOGFILE
                        Default log directory
  --verbose, -V         Verbose mode
  --debug DEBUG, -D DEBUG
                        Debug site
  --cookieid COOKIEID, -k COOKIEID
                        cookieid
  --userinf USERINF, -u USERINF
                        User information
  --scheme SCHEME, -s SCHEME
                        Network Scheme
  --authfile AUTHFILE   Python authorize file
  --authparams AUTHPARAMS
                        Parameters to pass to auth file
  --prvkey PRVKEY       File containing private key to sign JWT tokens
  --exptime EXPTIME     Login expire time in seconds
  --expstr EXPSTR       Login expire time as string
  --userlist USERLIST   Set to always maintain an internal list of active users
  --algorithm ALGORITHM
                        Private key algorithm

Table of contents

 


Install

$ pip3 install authwert

 


Examples

Local test

    authwert \
        --domain=localhost \
        --cookieid="cdec0879-3f2e-48bc-8ecd-92082cbd0639" \
        --scheme=http \
        --userinf='{"admin" : {"password": "secret"}}'

Static user list (please don't deploy this)

    authwert \
        --domain="<domain-for-cookie>" \
        --rootpath="https://<domain-name>/auth" \
        --cookieid="cdec0879-3f2e-48bc-8ecd-92082cbd0639" \
        --userinf='{"admin" : {"password": "secretAdminPassword"}}'

    # OR

    authwert \
        --domain="<domain-for-cookie>" \
        --rootpath="https://<domain-name>/auth" \
        --cookieid="cdec0879-3f2e-48bc-8ecd-92082cbd0639" \
        --userinf='/path/to/json/userlist'

Wordpress integration

    authwert \
        --domain="<domain-for-cookie>" \
        --rootpath="https://<domain-name>/auth" \
        --cookieid="cdec0879-3f2e-48bc-8ecd-92082cbd0639" \
        --authfile="!/etc/auth-example-wordpress.py" \
        --authparams="mariadb://user:pass@localhost/wordpress"

 


References

Project details


Download files

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

Source Distribution

authwert-0.1.10.tar.gz (13.5 kB view details)

Uploaded Source

File details

Details for the file authwert-0.1.10.tar.gz.

File metadata

  • Download URL: authwert-0.1.10.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for authwert-0.1.10.tar.gz
Algorithm Hash digest
SHA256 a956a47d022270e589d58dc3980f2ec4dc944b9a728f1ae05558db396a73e90c
MD5 aa4feee4b06719e0622cc9d9251685c2
BLAKE2b-256 79ebb355f3a9041e1cf6b1a8f13540e8705aaf6a6060d30b4abd5001553e3c5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page