ssoacehpython
Client SDK untuk bahasa pemograman Python
Install
pip install ssoacehpython
Contoh penggunaan
from ssoacehpython import ssoclient
# get token dari POST
token = request.POST.get('token')
# load sso_secure.json
sso = ssoclient.SSOClient("/path/ke/sso_secure.json")
result = sso.ParseToken(token)
print(result.SessionID)
print(result.NIK)
print(result.NIP)
print(result.Nama)
print(result.HP)
print(result.Email)
print(result.TelegramID)
print(result.EmailAlternatif)
print(result.Avatar)
print(result.Datetime)
return JsonResponse({
'status': 'success' if result.valid else 'error'
})
Release files for ssoacehpython 0.1.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 | |
|---|---|---|---|
| ssoacehpython-0.1.1.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ssoacehpython-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / ssoacehpython-0.1.1.tar.gz
| Download URL | ssoacehpython-0.1.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4168cd3c1c6f61bf6f53465390c0fe5300358fb196989992e02e684dd96d0a8b
|
|
BLAKE2b-256 checksum How to use checksums |
4dadf54a089c7c647ccae75f27045961702f8100d5d6d1f7131f11b86fe9a42b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3
|
Release files / ssoacehpython-0.1.1-py3-none-any.whl
| Download URL | ssoacehpython-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e2d3df434daadbcc79fc33bd77ced090fd16f7d2d946e46f1bcb8e4eabd73aa
|
|
BLAKE2b-256 checksum How to use checksums |
ac4fe430da4c98949c65d478c4e6f13eca0caafc5d2f65d2b7e776497437fad5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3
|