LEAP Authentication client
This library can be used to authenticate and manage passwords in a LEAP platform. It uses the Secure Remote Password protocol.
To install it:
$ pip install leap.auth
To use it:
from leap.auth import SRPAuth
api_uri = 'https://api.leap.platform:4430/'
ca_cert_path = './path_to_certificate.crt'
# TIP: the certificate is usually at https://api.leap.platform/ca.crt
user = 'username'
password = 'longandsecurepassword'
srp_auth = SRPAuth(api_uri, ca_cert_path)
# register a user
srp_auth.register(user, password)
# authenticate with the defined LEAP server using the registered credentials
auth = srp_auth.authenticate(user, password)
# then you can access:
auth.username
auth.session_id
auth.uuid
auth.token
# changes the authenticated user password using the authentication data
srp_auth.change_password(username, current_password, new_password, auth.token, auth.uuid)
# deletes the session on the server and resets the session locally
srp_auth.logout()
Metadata
Release files for leap.auth 0.1.2
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 |
|---|---|---|---|---|
| leap.auth-0.1.2.tar.gz | 4.7 kB | Without provenance | Details for leap.auth-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| leap.auth-0.1.2-py2-none-any.whl | Python 2 | none | any | Details for leap.auth-0.1.2-py2-none-any.whl |
Total release size: 11.7 kB
Release files / leap.auth-0.1.2.tar.gz
| Download URL | leap.auth-0.1.2.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a29669779dbb10ba14ebaf7eaacb4a20926d4b663c4e70ae391b815a19f1ca74
|
|
BLAKE2b-256 checksum How to use checksums |
a3f5532db5dc37c280a86a785287e8cf0adacf0b55fea7eb2d9303d156daa6ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / leap.auth-0.1.2-py2-none-any.whl
| Download URL | leap.auth-0.1.2-py2-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
8cf2e0ace9e6d6404389c1dfd9b6511391dc5dc26351e115096f2a97cacdd556
|
|
BLAKE2b-256 checksum How to use checksums |
db998087c9403c58945a27f326266e5bae66e5d283288a5be786a9b819ae417c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for leap.auth 0.1.2
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.