{"repo":"logto-io/python","free":true,"listed":false,"github":"https://github.com/logto-io/python","clone":"git clone https://github.com/logto-io/python.git","description":"🐍 Logto Python SDK.","language":"Python","stars":13,"topics":["authentication","authorization","jwt","logto","mfa","multi-tenant","oauth2","oidc","python","python3"],"license":null,"category":"auth-billing-email","readme_excerpt":"Logto Python SDK [ ][Website] [ ][PyPI Releases] [ ][PyPI] [ ][Discord] Prerequisites - Python 3.8 or higher - A [Logto Cloud][Website] account or a self-hosted Logto - A Logto traditional web application created If you don't have the Logto application created, please follow the ⚡ Get started guide to create one. Installation Tutorial See tutorial for a quick start. API reference See API reference for more details. Run the sample There's a Flask sample in the samples directory. The sample has been tested with Python 3.8.17. Install dependencies This repo uses PDM as the package manager. To install the dependencies, run the following command in the root directory of the repo (not in the samples directory): Configure environment variables To run the sample, you need to set the following environment variables: Replace the values with your own. For LOGTO REDIRECT URI and LOGTO POST LOGOUT REDIRECT URI , you should: 1. Go to your Logto Console and add the URIs to the application's settings accordingly. 2. Update the domain and port to match your local environment if necessary. [!Note] The sample project also support dotenv. You can create a .env file in the root directory of the sample project and add the environment variables there. Run the sample In the root directory of the repo, run the following command: The script can be found in the pyproject.toml file. Fetch user information Call client.getIdTokenClaims() to get the basic user info. For a more detailed user info, you can c","default_branch":null,"files":null,"tree":[],"storefront":"/r/logto-io","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/logto-io/python/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}