Skip to main content

Python client for OneID SSO authentication

Project description

OneID Client for Python

A lightweight Python client for authenticating users and retrieving user data using the OneID SSO platform via OAuth2.

🔧 Installation

From PyPI:

pip install oneid-client

From source:

git clone https://github.com/justbackend/oneid-client.git

🚀 Usage Example

Initialize the OneID client

from oneid import OneID

one_id = OneID(
    url="https://sso.egov.uz/sso/oauth/Authorization.do",
    client_id='your_client_name',
    client_secret='your_client_secret',
    redirect_uri='your_redirect_url'
)

# Get user info using the authorization code
user = one_id.get_user_info(code='a3eed750-fec6-4544-910a-52e2ce020797')

# Access the user's full name
print(user.full_name)

🧩 Features 🔐 OAuth2 Authorization Code flow for OneID

🔄 Automatic access token retrieval

👤 Fetch structured user data with a simple interface

📦 Easy integration in any FastAPI, Django, or standalone Python project

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

oneid_client-0.1.1.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oneid_client-0.1.1-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oneid_client-0.1.1.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for oneid_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e46dad8776657e704c102f6f694c2ccf027fa8b579dd49f9a1ade8b42c094a65
MD5 b62f11c8a9733aa477b4daced818ebb8
BLAKE2b-256 a1c603b49d0ee9e9beaac4b1a5407b0ce5491278527bbc29fbcdf7e2846066a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oneid_client-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for oneid_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c728f05e19204951c2b3d5c7a3eabbd7cf5db7e706e1fd81cf44ebccb891160
MD5 a17186830814fe1829118cc479d78c13
BLAKE2b-256 31d10a9f8f76c196ce6719ee69ef2370ab220a05c2e9a283b1df8f6e77c2ae23

See more details on using hashes here.

Supported by

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