MAGMA Indonesia Authentication
Project description
magma-auth
Python package for MAGMA Authentication
Install module
Check here: https://pypi.org/project/magma-auth/
pip install magma-auth
Import module
from magma_auth import auth
Login using username and password
This will save (encrypted) your username and password.
auth.login(
username="<USERNAME>",
password="<PASSWORD"
)
Renew or re-login
auth.renew()
Save your token
auth.save_token("<TOKEN>")
Get your token
auth.token
Get token expired time
auth.expired_at
Validate and check your token
This will check and validate token from MAGMA server.
from magma_auth import validate_token
validate_token(token)
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
magma_auth-1.0.1.tar.gz
(6.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file magma_auth-1.0.1.tar.gz.
File metadata
- Download URL: magma_auth-1.0.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c43d6aa6dd0f0e03ddd62f87ea613ab9a8e1a7edcf20506f6386c616e1db4727
|
|
| MD5 |
d16c1be25d20f27a40cdfd2249e50749
|
|
| BLAKE2b-256 |
400d3264991faeaf22808a136d03d01a3123cabd92c46d9151a13b547bf7128c
|
File details
Details for the file magma_auth-1.0.1-py3-none-any.whl.
File metadata
- Download URL: magma_auth-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6657b6355ee8be539183b1d7d5635fa85842b1f18034b67753b8bddc17360f09
|
|
| MD5 |
de90d8c984763eb86faf20112c081ead
|
|
| BLAKE2b-256 |
97d3e0ff1e6aefefeefd6dc94cf73f34cd3eb9d3b67d2f8a2d1e1e447be5856c
|