aliev / aioauth

Asynchronous OAuth 2.0 provider for Python 3
https://aliev.me/aioauth
MIT License
213 stars 19 forks source link

Missing aiohttp example #67

Closed adbenitez closed 1 year ago

adbenitez commented 1 year ago

the aiohttp example is missing also the Server & Database configuration, I am looking into aioauth and still don't know how to use it :(

aliev commented 1 year ago

Thanks for showing interest in aioauth!

There are examples for FastAPI, they are in a separate repository.

The storage example is here: https://github.com/aliev/aioauth-fastapi/blob/master/aioauth_fastapi_demo/oauth2/storage.py#L21

and authorization server example: https://github.com/aliev/aioauth-fastapi/blob/master/aioauth_fastapi_demo/oauth2/endpoints.py#L29

aliev commented 1 year ago

For aiohttp the code will be similar, you have to implement the following helper functions for aiohttp: https://github.com/aliev/aioauth-fastapi/blob/master/aioauth_fastapi/utils.py

brianjenkins94 commented 12 months ago

I think this question was asking about making subsequent requests using aiohttp after authenticating with aioauth.