Skip to content

Secure token generation for IntegrationOS AuthKit in Python

License

Notifications You must be signed in to change notification settings

integration-os/authkit-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IntegrationOS AuthKit SDK for Python

Secure token generation for IntegrationOS AuthKit using PyPI.

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:

from integrationos import AuthKitToken

@app.route('/authkit-token', methods=['POST'])
def create():
    payload = {
        "group": "org_123", # a meaningful identifier (i.e., organizationId)
        "label": "Acme", # a human-friendly label (i.e., organizationName)
    }

    authKitToken = AuthKitToken("sk_live_12345")
    token = authKitToken.create(payload)

    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.

You'll also want to populate the group and label fields depending on how you want to organize and query your users' connected accounts. The Group is especially important as it's used to generate the unique Connection Key for the user once they successfully connect an account.

Full Documentation

Please refer to the official IntegrationOS AuthKit docs for a more holistic understanding of IntegrationOS AuthKit.

About

Secure token generation for IntegrationOS AuthKit in Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages