Skip to main content

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


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)

Uploaded Source

Built Distribution

ssoacehpython-0.1.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page