Socian Auth Python SDK
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.
Metadata
Release files for socian-auth 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| socian_auth-0.0.8.tar.gz | 6.2 kB | Without provenance | Details for socian_auth-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| socian_auth-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for socian_auth-0.0.8-py3-none-any.whl |
Total release size: 11.6 kB
Release files / socian_auth-0.0.8.tar.gz
| Download URL | socian_auth-0.0.8.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c98e020fd06eb44192a2fc6cf4639ce2bb8860072cad57dbd5a41d0c38f1ba31
|
|
BLAKE2b-256 checksum How to use checksums |
19458324110f23c6f12398f51232d529e7eb7fc16bb106cc9bcbcdb0749ba1b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Release files / socian_auth-0.0.8-py3-none-any.whl
| Download URL | socian_auth-0.0.8-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
886298cc5a55a2ff081f64713c1c60ef79d7f5a1d85704b38daf48e65c0fba86
|
|
BLAKE2b-256 checksum How to use checksums |
a873224df1d09842e1e83f08f58c7ce15fbaa3a0aa05a008bd9f1902a99907d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Security for socian-auth 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.