{"id":31078749,"url":"https://github.com/scalekit-inc/scalekit-sdk-python","last_synced_at":"2026-03-10T23:29:27.011Z","repository":{"id":244025470,"uuid":"795198641","full_name":"scalekit-inc/scalekit-sdk-python","owner":"scalekit-inc","description":"Python SDK for enterprise authentication - FastAPI, Django, Flask integration with SAML/OIDC SSO","archived":false,"fork":false,"pushed_at":"2026-03-10T13:33:57.000Z","size":1376,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-03-10T15:51:34.943Z","etag":null,"topics":["authentication","django","enterprise-auth","fastapi","flask","oidc","python","saml","sdk","sso"],"latest_commit_sha":null,"homepage":"https://docs.scalekit.com/sso/quickstart?tech-stack=py","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scalekit-inc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-02T19:22:09.000Z","updated_at":"2026-03-04T13:22:13.000Z","dependencies_parsed_at":"2024-08-10T05:23:32.464Z","dependency_job_id":"3a94d3aa-1380-486e-b75a-29834b201ec6","html_url":"https://github.com/scalekit-inc/scalekit-sdk-python","commit_stats":null,"previous_names":["scalekit-inc/scalekit-sdk-python"],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/scalekit-inc/scalekit-sdk-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalekit-inc%2Fscalekit-sdk-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalekit-inc%2Fscalekit-sdk-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalekit-inc%2Fscalekit-sdk-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalekit-inc%2Fscalekit-sdk-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scalekit-inc","download_url":"https://codeload.github.com/scalekit-inc/scalekit-sdk-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalekit-inc%2Fscalekit-sdk-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30362097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","django","enterprise-auth","fastapi","flask","oidc","python","saml","sdk","sso"],"created_at":"2025-09-16T09:02:34.966Z","updated_at":"2026-03-10T23:29:26.988Z","avatar_url":"https://github.com/scalekit-inc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://scalekit.com\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cpicture\u003e\n      \u003cimg src=\"https://cdn.scalekit.cloud/v1/scalekit-logo-dark.svg\" height=\"64\"\u003e\n    \u003c/picture\u003e\n  \u003c/a\u003e\n  \u003cbr/\u003e\n\u003c/p\u003e\n\n# Official Python SDK\n\n[![PyPI version](https://img.shields.io/pypi/v/scalekit-sdk-python.svg?style=flat-square)](https://pypi.org/project/scalekit-sdk-python/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Python versions](https://img.shields.io/pypi/pyversions/scalekit-sdk-python.svg?style=flat-square)](https://pypi.org/project/scalekit-sdk-python/)\n\n\u003ca href=\"https://scalekit.com\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eScalekit\u003c/a\u003e is the **auth stack for AI apps** - from human authentication to agent authorization. Build secure AI products faster with authentication for humans (SSO, passwordless, full-stack auth) and agents (MCP/APIs, delegated actions), all unified on one platform. This Python SDK enables both traditional B2B authentication and cutting-edge agentic workflows.\n\n## 🤖 Agent-First Features\n\n- **🔐 Agent Identity**: Agents as first-class actors with human ownership and org context\n- **🎯 MCP-Native OAuth 2.1**: Purpose-built for Model Context Protocol with DCR/PKCE support\n- **⏰ Ephemeral Credentials**: Time-bound, task-based authorization (minutes, not days)\n- **🔒 Token Vault**: Per-user, per-tool token storage with rotation and progressive consent\n- **👥 Human-in-the-Loop**: Step-up authentication when risk crosses thresholds\n- **📊 Immutable Audit**: Track which user initiated, which agent acted, what resource was accessed\n\n## 👨‍💼 Human Authentication\n\n- **🔐 Enterprise SSO**: Support for SAML and OIDC protocols\n- **👥 SCIM Provisioning**: Automated user provisioning and deprovisioning  \n- **🚀 Passwordless Authentication**: Magic links, OTP, and modern auth flows\n- **🏢 Multi-tenant Architecture**: Organization-level authentication policies\n- **📱 Social Logins**: Support for popular social identity providers\n- **🛡️ Full-Stack Auth**: Complete IdP-of-record solution for B2B SaaS\n- **🐍 Pythonic API**: Clean, intuitive interface following Python conventions\n\n\u003cdiv\u003e\n📚 \u003ca target=\"_blank\" href=\"https://docs.scalekit.com\"\u003eDocumentation\u003c/a\u003e • 🚀 \u003ca target=\"_blank\" href=\"https://docs.scalekit.com/sso/quickstart/\"\u003eSSO Quickstart\u003c/a\u003e • 💻 \u003ca target=\"_blank\" href=\"https://docs.scalekit.com/apis\"\u003eAPI Reference\u003c/a\u003e\n\u003c/div\u003e\n\u003chr /\u003e\n\n## Pre-requisites\n\n1. [Sign up](https://scalekit.com) for a Scalekit account.\n2. Get your ```env_url```, ```client_id``` and ```client_secret``` from the Scalekit dashboard.\n\n## Installation\n\nInstall Scalekit SDK using your preferred package manager. \n\n```sh\npip install scalekit-sdk-python\n\n```\n\n## Usage\n\n```py\n\nfrom scalekit import ScalekitClient\n\nsc = ScalekitClient(\n  env_url, \n  client_id, \n  client_secret\n)\n\n# Use the sc object to interact with the Scalekit API\nauth_url = sc.get_authorization_url(\n  \"https://acme-corp.com/redirect-uri\",\n  state=\"state\",\n  connection_id=\"con_123456789\"\n)\n\n```\n\n##### Minimum Requirements\n\nTo use the Scalekit Python SDK, you must have the following:\n\n| Component | Version |\n| --------- | ------- |\n| Python    | 3.8+    |\n\n\u003e **Tip:** Although Python 3.8 meets the minimum requirement, using a more recent version (such as Python 3.9 or later) is advisable.\n\n\n## Examples - SSO with FastAPI\n\nBelow is a simple code sample that showcases how to implement Single Sign-on using Scalekit SDK\n\n```py\nfrom fastapi import FastAPI, Request, Response\nfrom scalekit import ScalekitClient\nimport uvicorn\n\napp = FastAPI()\n\nsc = ScalekitClient(\n  env_url, \n  client_id, \n  client_secret\n)\n\nredirect_uri = \"http://localhost:8000/auth/callback\"\n\n@app.get(\"/auth/login\")\nasync def auth_login(request: Request):\n  auth_url = sc.get_authorization_url(\n    redirect_uri,\n    state=\"state\",\n    connection_id=\"con_123456789\"\n  )\n  return Response(status_code=302, headers={\"Location\": auth_url})\n\n@app.get(\"/auth/callback\")\nasync def auth_callback(request: Request):\n  code = request.query_params.get(\"code\")\n  token = sc.authenticate_with_code(\n    code, \n    redirect_uri\n  )\n  response = JSONResponse(content=token)\n  response.set_cookie(\"access_token\", token[\"access_token\"])\n\n  return response\n\nif __name__ == \"__main__\":\n  uvicorn.run(app, port=8080)\n\n```\n\n## 📱 Example Apps\n\nExplore fully functional sample applications built with popular Python frameworks and the Scalekit SDK:\n\n| Framework | Repository | Description |\n|-----------|------------|-------------|\n| **FastAPI** | [scalekit-fastapi-example](https://github.com/scalekit-developers/scalekit-fastapi-example) | Modern async Python API framework |\n\n## 🔗 Helpful Links\n\n### 📖 Quickstart Guides\n- [**SSO Integration**](https://docs.scalekit.com/sso/quickstart/) - Implement enterprise Single Sign-on\n- [**Full Stack Auth**](https://docs.scalekit.com/fsa/quickstart/) - Complete authentication solution\n- [**Passwordless Auth**](https://docs.scalekit.com/passwordless/quickstart/) - Modern authentication flows\n- [**Social Logins**](https://docs.scalekit.com/social-logins/quickstart/) - Popular social identity providers\n- [**Machine-to-Machine**](https://docs.scalekit.com/m2m/quickstart/) - API authentication\n\n### 📚 Documentation \u0026 Reference\n- [**API Reference**](https://docs.scalekit.com/apis) - Complete API documentation\n- [**Developer Kit**](https://docs.scalekit.com/dev-kit/) - Tools and utilities\n- [**API Authentication Guide**](https://docs.scalekit.com/guides/authenticate-scalekit-api/) - Secure API access\n\n### 🛠️ Additional Resources\n- [**Setup Guide**](https://docs.scalekit.com/guides/setup-scalekit/) - Initial platform configuration\n- [**Code Examples**](https://docs.scalekit.com/directory/code-examples/) - Ready-to-use code snippets\n- [**Admin Portal Guide**](https://docs.scalekit.com/directory/guides/admin-portal/) - Administrative interface\n- [**Launch Checklist**](https://docs.scalekit.com/directory/guides/launch-checklist/) - Pre-production checklist\n\n## License\n\nThis project is licensed under the **MIT license**.\nSee the [LICENSE](LICENSE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalekit-inc%2Fscalekit-sdk-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscalekit-inc%2Fscalekit-sdk-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalekit-inc%2Fscalekit-sdk-python/lists"}