PamAuthServiceClient
Client for the PamAuthService
Installation
pip install PamAuthServiceClient
Quickstart
Use the PamAuthService running on a unix socket at /run/pam_auth_service.sock.
(If the PamAuthService is running on a network socket use url instead of path)
from pamauthserviceclient.client import PamAuthServiceClient
encryption_key = 'ENCRYPTION KEY'
verification_key = 'VERIFICATION KEY'
path = "/run/pam_auth_service.sock"
# url = "http://127.0.0.1:5000"
client = PamAuthServiceClient(encryption_key, verification_key, path=path)
# client = PamAuthServiceClient(encryption_key, verification_key, url=url)
res = client.authenticate("name", "password")
# None
# if name/password don't match
# {'version': '1.0', 'username': 'name', 'allowed_groups': []}
# if user/password match
allowed_groups = ["group1", "xxx", "yyy", "zzz"]
res2 = client.authenticate("name", "password", allowed_groups)
# {'version': '1.0', 'username': 'name', 'allowed_groups': ['xxx', 'zzz']}
# if user is authorized and member of the 'xxx' and 'zzz' group
# and not member of the other groups.
Metadata
Release files for PamAuthServiceClient 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PamAuthServiceClient-0.3.1.tar.gz | 13.5 kB | Without provenance | Details for PamAuthServiceClient-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PamAuthServiceClient-0.3.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for PamAuthServiceClient-0.3.1-py2.py3-none-any.whl |
Total release size: 19.2 kB
Release files / PamAuthServiceClient-0.3.1.tar.gz
| Download URL | PamAuthServiceClient-0.3.1.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e75075995c7b8546e87e478868a9557f2309ab61fe5be336fc7a5a2911a94cc
|
|
BLAKE2b-256 checksum How to use checksums |
e57ebcf5fabd95e57c7243d1ce04de49a84ded49e2fc013e13a2a93f89ebfac8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.9
|
Release files / PamAuthServiceClient-0.3.1-py2.py3-none-any.whl
| Download URL | PamAuthServiceClient-0.3.1-py2.py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ddb41a8486b8ce53f16d645a735b50ba5d531a4f6113e4b28c23a6fa5e4686db
|
|
BLAKE2b-256 checksum How to use checksums |
84278e7386c080839d6cb4f0d1d8fdc4688dc27a27d54a12edb6153ee5c420ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.9
|
Security for PamAuthServiceClient 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.