Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Suggest middlwares for oauth2 against external providers #840

@jorgecarleitao

Description

@jorgecarleitao

Is your feature request related to a problem

Is your feature request related to a problem? Yes

It is unclear how to integrate an external oauth provider such as Microsoft, Google, Auth0 with FastAPI.

The solution you would like

A section on the documentation describing how to achieve this, or which libraries do we recommend to do so.

Two examples include the client from authlib and starlette-oauth2-api.

Describe alternatives you've considered

PR an implementation to FastAPI. The reason I avoided this is because OAuth is not a thing of FastAPI only, but of a web app in general.

Additional context

I am the author of starlette-oauth2-api, which we have been using to secure an API of ours against access tokens signed by external providers (multi-tenancy).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions