{"id":28569863,"url":"https://github.com/workos/python-authkit-example","last_synced_at":"2025-06-10T17:39:28.307Z","repository":{"id":266141451,"uuid":"887970356","full_name":"workos/python-authkit-example","owner":"workos","description":"Example app for AuthKit in Python","archived":false,"fork":false,"pushed_at":"2025-05-27T18:05:55.000Z","size":19,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-05T21:13:47.925Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/workos.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-13T15:38:39.000Z","updated_at":"2025-06-04T19:25:57.000Z","dependencies_parsed_at":"2024-12-02T20:35:10.752Z","dependency_job_id":null,"html_url":"https://github.com/workos/python-authkit-example","commit_stats":null,"previous_names":["workos/python-authkit-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fpython-authkit-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fpython-authkit-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fpython-authkit-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fpython-authkit-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workos","download_url":"https://codeload.github.com/workos/python-authkit-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fpython-authkit-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259118822,"owners_count":22808062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-06-10T17:39:27.229Z","updated_at":"2025-06-10T17:39:28.285Z","avatar_url":"https://github.com/workos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python integration example using AuthKit\n\nAn example application demonstrating how to authenticate users with AuthKit, Flask and the WorkOS Python SDK.\n\n\u003e Refer to the [User Management](https://workos.com/docs/user-management) documentation for reference.\n\n## Prerequisites\n\nYou will need a [WorkOS account](https://dashboard.workos.com/signup).\n\n## Requirements\n\nPython 3\n\n## Running the example\n\n1. In the [WorkOS dashboard](https://dashboard.workos.com), head to the Redirects tab and create a [sign-in callback redirect](https://workos.com/docs/user-management/1-configure-your-project/configure-a-redirect-uri) for `http://localhost:3000/callback`.\n\n2. After creating the redirect URI, navigate to the API keys tab and copy the _Client ID_ and the _Secret Key_. Rename the `.env.example` file to `.env` and supply your Client ID and API key as environment variables.\n\n3. Additionally, create a cookie password as the private key used to encrypt the session cookie. Copy the output into the environment variable `WORKOS_COOKIE_PASSWORD`.\n\n   It has to be exactly 32 characters long. You can use https://1password.com/password-generator/ to generate strong passwords. Alternatively, use the OpenSSL library to generate a secure password:\n\n   ```bash\n   openssl rand -base64 32\n   ```\n\n4. Verify your `.env` file has the following variables filled.\n\n   ```bash\n   WORKOS_CLIENT_ID=\u003cYOUR_CLIENT_ID\u003e\n   WORKOS_API_KEY=\u003cYOUR_API_SECRET_KEY\u003e\n   WORKOS_REDIRECT_URI=http://localhost:3000/callback\n   WORKOS_COOKIE_PASSWORD=\u003cYOUR_COOKIE_PASSWORD\u003e\n   ```\n\n5. Install the dependencies\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n6. Run the following command and navigate to [http://localhost:3000](http://localhost:3000).\n\n   ```bash\n   python app.py\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkos%2Fpython-authkit-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkos%2Fpython-authkit-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkos%2Fpython-authkit-example/lists"}