pysnippet / fastapi-oauth2

Easy to integrate OAuth2 authentication with support for several identity providers.
https://docs.pysnippet.org/fastapi-oauth2
MIT License
49 stars 7 forks source link

Make access token accessible from auth context #20

Closed ArtyomVancyan closed 10 months ago

ArtyomVancyan commented 10 months ago

Motivation:

This PR resolves the #17 issue and adds an access_token property on Auth class (Starlette's extended AuthCredentials) by making it accessible from the request context when the user is authenticated. Also, adds a few sections of documents (a little bit out of the issue scope) one of which describes the usage of it.

All Submissions:

Changes to Core Features: