https://github.com/johnfaucette/litestar-oauth2-example
Example App for getting OAuth2 working in litestar
https://github.com/johnfaucette/litestar-oauth2-example
example-project examples litestar oauth2
Last synced: 19 days ago
JSON representation
Example App for getting OAuth2 working in litestar
- Host: GitHub
- URL: https://github.com/johnfaucette/litestar-oauth2-example
- Owner: johnfaucette
- Created: 2023-07-26T14:32:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-26T14:33:25.000Z (almost 2 years ago)
- Last Synced: 2024-11-16T10:31:51.827Z (6 months ago)
- Topics: example-project, examples, litestar, oauth2
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-litestar - Litestar with OAuth2 Example - Example of using Litestar with OAuth2. (Third-Party Extensions / Projects)
README
## OAuth2 Example
This is an example of how to get OAuth2 Working with `litestar` and `httpx-oauth`.
### Running
```bash
# setup
poetry shell && poetry install# start the app
uvicorn oauth2_example.app:create_app --reload
```OAuth2 Flow: `http://localhost:8000/oauth2/github/login`, starts the oauth2 process chain.
Check the swagger docs: `http://localhost:8000/schema/swagger`.