Skip to main content

A client for OneID 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.4.tar.gz (3.0 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.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oneid_client-0.1.4.tar.gz
  • Upload date:
  • Size: 3.0 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.4.tar.gz
Algorithm Hash digest
SHA256 2352774a5f08b9ef300317b391f55cb93ceac4067444e0b7447eaf7ce4f00a0c
MD5 7bfcab8184bdd93c0443080de35ca855
BLAKE2b-256 df623263677c79b1552af89e81d35ad8cbfab584f41963b586de38f740daa28f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oneid_client-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fb809eebc4e4390c94454967f7ce250cf88e559300f501f8fe531961a90fabe8
MD5 4c10bd691140c3c1c61df4582a3ede9f
BLAKE2b-256 bc038030ed76379fec5216731b87ec5e9cd17a0bf5ffd7c0b03065014c4f5037

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