Skip to main content

Socian Auth Python SDK for authentication and user management

Project description

Socian Auth Python SDK

Version License Python Versions

Overview

The Socian Auth Python SDK provides a convenient way to interact with the Socian Auth API for authentication and user management.

Installation

You can install the library using pip:

pip install socian-auth

Usage

Initialization

from socian_auth import SocianAuthApiClient

client = SocianAuthApiClient(
    client_id="your_client_id",
    client_secret="your_client_secret",
    ssh_public_key="your_ssh_public_key"
)

Getting Intent

intent_obj = client.get_intent("auth.signIn", "http://localhost:3000/auth/callback")
print(intent_obj)

Checking User Existence

email = "example@example.com"
is_user_exist = client.check_user_exists(intent_id=intent_obj.intent_id, email=email)
print(is_user_exist)

User Signup

user_info = client.user_signup(intent_id=intent_obj.intent_id, name="John Doe", email=email, password="password123")
print(user_info)

User Signin

login_data = client.user_signin(email=email, password="password123")
print(login_data)

User Information

user_info = client.user_info(access_token=login_data.access_token)
print(user_info)

Documentation

For more details and API documentation, please refer to Socian Auth SDK Documentation.

Contributing

If you find any issues or have suggestions for improvement, please open an issue or create a pull request on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

socian_auth-0.0.8.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

socian_auth-0.0.8-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file socian_auth-0.0.8.tar.gz.

File metadata

  • Download URL: socian_auth-0.0.8.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for socian_auth-0.0.8.tar.gz
Algorithm Hash digest
SHA256 c98e020fd06eb44192a2fc6cf4639ce2bb8860072cad57dbd5a41d0c38f1ba31
MD5 275d777477ffc8a34585b1a7938649d2
BLAKE2b-256 19458324110f23c6f12398f51232d529e7eb7fc16bb106cc9bcbcdb0749ba1b2

See more details on using hashes here.

File details

Details for the file socian_auth-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: socian_auth-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for socian_auth-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 886298cc5a55a2ff081f64713c1c60ef79d7f5a1d85704b38daf48e65c0fba86
MD5 f4e8708094bc3c654218b6e327fa2712
BLAKE2b-256 a873224df1d09842e1e83f08f58c7ce15fbaa3a0aa05a008bd9f1902a99907d7

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