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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file ssoacehpython-0.1.1.tar.gz.

File metadata

  • Download URL: ssoacehpython-0.1.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for ssoacehpython-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4168cd3c1c6f61bf6f53465390c0fe5300358fb196989992e02e684dd96d0a8b
MD5 e357b983ecd36ece1ab654cad648127c
BLAKE2b-256 4dadf54a089c7c647ccae75f27045961702f8100d5d6d1f7131f11b86fe9a42b

See more details on using hashes here.

File details

Details for the file ssoacehpython-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ssoacehpython-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for ssoacehpython-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7e2d3df434daadbcc79fc33bd77ced090fd16f7d2d946e46f1bcb8e4eabd73aa
MD5 0b1e47688be8ffdcbd018291be4246fb
BLAKE2b-256 ac4fe430da4c98949c65d478c4e6f13eca0caafc5d2f65d2b7e776497437fad5

See more details on using hashes here.

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