SSO Aceh client for python language
Project description
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'
})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ssoacehpython-0.1.1.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for ssoacehpython-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e2d3df434daadbcc79fc33bd77ced090fd16f7d2d946e46f1bcb8e4eabd73aa |
|
MD5 | 0b1e47688be8ffdcbd018291be4246fb |
|
BLAKE2b-256 | ac4fe430da4c98949c65d478c4e6f13eca0caafc5d2f65d2b7e776497437fad5 |