https://github.com/picahq/authkit-python
Secure token generation for IntegrationOS AuthKit in Python
https://github.com/picahq/authkit-python
Last synced: 2 months ago
JSON representation
Secure token generation for IntegrationOS AuthKit in Python
- Host: GitHub
- URL: https://github.com/picahq/authkit-python
- Owner: picahq
- License: gpl-3.0
- Created: 2024-08-21T18:14:27.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-10-08T17:07:53.000Z (8 months ago)
- Last Synced: 2025-03-27T21:44:50.322Z (2 months ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IntegrationOS AuthKit SDK for Python
Secure token generation for [IntegrationOS AuthKit](https://docs.integrationos.com/docs/authkit) using [PyPI](https://pypi.org/).
## Installation
You can install the IntegrationOS AuthKit SDK using pip:
```
pip install integrationos-authkit
```## Usage
Here's a quick example of how to use the SDK:
```python
from integrationos import AuthKitToken@app.route('/authkit-token', methods=['POST'])
def create():
authKitToken = AuthKitToken("sk_live_12345")
token = authKitToken.create()return token
```You'll want to switch out the API Key for your own, which will later tell your frontend which integrations you'd like to make available to your users.
If you pass an `identity` or `identityType` (`user`, `team`, or `organization`), you'll be able to query for all connections scoped to that identity.
The identity is used to generate the unique [Connection Key](https://docs.integrationos.com/docs/setup) for the user once they successfully connect an account.## Full Documentation
Please refer to the official [IntegrationOS AuthKit](https://docs.integrationos.com/docs/authkit) docs for a more holistic understanding of IntegrationOS AuthKit.